Search Results for 'code'
-
Search Results
-
Hi there,
I’m trying to show users a list of the topics with no replies. However, I’m getting a “Oh bother! No topics were found here!” message on that page. Here’s what I did:
1. I created two forums, each one with topics. Each forum has topics with no replies in it.
2. The topics display the following information (Voices: 1, Posts: 1). (Instead of “Voices 1, Replies: 0);
3. I created a page, and added this shortcode: [bbp-single-view id=’no-replies’]The site is a multisite, configured as a subdirectory install.
Also, when I try to hit the no-replies view directory by going to {domain}/sitename/forums/view/no-replies I get a 404 page.
I wonder if I’ve configured something incorrectly?
(edited so I could subscribe to follow-up replies)
Hi,
Could someone help me with the syntax for the following join
SELECT
maoriorg_exportoldforums.pp_threads.thread_subject,
maoriorg_exportoldforums.pp_posts.post_message,
maoriorg_exportoldforums.pp_threads.thread_id
FROM
maoriorg_exportoldforums.pp_posts
INNER JOIN maoriorg_exportoldforums.pp_threads
ON maoriorg_exportoldforums.pp_posts.post_id = maoriorg_exportoldforums.pp_threads.thread_id
GROUP BY
maoriorg_exportoldforums.pp_threads.thread_idThis is what I have come up with so far, (compied from bbPress1.php to follow) but not sure how to put the GROUP BY clause
// Topic content. // Note: We join the 'posts' table because 'topics' table does not include content. $this->field_map[] = array( 'from_tablename' => 'posts', 'from_fieldname' => 'post_text', 'join_tablename' => 'topics', 'join_type' => 'INNER', 'join_expression' => 'USING (thread_id) WHERE posts.post_position IN (0,1)', 'to_type' => 'topic', 'to_fieldname' => 'post_content', 'callback_method' => 'callback_html' );Mind you, I could also have the wrong fields in the wrong place so any corrections and help most appreciated.
Thank you for your time 🙂
Topic: No bbp-themes folder
Hi,
I am following these instructions (https://codex.bbpress.org/themes/theme-compatibility/step-by-step-guide-to-creating-a-custom-bbpress-theme/) and have got Cyberduck connected but in the wwwroot > wp-content > plugins > bbpress folder there is no ‘bbp-themes’ folder as the directions state.No idea what to do next, whether I should be using a different folder as the instructions are out of date for my version or what??
Think Im on wordpress 4.8 and bbpress 2.5.14
Thanks
LisaHi all, I have been playing on and off with WordPress, BBPress and Buddypress, mostly to build my own company website.
I have almost completed my quest to make BBpress as functional and user friendly as any other major, paid for, forum software offers, and I think I have even improved to my own preference and proven that BBpress is capable to be better then any commercial package.
Please review my website, I have a demo account as you need to be logged in for all the plugins and hacks to be visible.
I have added quite a few plugins and function snippets, I do not know how to code php or javascript, just basic html and css for the rest I cut and paste until it works, although I do understand what I am looking at with php after 4 years of cut-and-paste…lol
username: demo
passowrd: demo2017Just to let you know, I breed hybrid strains of medicinal Cannabis so you will find this content on my website!!
Hi,
After a day of using the example.php to create a custom import form I finally tried to run it and all I get is Staring Conversion with the little spinner next to it and nothing else happens.
I have stopped it and then chosen another converter just to see what it does and it does run past there telling me No fourms to convert etc …
For curiousity I ran a different conversion and used the wrong username and it did tell me it couldn’t connect. I also did that again using the wrong database and it said it couldn’t connect tot he database. So I am guessing that this starting conversion, spinner, nothing (even after leaving it for 1/2 hour and I do not have a large forum to convert) must be an error after there is a database connection and before the main code runs.
Here is basically what I have done
Renamed example.php to Originalforum.php
Changed Line 4 to * Originalforum converter base impoprter template for bbPress
Changed line 9 to class Originalforum extends BBP_Converter_Base {
Went through line by line and changed as needed, making sure that the case in the tables was the same in the file.
Used example.php, mingle.php and vanilla.php to check each line. For example I used the vanilla.php dates code as the one I am doing has the same format as needed and the mingle.php to add in the bottom the public function callback_topic_status code.
If anyone can point me in the right direction to get past the starting conversion – spinner – nothing else that would be most appreciated. I know once I am past that if there are sql / code errors I will be able to fix those – I just need to be able to get to that stage!
Thank you for your time.
Hi,
I am moving an old site to WP and bbPress and need to convert my old forums. I understand I need to use the example.php in the converter folder and write a converter for each old forum – there are 3 I am gong to convert.
And wouldn’t you know it, the 3 different forums use 3 different date formats!
Here they are
1415922411
2004-09-13 19:25:59
20080407181855From looking around in all of the converter files I see that forum dates are done 2 ways
In example converter – I am guessing that I would use this format to convert the date like 20080407181855 ?
// Forum dates.
$this->field_map[] = array(
'to_type' => 'forum',
'to_fieldname' => 'post_date',
'default' => date('Y-m-d H:i:s')
);
In vanilla converter – I am guessing I would use this format to convert the date like 2004-09-13 19:25:59 ?
// Forum dates.
$this->field_map[] = array(
'from_tablename' => 'Category',
'from_fieldname' => 'DateInserted',
'to_type' => 'forum',
'to_fieldname' => 'post_date',
);
Anyone know how I can convert a date such as 1415922411 to the correct date format – which I am guessing is Y-m-d H:i:s?
Thank you for your time.
Topic: Removing date stamp
I’d like to remove the date stamp from topics and responses. I found a couple of code suggestions trough Google searches but I haven’t gotten any to work. As a work around, I simply changed the wordpress general settings for date and time to Custom, and then left the custom field blank. This almost worked. The date/time stamp changed from, for instance, “11/25/2017 at 7:03 am” to just ” at “. My trouble is that “at”. I’ve been sniffing through the wordpress and theme php files to remove it or change it to a space, but cannot figure out where the “at” is. Can anyone tell me how I can change or remove it?
Topic: Prefix in the topic name
Hello i’m french and sorry for my english.
I have modify the css and template of bbpress and i have copy the files in my host.
But when i create a topic i have “teste Name of Topic“.In local i have check “Topics Loop – Single” and i have find “teste” i have delete this and prefix is deleted but in my host “teste” is not in Topics Loop – Single.
I do not know what can create the prefix.I use bbp pack style and more plugins as bbpress2 bbcode, bp tools bp attachments.
thank you in advance
I keep running into the following error when trying to import my Vanilla 2.x forum database. I’m using WordPress 4.9 and bbpress 2.5.14.
Repair any missing information: Continue WordPress database error: [Specified key was too long; max key length is 1000 bytes] CREATE TABLE GcuHRqrGbbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default '0', meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key(191), meta_value(191)) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; No data to cleanStarting ConversionAny ideas on what I need to do to get this error resolved?
