Search Results for 'code'
-
Search Results
-
Hello everybody.
If this is off topic, pls help pointing me to the correct place.
This is the first time I’m working with bbPress, I’m trying to import from vBulletin now.
vBulletin = 3.8.6 bbPress = bbPress 2.5.12 WP = 4.7.5I’ve been struggling for a few days already (I’ve also tried the 2.6-rc-3 without any luck). Just today, I found an advice to enable WP_DEBUG and WP_DEBUG_LOG so I did so and saw some error messages so I decided to look into the code and try to fix it myself.
Here’s the first one I found:
PHP Notice: Undefined index: user_pass in ...\wp\wp-includes\user.php on line 1425Here’s the code at line 1425:
$user_pass = wp_hash_password( $userdata['user_pass'] );Should be changed to:
$user_pass = empty($userdata['user_pass'])?wp_hash_password(''):wp_hash_password( $userdata['user_pass'] );
There’re more errors I’m trying to fix right now. Pls let me know if it’s helpful and I should post them too.Cheers,
Tony.WordPress version 4.8
bbPress version 2.5.12
Site URI: Localhost (I can create a temp vpn tunnel to the site if needed.)Hi,
I am confused about the following setup and theme page template/bbPress weirdness.
I have installed bbPress and set the forum root to “
support” and saved changes.
Then I created a page with the exact same name “support“. The slug matches the page name and reads:www.mysite/support/
In this page I have added the bbpress short code[bbp-forum-index]With the current theme I have the option to choose a page template with or without a sidebar. When I set the page template to “
sidebar“, the sidebar does NOT display.When I change the “
forum root” from “support” to “forums” and leave the page name and template choice as is, the sidebar does display.The same applies when I do not change the Forum root and leave it as “
support“, but I remove the bbPress shortcode[bbp-forum-index]. The page “support” does show the sidebar.I am wondering if I am doing something wrong with either setting the Forum root slug and the page name to the exact same; “
support“.Maybe this is not possible and leads to url/permalink confusion in WP/bbPress and it instead uses the “standard” page template (which doesn’t utilises any sidebars in the current theme I am using.)
In the end what I would like to see is the following (if possible at all.);
When you visit the site’s support page the url/slug read:
www.mysite.com/support/
The page title matches the slug: “Support” and it uses the sidebar page template.In this page the support questions are shown by freshness and the breadcrumb actually displays “
home >> support“, not “home >> forums“.Thanks in advance for any help in explaining the Forum root and page name scheme/setup.
WordPress version 4.8
Genesis Theme version 2.5.2
bbPress version: 2.5.12
Site URL: http://staging.c-rad.org/My site has a members section for which all of the pages in it have a template applied to it with this simple logic:
if ( ! is_user_logged_in()) { wp_login_form(); return; } else { // add the members only sidebar and show the content }Is it possible to install bbPress such that I can apply this template logic to all forum pages?
I also want all forum pages to exist under a parent page. e.g. c-rad.org/members/forums.
I can place my forum there (c-rad.org/members/my-forum) using a shortcode, but then all other forum pages go to their default locations (c-rad.org/topic/my-topic).
I tried changing the Forum Root to ‘members’, but then when I visit that page, the page template with my logic is removed.
Just wondering if anyone has come across this before – I’m attempting to create a subforum for every postcode district in the UK of which there are 2000+ (this may seem a bad idea but having considered many different options it seems the best/simplest for my use case at the moment)
I’ve imported the forums via the ‘WP CSV’ plugin, and they seem to have imported fine, but on the front end when viewing the full forum list it only shows the first 50. Is this by design? Or could it be something buggy I have done?
If it’s unavoidable I guess I can make them sub-subforums of a smaller number of postcode areas.
Thanks
Topic: Link to latest post
Hello,
I’m trying to make a link to a latest topic in forum page. I achieved topic name by bbp_forum_last_topic_title function, but can’t figure out how to get a link for latest topic.
I’ve tried to pull out something like this, but it links to forum index.
<p><a href="<?php echo $link; ?>"><?php bbp_forum_last_topic_title(); ?></a></p>