Search Results for 'bbpress'
-
Search Results
-
Hi, One of my users discovered that they can post potentially malicious HTML into the bbPress reply box.
I once added the code below to my functions.php file, because users were not able to use Left-align, Centre, and Right-align for text, but I fear maybe it’s now given too many HTML permissions.
Could anyone please look at this code and let me know if something needs to be changed (maybe some trues switched to falses)?
Thank you so much, Sam
add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' ); function ntwb_bbpress_custom_kses_allowed_tags() { return array( // Links 'a' => array( 'class' => true, 'href' => true, 'title' => true, 'rel' => true, 'class' => true, 'target' => true, ), // Quotes 'blockquote' => array( 'cite' => true, ), // Div 'div' => array( 'class' => true, ), // Span 'span' => array( 'class' => true, 'style' => true, ), // Paragraph 'p' => array( 'class' => true, 'style' => true, ), // Code 'code' => array(), 'pre' => array( 'class' => true, ), // Formatting 'em' => array(), 'strong' => array(), 'del' => array( 'datetime' => true, ), // Lists 'ul' => array(), 'ol' => array( 'start' => true, ), 'li' => array(), // Images 'img' => array( 'class' => true, 'src' => true, 'border' => true, 'alt' => true, 'height' => true, 'width' => true, ), // Tables 'table' => array( 'align' => true, 'bgcolor' => true, 'border' => true, ), 'tbody' => array( 'align' => true, 'valign' => true, ), 'td' => array( 'align' => true, 'valign' => true, ), 'tfoot' => array( 'align' => true, 'valign' => true, ), 'th' => array( 'align' => true, 'valign' => true, ), 'thead' => array( 'align' => true, 'valign' => true, ), 'tr' => array( 'align' => true, 'valign' => true, ) ); }
When I try to access mysite.com/forums it does not work with my theme so I copied archive-forum.php to my child theme.
The default archive-forum.php template allows the bbpress content to appear, but not the theme header, so I stripped away the bbpress header items and replaced ‘archive-forum’ with ‘page’ like so:
<?php get_header(); ?> <div id="forum-front" class="bbp-forum-front"> <div class="entry-content"> <?php bbp_get_template_part( 'content', 'page' ); ?> </div> </div><!-- #forum-front --> <?php do_action( 'bbp_after_main_content' ); ?> <?php get_sidebar(); ?> <?php get_footer();
This makes the theme header work, but now the bbpress content is broken.
I am getting the following error:
Warning: count(): Parameter must be an array or an object that implements Countable in public_html/wp-includes/post-template.php on line 316
The line in question is:
if ( $elements['page'] > count( $elements['pages'] ) ) { // if the requested page doesn't exist $elements['page'] = count( $elements['pages'] ); // give them the highest numbered page that DOES exist }
From what I understand
/forums
is not a page that ‘exists’, but I’ not comfortable modifying WP core. Any help would be appreciated…Hi.
When I view my forum list page, it is showing the date the last topic was created, not the last reply in that topic. However, in the topic list, it shows the correct time and date of the last reply.
Is there a way to show the date of the last reply instead of the date when the last topic was created?
bbpress: 2.6.3
Hi,
Is there a way for bbPress notifications that appear in BuddyPress (eg: “You have a new reply on the topic you started”) to automatically be dismissed when clicked, like other notifications do?Currently they can only be dismissed by manually marking them as read on the user profile page.
Thank you,
SamWordPress 5.3.2
bbPress 2.6.3
BuddyPress 5.1.2Topic: Import Monitor Repeats
Hello,
I am seeking help importing my Mingle forums…I can’t seem to find the answers on the bbpress support boards.Here are the specifics of my setup:
Wordpress 5.3.2
Pandora Theme 1.3.2
bbpress 2.6.3
naranonchat.comOriginally, I struggled to figure out what information needed to be put into the import fields as I am definitely not well versed in the world of website building. I was able to find my wp-configure.php to get the information. My table prefix was not wp_ it was smi_ which took me FOREVER to figure out.
When I finally got the import monitor to run, it got stuck at step 6 multiple times and despite clicking the option to erase previous attempts, it just created multiple duplicate forums. So, I did the hard reset that was suggested on one of the message boards by Stephen Edgar. When I started over, only one version of the forums was created. I was super excited!
Now, when it moves on to step 7 it first tells me “Converting topics (0 through 50 of 50) 100%,” then it just continuously runs stating over and over “Converting topics (50 through 50 of 50) 100%.” This creates copy after copy after copy of the same exact posts and never stops. I have over 500+ topics, not 50. How can I stop step 7 from multiple duplications of the same 50 posts, get all 500+ topics that should come over and move on to step 8?
Please help, I am super frustrated.
Thanks in advance!
when my free members post something in bbpress, it shows in their buddypress wall profile
I want not to post this in their wall when my paid members post something in paid forums in bbpress
is this doable?
or how to hide all of the bbpress postign at all in the buddypress profile?I am trying to replace a brand name throughout my entire site using a php function and an add filter. Works great, but I cannot seem to get to the bbpress “content”. What I am trying to do is:
add_filter(‘the_content’, ‘replace_text’);
where “the content” includes a topic or a reply within bbpress. I have no idea what “the content” would be.
Any help would be appreciated
Kris
Topic: Spam Registrations
Hi all,
Looking for a way to stop spam user regestrations. By default the users are “spectators” so the spam users cant do anything but is there a way to stop them outright?
I enabled reCAPTCHA for bbPress but, unless I am doing something wrong, it doesn’t seem to stop the regestrations (in fact not sure its working).
Thanks.
Hi folks. I am trying to add the shortcode for a single forum [bbp-single-forum id=$id ]
However I cannot find the ‘forum id’ anywhere.
The bbpress install is new and I have only created one test forum. Nowhere is the ‘test forum id’ listed. I can only see a field for ‘order’ which is by default ‘0’. So I tried the forum id as 0 but nothing appears on the page, I have also tried the id as 1 as it is the only forum created.
Please note that the shortcode for showing ‘all forums’ work as expected on the page.Any thoughts?
Thank you.Hi guys,
After update my topic freshness or time stamp of post is totally broken. I have tried several solutions including “repair freshness” trough tools section . Only thing that somehow solved my problem was disabling freshness trough “bbpress style pack” and let bbpress show only date (eg 23rd. January 2020).
But bbpress style pack is not working for me as it is breaking my css and I think it was that plugin which switched all post to show ” Right Now” only new posts are showed correctly but all old posts are ” Right now” . I have also ask server admin to turn off caching but it didnt help.
Is there any solution for this without bbpress style pack?
Note : ” Teraz” means ” Right now” in Slovak.
Link for example: https://fitgo.sk/diskusia/doplnky-vyzivy/
Topic: Replace bbpress text editor
Hi!
I don’t know if this is possible, but I would like to replace the text editor in reply of bbpress by another wysiwyg html editor like this one:
I have some trouble right now. The users on my web site report me that they can’t put any html code in their post like the balise ul/li. I edit their post and repost. The code appear just fine. They can’t use a simple <br/> but I can. Is it the editor of bbpress? Or a permission thing?
Another admin have the same problem also. They post a first reply with a ul/li. The list appear just fine. He post the same code after that one and the content between the ul/li just desappear.
Thank you for your help.