Search Results for 'code'
-
Search Results
-
Ive had a search through the forums here and cant find an answer to my question, i have just installed bbpress and it integrates perfectly into my current wordpress installation. I notice whenever a post is made in bbpress the authors ip address is logged and is visible to the administrator. I would like to disable this and set it so that no ip addresses are stored at all.
From what i can tell the ip’s seem to be stored in the following db field:
wp_postmeta/meta_valueI have a function i found online for wordpress which prevents the ip from being logged:
add_filter('pre_comment_user_ip', 'no_ips'); function no_ips($comment_author_ip){ return ''; }Can the above be converted for use with bbpress?
Any advice would be appreciated 🙂
Topic: Problems with forum display
Hello,
I am having issues getting the BBpress forum to display in any sensible manner
At one point i made a category and used it as a page, this at least looked reasonable but didn’t allow for sections to be created. I am currently using the shortcode “[bbp-forum-index]” and now the catagoriess seems to show the sub forums. but they are all bunched together with a (0,0) next to each of them
Is there a way to split this up or create a proper forum layout?
my forum page: http://watracing.com/?page_id=132I am new to BBpress
I just put this filter inside bbpress-functions.php, but it seems not to be executing the function… could you please help me? I’m stuck…
add_filter('bbp_plugin_dir_url', '_bbp_plugin_dir_url'); function _bbp_plugin_dir_url($plugin_dir_url) { return str_replace("/home/content/12345/html/content/plugins", "", $plugin_dir_url); }Thank you!
I am currently using Simple:press and want to convert to bbPress. I have both installed on my WP, and I downloaded simplepress.php and uploaded it onto my server in the file/directory suggested from this site (wpcontent/etc)
I followed these instructions: http://codex.bbpress.org/import-forums/
And when I hit “start’, I get this:
“Repair any missing information: Continue
Conversion Complete
No replies to convert
No tags to convert
No topics to convert
No forum parents to convert
No forums to convert
No passwords to clear
No users to convert
Starting Conversion”(Obviously in reverse order).
WHat am I doing wrong? I have the updated versions of both forums and of WP (3.6).
How can you change the background of posts and the table containing the forum titles? The background of my core wordpress site is okay (I have Responsive theme installed), but the forum area should have a different color, especially the posts. Where can I find the apporpiate code sctions for this in the CSS?
I tried to upgrade my bbPress forum from version 1.0.2 to 1.2, following the method described on this topic: http://bbpress.org/forums/topic/upgrade-bbpress-1-0-2-to-2-1-2/page/2/#post-127780. But when I get in my control panel and try to upgrade my database clicking on the indicated button i get a 500 Internal Sever Error Message, given by the following error on my error log:
[Mon Aug 12 21:23:48 2013] [warn] [client 127.0.0.1] mod_fcgid: read data timeout in 71 seconds, referer: http://XXXXXX/forum/bb-admin/upgrade.php
[Mon Aug 12 21:23:48 2013] [error] [client 127.0.0.1] Premature end of script headers: upgrade.php, referer: http://XXXXXX/forum/bb-admin/upgrade.phpI really need a little help.
I have a phpBB (3.0.11) forum since many years. After a good clean up, I am down at these stats
1 200 members
18 000 subjects
52 000 answersMy urls looks like this
http://www.mysite.com/forum/viewtopic.php?f=8&t=27944In Google i get 280 000 results if I type this
“mysite.com/forum/viewtopic.php”I am feeling this forum software (thanks for all these nice years!) gets behind the actual social life these years so I am looking to change for another forum (hopefully with Facebook login!)
What will happen if I decide to switch to installing bbPress into my actual WordPress ? I have read the codex, but doest my urls and so my results in google would all be lost (as I can’t see how a rewrite redirect url could work here anyway) ?
Probably best directed at @johnjamesjacoby, any suggestions welcome!
Already read your post here (love the concept, makes sense) and have a question : http://bbpress.org/forums/topic/roles-and-capabilities-in-bbpress-2-2/
I’m the developer of Events Manager and in this plugin you can assign custom capabilities to existing roles. Unfortunately your recent update regarding caps is preventing our plugin from adding custom caps to your roles.
I’ve figured out a way around this, but this requires at least 1 extra database query each instance since I can’t load wp_user_roles via get_option due to your hooks.
function em_bbp_get_caps_for_role( $caps, $role ){
global $em_capabilities_array, $wpdb;
//get the non-dynamic role from the wp_options table
$roles = maybe_unserialize($wpdb->get_var("SELECT option_value FROM {$wpdb->options} WHERE option_name='wp_user_roles'"));
//loop through the original role if it exists and add our em caps to the bp role
if( !empty($roles[$role]) ){
foreach($roles[$role]['capabilities'] as $cap_name => $has_cap ){
if( array_key_exists($cap_name, $em_capabilities_array) ){
$caps[$cap_name] = $has_cap;
}
}
}
return $caps;
}
add_filter('bbp_get_caps_for_role', 'em_bbp_get_caps_for_role', 10, 2);
What it does is load our caps into your caps by referencing the original wp_user_roles array
So, my questions are:
- Is there a better way to do this, preferably avoiding extra DB queries?
- Since you seem to be assigning a second role to the user, would an alternative solution be to prevent EM from assigning caps to bbpress user roles and let the primary/secondary role inherit the relevant caps?
thanks for reading!
Hi,
I would like to make the forum name part of the topic dynamic.
I like to have
forum/name-of-forum/topic-titlewhere the “name-of-forum” should relflect the name of the forum the topic is in
but I get:
forum/topic/topic-titlewhere the “topic” part is fixed.
Is there a plugin? Do I have to code?
Any help is appreciated 🙂
Hi,
I’m currently trying to adjust the styles of my bbpress install and am running into a bit of difficulty. I’m running bbPress 2.3.2 and WP 3.6, using my own theme which is based on “Twenty Twelve.”
I noticed some big spaces in the header on each page and went to reduce the space. It turns out there are a bunch of different paragraph tags in the header for each “topic” on my site, but these tags do not appear on example sites listed on bbpress.org.
This first snippet is the code I’d like to have so I can style it (taken from http://www.dalluva.com/member-area/forums/topics/resources-where-to-get-your-sommelier-certification/):
<li class=”bbp-header”>
<div class=”bbp-reply-author”>Author</div><!– .bbp-reply-author –>
<div class=”bbp-reply-content”>Posts</div><!– .bbp-reply-content –>
<!– .bbp-header –>This is what my site is generating:
<li class=”bbp-header”>
<div class=”bbp-reply-author”>Author</div><p><!– .bbp-reply-author –></p>
<div class=”bbp-reply-content”><p>Posts</p></div><p><!– .bbp-reply-content –></p>Why is my site putting paragraph tags around the comments, as well as the word “Posts”? Any help is greatly appreciated.
Benjamin
Topic: AEF Import to bbPress
Introduce Forum Importer template for use with importing from AEF (Advanced Electron Forum) v1.0.x (Tested on v1.0.9)
http://codex.bbpress.org/import-forums/ & ​​http://codex.bbpress.org/import-forums/aef
Working: Forums, Topics, Replies & Users
Not Working Yet: User Passwords & Custom BBCode for Topic & Reply ContentAttached to bbPress Trac Ticket #2384 is the 1st pass patch for AEF importing into bbPress.
To test the importer download the latest patch from the link above and copy/ftp the file into the /includes/admin/converters/ folder of your bbPress plugin.
I hope to get the remaining outstanding items done ASAP.
(User passwords will be a little trickier and will take a bit more time)Any feedback and/or testing that you can provide will help me out tremendously.
Cheers,
Stephen 🙂
Topic: FluxBB Import to bbPress
Introduce Forum Importer template for use with importing from Phorum v5.2.x (Tested on v5.2.19)
http://codex.bbpress.org/import-forums/ & ​​http://codex.bbpress.org/import-forums/fluxbb
Working: Forums, Topics, Replies & Users
Not Working Yet: User Passwords & Custom BBCode for Topic & Reply ContentAttached to bbPress Trac Ticket #2383 is the 1st pass patch for FluxBB importing into bbPress.
To test the importer download the latest patch from the link above and copy/ftp the file into the /includes/admin/converters/ folder of your bbPress plugin.
I hope to get the remaining outstanding items done ASAP.
(User passwords will be a little trickier and will take a bit more time)Any feedback and/or testing that you can provide will help me out tremendously.
Cheers,
Stephen 🙂