Search Results for 'test'
-
Search Results
-
I have a few questions that I was hoping one of the bbPress developers would be able to give me a quick hint about offhand.
I’m getting results that leave me completely puzzled, as I try to hook into or directly modify the `bbp_get_caps_for_role()` function in `/core/capabilities.php`.
The `bbp_get_caps_for_role` filter
My purpose is to try and return an array with true on all caps for any role, because I need to find out why only the keymaster gets to upload images.My first attempt is just to use the `’bbp_get_caps_for_role’` filter provided by the function. This is where the mysterious stuff starts…
I can add the filter, and when I check the `$wp_filters` global afterwards, I can verify that the filter has been added correctly. However it doesn’t fire. When I check the `$wp_filters` array inside the `bbp_get_caps_for_role()` function, just before the hook is applied, my filter has vanished. So somewhere there must be a function removing my filter. But where, and why!?
Testing by returning the `$caps` array with all caps set to `true`
So giving up on the filter for now, I simply try to hardcode the all-true `$caps` array directly into the `bbp_get_caps_for_role()` function and returns this, regardless of role. What then happens is even weirder. – Now my user can not even post a reply in the forum.How can setting all caps to true end up giving my user less rights in the forum?!
Thanks in advance guys!
For reference, here is the bottom part of my hacked `bbp_get_caps_for_role()` function:
`
…
‘assign_topic_tags’ => true,
);break;
}$caps = array(
// Keymasters only
//’keep_gate’ => true,// Primary caps
‘spectate’ => true,
‘participate’ => true,
‘moderate’ => true,
‘throttle’ => true,
‘view_trash’ => true,// Forum caps
‘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
);return $caps;
//return apply_filters( ‘bbp_get_caps_for_role’, $caps, $role );
}
`Hoping someone can confirm this bug to avoid this issue being skipped for the 2.3 release since it is considered critical
———————–
john the admin creates group1 – jane creates group2 (private)when jane visits group2 to create a forum post, it is posted to group1 and everyone can view the private forum post.
tested twice with new installs wordpress 3.5.1 + buddypress trunk-6779 + bbpress trunk 4761
jane is a standard user (participant)
I am trying to do something which i feel should be pretty simple.
I want to make forum/topics that are only visible and accessible by certain users i can determine myself.
For instance one forum/topic that only 2 forum users say “john” and “paul” have access to along with our admin.
There does not appear to be a way of doing this and i have tried most of the plugins the last 4 days of googling have provided.
Surely im missing something simple?
Im using the latest versions of wordpress and bbpress, just downloaded this week.
The forum in question – though not live, can be seen here: http://69.195.124.85/~youngmo7/12/shortcode-forums/
Any help or advice is greatly appreciated.
Thanks
Topic: BBpress Post Editor
Hey all,
How would one go about extending the default BBpress post editor ? I would like my users to be able to add images and links.. the current editor seems very basic (I am using the latest version of BBpress)..
Even the editor used here on bbpress.org is much better than the default one.
Thanks in advanced for any assistance on this matter.
Regards, Darren
Topic: Shortcodes don’t work
http://www.claverton-energy.com – running WordPress since 2008. In Dec 2012 I was asked to rebuild it, enhance its features, including installation of bbPress / BuddyPress etc.
PROBLEM: an item I have not been able to solve is that users with Admin access can log in, but cannot access the default Admin page. However, they are able to use the Edit option when viewing a page whilst logged in.
I’ve read through numerous forum posts on WordPress.org and other sites, and tried solutions others have found, but have not solved the problem. Some ‘solutions’ have created additional setbacks! Trying to force a database upgrade resulted in all user’s passwords ceasing to work, requiring manual resets via MySQL… 🙂
Over the past month;
– the site has been successively upgraded to 3.5.0 and then to 3.5.1
– wp-admin / wp-includes directories have been replaced with fresh copies to eliminate possibility of a corrupt file
– wp-config has been replaced with latest version
– Database “repair” run from Cpanel
– checked for “curly” quotes in user meta-data
– site used standard wp_ table prefixes
– disk space is not an issue
– max memory use test shows +80mb which seems ok
– directory / file permissions are 755 / 644 respectively throughoutAnd yet, the problem persists…
An additional / presumably related issue: whilst the Super Admin can access all WP Admin areas, including plugin sub-pages. However, the BackupBuddy plugin does NOT show the menu subpages, and entering the URL for those gives that same “you don’t have permissions to access that page” error! Deactivating & deleting it and adding it back via FTP does not resolve that problem.
NB: The underlying problem pre-dates the rebuild, the site now runs:
– BuddyPress / and the Buddy theme,
– Quick Cache
– Stop Spammer Registrations & Confirm User Registration plugin
– User Spam Remover
– Wordfence security
– BuddyPress backupAny suggestions on how to solve our “permissions” issues would be greatly appreciated.
Regards
BenTopic: Limit of the latest topics
Hi,
I want to display recent 5 topics on the sidebar so I used bbp_has_topics() loop but I don’t know how to display only 5 posts. On the forums I have 20 topics per page.
Topic: Links in posting
Whenever I create a post in a forum and add a web link, the link disappears (as does the text enclosed in the tags) from the post.
See here for example http://c3wales.org/forums/topic/test/
The site is WP 3.5.1, BBpress is 2.2.4
Theme is convention by WPZoomThanks
Hi,
I’m having a very strange problem with bbpress.
I’m using the lastest version of WordPress and bbpress and I created a super stick topic. These are just rules and guidelines so I closed it to replies. I can see it in the category forum page such as this (http://causepages.com/sw/forum/health-insurance-finance/) when logged in as a user but when I actually click into it, it’s not shown. (I just get my sidebar).
Can anyone help with this please?
I did search this forum for an answer with no luck. Some user named “anonymous” posted spam about snoring on my ElectricityClub.org forum. No such user to delete! My admin account sees no way to delete the post either! The forum settings have the anonymous setting unchecked like it should be. I have all the latest updated plugs. How to I get rid of the current user and post and prevent such intrusions in the future?
Topic: Preventing name changes
Hello All,
I am looking for a way to disable users from changing their names from within the bbpress interface (/profile/edit/group/1/). This is located on the page where they choose a forum signature. I do not mind if they have a forum signature. However, I would like to prevent them form changing their name.The site is currently running wordpress 3.5.1, buddy press 2.2.3 and is on a local test machine.
I did some searching on google and the on this site and was unable to find an answer to this question. If I missed it please let me know and my apologies in advance if this in the wrong area.
Thank you in advance for your help!
Regards,
Chevman