Search Results for 'test'
-
Search Results
-
Hi,
I would like to remove the last page numbers in pagination,
is there any function code to do this?at the moment, on latest topics on a big forum.. it shows like this..
Topic: Styling Issue
Hi. Testing bbPress using Penci Soledad. Installed Robin’s Style Pack, but none of the changes are being registered. I cleared caches and all. I should note that I have a dark theme on my site and the styling needs help. Any advice?
Topic: Forum url changes
Hi,
I have WP V5.8 and bbPress V5.0 with OceanWP theme.
I have a custom function.php file in which I control access to pages by user role. For example user_role1 may only access pages with /user_role1/ in the url path.
I have then added a custom forum page called qaforums.
In the bbPress settings I have made this as my Forum Root.
I have then added /qaforums/forum/ and /qaforums/topic/ as permitted paths for user_role1.
Now here is where things get strange.
Let’s say I have a range of forums with the permalinks:
mywebsite.com/qaforums/forum/forum_name1/
mywebsite.com/qaforums/forum/forum_name2/
mywebsite.com/qaforums/forum/forum_name3/
etc.In theory, my user access rules should permit users to see these forums. However, they don’t.
What I discovered is that in order for my access rules to work I need to include permalink /forum_name3/ in the permitted paths list.
In testing, I discovered that the get_page_link() function on the root forum page returns the path:
mywebsite.com/forum_name3/forum_name3/
instead of
mywebsite.com/qaforums/
forum_name3 happens to be the forum with the highest Forum ID.
So my questions are:
1. Why is the get_page_link() function returning a different url on the the root forum page?
2. Why is the permalink mywebsite.com/qaforums/forum/forum_name3/ being changed to mywebsite.com/forum_name3/forum_name3/ ?
And by the way, the get_the_ID() function confirms the same thing.
Any help in understanding this would be appreciated.
Thanks!
The plugin page shows last updated 9 months ago and Tested up to: 5.6.4 when the current version of WordPress is 5.8. Is bbPress still being maintained?
WordPress 5.8
bbPress 2.6.6
BuddyPress 9.0.0
Astra Theme 3.6.5Help! I have read every forum post about creating new custom roles in bbPress, but it still isn’t working for me. The created role names are displaying on my Users page in my Admin dashboard, but the roles themselves are not working as intended. When I assign a user a forum role, it is adding it under the “Roles” [i.e., Subscriber (WP Role), Founder (bbPress Role)] and not “Forum Roles.” I tested the different user role settings and they, too, are not working.
Am I missing something or doing something wrong? I’m new to bbPress and very frustrated after spending hours trying to get this to work.
This is the code I have create and placed in my Code Snippet plugin. The forum is being added to a paid members only website, so the URL would not be useful.
function authorready_add_new_roles( $bbp_roles ) {
$bbp_roles['bbp_probation'] = array(
'name' => 'Probation',
'capabilities' => custom_capabilities( 'bbp_probation' )
);$bbp_roles['bbp_subscriber'] = array(
'name' => 'Subscriber',
'capabilities' => custom_capabilities( 'bbp_subscriber' )
);$bbp_roles['bbp_founder'] = array(
'name' => 'Founder',
'capabilities' => custom_capabilities( 'bbp_founder' )
);$bbp_roles['bbp_leader'] = array(
'name' => 'Group Leader',
'capabilities' => custom_capabilities( 'bbp_leader' )
);$bbp_roles['bbp_moderator'] = array(
'name' => 'Moderator',
'capabilities' => custom_capabilities( 'bbp_moderator' )
);$bbp_roles['bbp_administrator'] = array(
'name' => 'Administrator',
'capabilities' => custom_capabilities( 'bbp_administrator' )
);return $bbp_roles;
}add_filter( 'bbp_get_dynamic_roles', 'authorready_add_new_roles', 1 );
function authorready_add_role_caps_filter( $caps, $role )
{
/* Only filter for roles we are interested in! */
if( $role == 'bbp_probation' )
$caps = custom_capabilities( $role );if( $role == 'bbp_subscriber' )
$caps = custom_capabilities( $role );if( $role == 'bbp_founder' )
$caps = custom_capabilities( $role );if( $role == 'bbp_leader' )
$caps = custom_capabilities( $role );if( $role == 'bbp_moderator' )
$caps = custom_capabilities( $role );if( $role == 'bbp_administrator' )
$caps = custom_capabilities( $role );return $caps;
}add_filter( 'bbp_get_caps_for_role', 'authorready_add_role_caps_filter', 10, 2 );
function custom_capabilities( $role )
{
switch ( $role )
{/* Capabilities for 'probation' role */
case 'bbp_probation':
return array(
// Primary caps
'spectate' => true,
'participate' => false,
'moderate' => false,
'throttle' => false,
'view_trash' => false,// Forum caps
'publish_forums' => false,
'edit_forums' => false,
'edit_others_forums' => false,
'delete_forums' => false,
'delete_others_forums' => false,
'read_private_forums' => false,
'read_hidden_forums' => false,// Topic caps
'publish_topics' => false,
'edit_topics' => false,
'edit_others_topics' => false,
'delete_topics' => false,
'delete_others_topics' => false,
'read_private_topics' => false,// Reply caps
'publish_replies' => false,
'edit_replies' => false,
'edit_others_replies' => false,
'delete_replies' => false,
'delete_others_replies' => false,
'read_private_replies' => false,// Topic tag caps
'manage_topic_tags' => false,
'edit_topic_tags' => false,
'delete_topic_tags' => false,
'assign_topic_tags' => false,
);/* Capabilities for 'subscriber' role */
case 'bbp_subscriber':
return array(
// Primary caps
'spectate' => true,
'participate' => true,
'moderate' => false,
'throttle' => false,
'view_trash' => false,// Forum caps
'publish_forums' => false,
'edit_forums' => false,
'edit_others_forums' => false,
'delete_forums' => false,
'delete_others_forums' => false,
'read_private_forums' => true,
'read_hidden_forums' => false,// Topic caps
'publish_topics' => false,
'edit_topics' => false,
'edit_others_topics' => false,
'delete_topics' => false,
'delete_others_topics' => false,
'read_private_topics' => true,// Reply caps
'publish_replies' => true,
'edit_replies' => true,
'edit_others_replies' => false,
'delete_replies' => true,
'delete_others_replies' => false,
'read_private_replies' => true,// Topic tag caps
'manage_topic_tags' => false,
'edit_topic_tags' => false,
'delete_topic_tags' => false,
'assign_topic_tags' => false,
);/* Capabilities for 'founder' role */
case 'bbp_founder':
return array(
// Primary caps
'spectate' => true,
'participate' => true,
'moderate' => false,
'throttle' => false,
'view_trash' => false,// Forum caps
'publish_forums' => false,
'edit_forums' => false,
'edit_others_forums' => false,
'delete_forums' => false,
'delete_others_forums' => false,
'read_private_forums' => true,
'read_hidden_forums' => false,// Topic caps
'publish_topics' => false,
'edit_topics' => false,
'edit_others_topics' => false,
'delete_topics' => false,
'delete_others_topics' => false,
'read_private_topics' => true,// Reply caps
'publish_replies' => true,
'edit_replies' => true,
'edit_others_replies' => false,
'delete_replies' => true,
'delete_others_replies' => false,
'read_private_replies' => true,// Topic tag caps
'manage_topic_tags' => false,
'edit_topic_tags' => false,
'delete_topic_tags' => false,
'assign_topic_tags' => false,
);/* Capabilities for 'group leader' role */
case 'bbp_leader':
return array(
// Primary caps
'spectate' => true,
'participate' => true,
'moderate' => true,
'throttle' => false,
'view_trash' => false,// Forum caps
'publish_forums' => false,
'edit_forums' => false,
'edit_others_forums' => false,
'delete_forums' => false,
'delete_others_forums' => false,
'read_private_forums' => true,
'read_hidden_forums' => false,// Topic caps
'publish_topics' => false,
'edit_topics' => false,
'edit_others_topics' => false,
'delete_topics' => false,
'delete_others_topics' => false,
'read_private_topics' => true,// Reply caps
'publish_replies' => true,
'edit_replies' => true,
'edit_others_replies' => true,
'delete_replies' => true,
'delete_others_replies' => true,
'read_private_replies' => true,// Topic tag caps
'manage_topic_tags' => false,
'edit_topic_tags' => false,
'delete_topic_tags' => false,
'assign_topic_tags' => true,
);/* Capabilities for 'moderator' role */
case 'bbp_moderator':
return array(
// Primary caps
'spectate' => true,
'participate' => true,
'moderate' => true,
'throttle' => true,
'view_trash' => true,// Forum caps
'publish_forums' => false,
'edit_forums' => false,
'edit_others_forums' => false,
'delete_forums' => false,
'delete_others_forums' => false,
'read_private_forums' => true,
'read_hidden_forums' => false,// Topic caps
'publish_topics' => true,
'edit_topics' => true,
'edit_others_topics' => false,
'delete_topics' => false,
'delete_others_topics' => false,
'read_private_topics' => true,// Reply caps
'publish_replies' => true,
'edit_replies' => true,
'edit_others_replies' => false,
'delete_replies' => true,
'delete_others_replies' => true,
'read_private_replies' => true,// Topic tag caps
'manage_topic_tags' => false,
'edit_topic_tags' => true,
'delete_topic_tags' => true,
'assign_topic_tags' => true,
);/* Capabilities for 'administrator' role */
case 'bbp_administrator':
return array(
// Primary caps
'spectate' => true,
'participate' => true,
'moderate' => true,
'throttle' => true,
'view_trash' => true,// Forum caps
'keep_gate' => true,
'publish_forums' => true,
'edit_forums' => true,
'edit_others_forums' => true,
'delete_forums' => true,
'delete_others_forums' => true,
'read_private_forums' => true,
'read_hidden_forums' => true,// Topic caps
'publish_topics' => true,
'edit_topics' => true,
'edit_others_topics' => true,
'delete_topics' => true,
'delete_others_topics' => true,
'read_private_topics' => true,// Reply caps
'publish_replies' => true,
'edit_replies' => true,
'edit_others_replies' => true,
'delete_replies' => true,
'delete_others_replies' => true,
'read_private_replies' => true,// Topic tag caps
'manage_topic_tags' => true,
'edit_topic_tags' => true,
'delete_topic_tags' => true,
'assign_topic_tags' => true,
);break;
default :
return $role;
}
}
Topic: bbpress and cache
Hello
So i own a website in wordpress with latest bbpress installed but i’m having cache issues with the forum. So when browsing i get old content, always have to ctrl+shift+r.
Googling the issue i saw some topics with users but it couldnt be fixed entirely.
I have tried:
– No cache on the hosting;
– Automatic cache on hosting;
– Installed LiteSpeed Cache
Disabled Cache for logged in users
Added /topic* /forum* /forums* to be excluded
Every other setting i found online
– Installed W3 Cache (i have it currently)
Still cache issues specially editing topics (shows old content), going back on forum shows also outdated content. Same happens after editing topics
– Also tried no Cache Plugins, same results.It has been a pain to try to deal with this and my knowledge is limited on this.
Any help?Hello,
I set up the Forum page, the registration page and the password reset pages. It seemed to be working ok until I get to creating a new user as if I am someone new (in order to test it).
This is for a multi-vendor site, using WooCommerce and Dokan Multi-Vendor.
Please check out this page as an example and proceed as if you are a new user setting up their username.
After you enter the username and email and then click the register button it directs to the shop page for the site. There isn’t a place in the editor that I can see that allows me to change where the register button links to. I filled out the urls correctly in the bb press login widget.
See attached photo: https://ibb.co/N10SKLt
This is urgent as it is keeping my client from launching their site. Thank you for your help!
I’m migrating a forum from vbulletin to bbpress, after a lot of tests I managed to get everything working but the images of the old forum and the emoticons are transferred to the root ex: mysite.it/smile.gif
Do you know a way to set a specific folder or at least the folder where I am in vbulletin?
Thank you