Search Results for 'test'
-
Search Results
-
After finding a lot I have not found a solution for showing more than 1 depth sub forums. So I made some coding.
I changed “<?php bbp_list_forums(); ?>” on file loop-single-forum.php to:
<?php
$before = ‘<ul class=”bbp-forums”>’;
$after = ”;
$link_before = ‘<li class=”bbp-forum”>’;
$link_after = ”;
if ($sublist = bbp_forum_get_subforums($forum_id)) {
echo $before;
foreach ( $sublist as $sub_forum ) {
// Get forum details
$permalink = bbp_get_forum_permalink( $sub_forum->ID );
$title = bbp_get_forum_title( $sub_forum->ID );
echo $link_before . ‘‘ . $title . ‘‘ . $link_after;
if ($sublist2 = bbp_forum_get_subforums($sub_forum->ID)) {
echo $before;
foreach ( $sublist2 as $sub_forum ) {
// Get forum details
$permalink2 = bbp_get_forum_permalink( $sub_forum->ID );
$title2 = bbp_get_forum_title( $sub_forum->ID );
// Build this sub forums link
echo $link_before . ‘‘ . $title2 . ‘‘ . $link_after;
}
}
echo $after;
}
}
echo $after;
?>
So my question is, Is there any way to do that little easier ? Or someone who is looking in the same issue and want give a hand to clean up this code.
A example of the struture I’m looking:
TEST
-TEST_CHILD_1
-TEST_CHILD_2
–TEST_CHILD_CH1
–TEST_CHILD_CH2
-TEST_CHILD_3
Any help will be aprecieted. Thank you.
Hello,
I decided to test out bbPress; unfortunately, I was unable to post a new topic in the first forum I created. I kept on encountering this error each time…
Fatal error: Call to undefined function akismet_get_user_roles() in …/wp-content/plugins/bbpress/bbp-includes/bbp-extend-akismet.php on line 146
Is there any reason this is happening?
I’m having a problem where Admin is able to see their user information and all forum data but all other accounts are directed to a blank page.
This is the “local” address users get sent to http://pcocs/forums/users/skingsford/
This is where admins are directed. http://pcocs/forums/users/admin/
They have “gform_full_access”
I’m using the latest version of wordpress(3.3.1) and bbpress (2.02). I nuked everything related to bbpress including the db entries. reinstalled, and the same issue is occurring.
Disabled all plugins, and re-activated the plugin. Still unable to access user profile as another user. Able to access profile in dashboard.
Rebuilt the permalinks.
No themes, no plugins, just default data.
Any thoughts on what would cause this to occur?
Is there anything I need to do to get the aforementioned caching plugins to invalidate topic pages, forum indexes and so forth when a new reply is posted?
I’ve tried both 2.0.2 and the latest bbPress plugin version from svn and as it stands, posting a new reply does not clear the topic page (or any other forum pages) from the cache so you and nobody else sees your replies.
Just wanted to check if it’s currently a bug / feature or I’m missing something obvious!
I love bbPress for it’s simplistic design, but setting it up can be a bitch especially if you don’t care for standard sidebars & widgets like me, so:
Getting bbpress to work wonders is as easy as 0,1,2,3,4,5,6,7,8,9,10,11,12!!
On 2012-01-19, this is what I did to originally setup my forums for a free wireless network:
0) Pre-clarification: [???] means some number, like twenty[???] means twentyten or twentyeleven
1) Downloaded most recent WordPress, setup database and installed it.
2) Installed bbpress:
go to http://yoursite.dom/wp-admin/ > Log in to admin > Plugins > Add New > search for “bbpress” > Install Now
3) Copied contents of bbpress theme folder to wordpress theme folder:
/wp-content/plugins/bbpress/bbp-themes/bbp-twenty[???] to /wp-content/themes
(this is done ONLY so that we can select the bbforums theme and it’s handy templates: Please note that you should only make modifications in the /wp-content/plugins/bbpress/bbp-themes/bbp-twenty[???] folder NOT the /wp-content/themes/bbp-twenty[???] folder as the bbpress plugin will not read those)
4) Switched to the bbpress theme
Log in to admin > Appearance > Themes > under the “Available Themes” section I activated the “bbPress (Twenty [???])” Theme
5) Created my home page, login page, register page, and lost password page:
Log in to admin > Pages > Add New > set title to “Home” | right hand column > Page Attributes > set Templates to “bbPress – Forums (index)”
Log in to admin > Pages > Add New > set title to “Login” | right hand column > Page Attributes > set Templates to “bbPress – User Login”
Log in to admin > Pages > Add New > set title to “Register” | right hand column > Page Attributes > set Templates to “bbPress – User Register”
Log in to admin > Pages > Add New > set title to “Lost Password” | right hand column > Page Attributes > set Templates to “bbPress – User Lost Password”
6) Switched WordPress frontpage from the blog to my home/forums page:
Log in to admin > Settings > Reading > Front page displays > Clicked “a static page…” > set front page to “Home” (and left posts page blank)
7) Allowed New Users to Register
Log in to admin > Settings > General > Under Membership I checked “Anyone can register”
Created and Modified my header, footer, and sidebar files:
All theme modifications MUST be done within the wp-content/plugins/bbpress/bbp-themes/bbp-twenty[???] folder and not the folder you just copied to the wordpress theme folder as bbpress will only read files within in it’s own local plugin (see #3).
The theme doesn’t come with these files installed, so copy them from another theme like twenty[???]:
wp-content/themes/twenty[???]/header.php to wp-content/plugins/bbpress/bbp-themes/bbp-twenty[???]
wp-content/themes/twenty[???]/footer.php to wp-content/plugins/bbpress/bbp-themes/bbp-twenty[???]
wp-content/themes/twenty[???]/sidebar.php to wp-content/plugins/bbpress/bbp-themes/bbp-twenty[???]
I then stripped them to my satisfaction making sure to keep WordPress’ header action hook, wp_head();, and then styled them accordingly.
One of the things I added to the header.php was my menu and such:
<?php
$text .= '<options>';
if(is_user_logged_in()) {
global $current_user;
get_currentuserinfo();
$text .= 'You are logged in as '.$current_user->display_name.'
Your Profile | Your Topics | Your Replies | Logout';}
else $text .= 'Login | Register | Lost Password';
$text .= "
" . get_search_form(false);$text .= '</options>';
echo $text;
?>
If a visitor is not logged in the above menu will show links to the pages I just created in #5, but make sure that the page_id matches the correct page. You can do this by checking the Permalink of that page:
Log in to admin > Pages > All Pages > select the page your interested in > notice the page_id in the permalink & make sure it matches in the header file.
If a visitor is logged in, it will show who you are logged in as, give you a link to:
your profile (/wp-admin/profile.php)
your profile (/wp-admin/edit.php?post_type=topic)
your posts (/wp-admin/edit.php?post_type=reply)
and a link to logout ( wp_logout_url() )
This menu will then print a search form.
9) Installed Search bbPress plugin:
Log in to admin > Plugins > Add New > search for “search bbpress” > Install Now
If you don’t do this, wordpress’ search form won’t search your forums.
10)wordpress avatars & bbPress Avatars:
As of 2012-01-19, the latest version of WordPress (and therefore bbPress) has Gravitars support built in. So, if you sign up at https://en.gravatar.com/site/signup, you can associate an email address with your avatar. And if you also use that email address as the one you used for your wordpress/bbpress account then bbpress and wordpress will automatically show that avatar associated with the email address you supplied to gravitar.
Simple Local Avatars:
If you’re like me, you don’t want to force your visitors to sign up with gravitar, so the simplest avatar solution I found was to install the “Simple Local Avatars” Plugin:
Log in to admin > Plugins > Add New > search for “Simple Local Avatars” > Install Now
An avatar section will now display at the bottom of your profile page at /wp-admin/profile.php
11) Consolidating bbPress profile pages
bbPress gives you the choice of editing your profile in two places, but since avatars only show up at /wp-admin/profile.php and not index.php?bbp_user=[???]&edit=1 we will consolidate the profile editing to just /wp-admin/profile.php . To do this, we add the follwoing code to the end (but before the ?> ) of the wp-content/plugins/bbpress/bbp-themes/bbp-twenty[???]/functions.php file:
add_filter('bbp_get_user_edit_profile_url', 'my_bbp_get_user_edit_profile_url', 10, 0);
function my_bbp_get_user_edit_profile_url () {
return "/wp-admin/profile.php";
}
This basically overwrites the bbp_get_user_edit_profile_url function whereever it’s used.
12) I’m done! For now at least. Hope that helps. Those were the things I cared about.
Topic: User Role Map
I have just installed the BBpress plugin for the latest version of WordPress. I cannot see the reply or post new topic functions. I searched the docs on here and it says I need to do a ‘user role map’ but I cannot find this. I have looked through WP Settings > Forums and this is the BBpress settings but there is nothing for user role map. I cannot see where it would be else where.
Any help is great, thanks!
Matt
Topic: Bulk user creation
Hello, I would like to create users in bulk is this possible with just bbpress i.e. is there a plugin.
I have tried to created a csv and imported into PHPMYADMIN and all the data is populated (example below) but when I go into bbpress users to look what has imported it says “Inactive (no role)” next to the user. Is it possible to assign the users a role and where is this stored?
Also how does the user_pass string work or is this where I am going to get stuck?
ID,user_login,user_pass,user_nickname,user_email,user_url,user_registered,user_status,display_name
22,testuser,$P$BQHywh8ariE18rJg0h8preaPL1dd3x2,testuser,testuser@mail.com,http://www.website.com,2010-03-15 00:00:00,0,testuser
Topic: upgrade error
I just upgraded wordpress to the latest version, then bbpress. This is my first time upgrading bbpress, and evidentially I did something wrong.
I receive this error:
Fatal error: Class ‘BBP_Theme_Compat’ not found in /home/username/public_html/wp-content/themes/daily/functions.php on line 501
I searched google and this site, and was unable to find any information. Where did I go wrong?
Hi guys. I know there’s an unread posts plugin for older versions of BBPress – and even BuddyPress – but not the latest version (BBPress 2.0).
I moved from SMF and since then i’ve learned users are not bothering with our forums as this feature was used so frequently in their navigation habits.
Is there any way of adding this functionality?
Topic: Viewing forums
I am on the latest WordPress and I installed the new bbpress plugin.
I created a forum. I made it private so that non-forum participants cannot see it.
I created a test forum participant.
I logged into as the forum participant via another browser. The forum participant cannot see any of the forums at all. Unless I make it public.
(Sorry, I just realized this should be in the troubleshooting forum)
If I make it public, anyone can see the topics, which I do not want.
Is there a solution?