Search Results for 'code'
-
Search Results
-
Let me start by saying that I did extensive searching for past 2 hours and are surprised to see all questions about the same issue getting brushed off. Some even instruct to remove the home link from breadcrumb just to hide an actual bug.
https://bbpress.org/forums/topic/breadcrumb-and-forum-index-issues/
there are many more but I am allowed only 3 links. Google breadcrumb [bbp-forum-index]Please take the issue as it is which is a bug confirmed by many.
1. Breadcrumbs forum home page link and the page that user has created are not in sync
2. When user creates the page with shortcode as instructed in Step 2 https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ or even Step 1the default Forum Root archive is overriding that page instead other way around. The process should be same as selecting page for posts in WP but in BB is just complicated and not effective.
Use default theme, follow instructions in step 2 , when you done , go to your custom created forum page and change template. No changes. Now change the root in forum settings, redo permalinks go back to custom page and you will see the change.
Note that I have no custom overrides so it is not theme related.
Topic: How do I do this url ?
Old smf page url address
www.website.com/forum/saglik/kanatli-hastaliklari/New wordpress bbpres url adress
www.website.com/topic/kanatli-hastaliklari/This is important
Old smf page first forum later saglık later page name
New bbpress page direct go page name
How do i fix the problem ?
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?
