Search Results for 'code'
-
Search Results
-
Topic: bbpress breaks my permalinks
I have a WordPress (v 3.4.1) site with a custom theme. I have my permalinks set to %postname% and my navigation is hard coded with relative urls (
<a href="about">About</a>)I have installed bbpress (v 2.0.3) and everything works great until I try to leave the forum page. From the forum page, when I click on any link in the nav, it adds /forum to all my urls resulting in a 404 error.
In the bbpress settings I have unchecked the “Prefix your forum area with the Forum Base slug (Recommended)” option, and that did not fix it.
Any help would be appreciated as this site is due to a client by the end of today and I don’t want to use a different Forum plugin.
I already have Buddypress installed on my wordpress theme. After I install bbpress, I can’t access my dashboard anymore. When I click on dashboard I get this message:
Server error
The website encountered an error while retrieving http://www.
. It may be down for maintenance or configured incorrectly.How do I fix this?!
Good Day,
Please forgive me for being a complete Village Idiot in regards to WP + bbPress…
I am working on a 2nd site, it’s in development right now. I have BuddyPress installed and inactive, bbPress 2.1 RC 2 installed and active (working well so far, I might add).
I am also using the Custom-Community-Pro theme by ThemeKraft because the young lady that will manage this site is even more clueless than I am and needs the easy CSS updates this provides.
Per the below (copied in the text I’m referring too at bottom of post), I thought with 2.1 we no longer needed to make child themes, etc., for bbPress to match our WP theme. Am I missing something (most likely)? Do I need to still create a child theme or follow the other directions below on making bbP match my site seamlessly?
Again, my apologies if this has been addressed elsewhere…
Thanks and Regards ~ Alisa
Codex Home → Theme Compatibility
As of 2.1, bbPress has built-in theme support. All required elements such as front-end editing are included. This means that all functionality will work, even when a theme has no specific bbPress coding.
All bbPress compat can be overridden using a theme or another plugin. Check bbp-theme-compat template wrappers for what a normal theme should include.
To customize bbPress::
Create a new directory within your theme root called ‘bbpress’ for example: wp-content/themes/YOURTHEME/bbpress
Copy any files from bbPress/bbp-theme-compat/ to the new directory within your theme
Edit the new files for complete control over bbPress display in the theme
You can completely disable the included front-end elements by adding the following to your theme’s functions.php:
add_theme_support( ‘bbpress’ );
Topic: Getting error
I have installed Buddypress and enabled Forums feature in my wordpress website (using NEWS child theme).
I’m getting following error:
Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 122880 bytes) in /home/travels/public_html/wp-content/plugins/buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php on line 922
— SoundManager 2 failed to load (security/load error) —
soundManager.disable(): Shutting down
soundManager: Failed to initialise.
soundManager: Verify that ./soundmanager2_debug.swf is a valid path.
soundManager: No Flash response within expected time. Likely causes: Loading soundmanager2_debug.swf may have failed (and/or Flash 8+ not present?), Flash blocked or JS-Flash security error.
soundManager: Getting impatient, still waiting for Flash…
soundManager::initMovie(): Waiting for ExternalInterface call from Flash..
soundManager::initMovie(): Got EMBED element (created via JS)
soundManager::createMovie(): Trying to load ./soundmanager2_debug.swf
— SoundManager 2 V2.97a.20110123 (AS2/Flash
, normal polling —Can any1 help by this??
Regards,
Ankur
When I look at the topics page in the backend word press page, the only data column that shows up is “Freshness”. I tried to make some modifications to the code, and I must have messed it up. Does anybody know what file controls this page?
In my profile page bbpress states:
“This is how your profile appears to a logged in member.”
<b>You don’t have to be logged in to see a user profile page.</b> I’ve tried this with other member names in the forums in different browsers with cleared out caches. You can see any member profile with the direct URL: http://bbpress.org/forums/profile/username (Try this with any valid user name)
(Could it be that this security hole causes a lot of spam attacks?)
On my site, until I did some tweaking with a membership plugin you could not only access the bbpress profile, but also edit the user profile, change the password, whatever. Now that this is more secure I can give an example:
http://kyebay.ca/forums/admin/Fritzi (styles fall apart)
I want to redirect author links to a custom bbpress profile page with proper site styles applied and separate the user profile from the bbpress profile.
How can that be done? Can you point me to the code I need to use? I could really use some help with this. I’ve posted on this matter in another topic, which had no response, because I may not have described the problem properly. Using WP 3.4 with updated Twenty Eleven theme. Please advise.
Topic: Removing user capabilities
I’m trying to remove the publish_topics capability from the subscriber role when using the bbpress wordpress plugin.
I checked here for reference, but it may not apply to the plugin version.
http://codex.bbpress.org/bbpress-user-roles-and-capabilities/
here’s the code I am using in my theme’s function.php
function bbp_remove_subscriber_caps(){
$role_object = get_role( 'subscriber' );
$role_object->remove_cap( 'publish_topics' );
}
add_action( 'init', 'bbp_remove_subscriber_caps' );
When I print the $role_object it shows:
[capabilities] => Array
(
[read] => 1
[level_0] => 1
[edit_topics] => 1
[publish_replies] => 1
[edit_replies] => 1
[assign_topic_tags] => 1
)
Which should mean that subscribers can’t create new topics… but the option still shows up on their dashboard. It does however say “You cannot create new topics at this time.” on the forum page within the site. So it seems to be partially working…
Is this a bug or am I just doing it wrong?
