Search Results for 'code'
-
AuthorSearch Results
-
March 14, 2014 at 10:26 pm #143691
In reply to: bbPress Slows Down Site
BackpackersUnion
ParticipantBump – because this is the first Google Search result on bbPress slowing down sites.
Everything I read about bbPress said it’s light weight and integrates well into WordPress. Integration was excellent, but the website speed suffered significantly. I finally had to uninstall it and will need to look for a lighter weight forum plugin.
Click here to see a screen shot of the P3 Plug-in profiler results.
bbPress was responsible for half the load time of all active plugins (bbPress was a fresh install – with no forum activity). I had 24 plugins running total which means bbPress was taking longer to load than 23 other plugins combined. With results like that, there has to be a way to make bbPress more efficient either through caching or making bbPress more efficient when it searches for its short codes (which I believe is why bbPress loads on every page).
I’ve seen this concern on a few forums and really want to see bbPress be successful. If anyone has had success speeding up bbPress or believes my experience was an anomaly, please let us know. Thank you.
Website – WordPress 3.8.1 Multisite, BuddyPress 1.9.2., bbPress 2.5.3
March 14, 2014 at 8:56 pm #143690In reply to: Trying to Edit Reply causes infinite redirect loop
Stephen Edgar
KeymasterThis has just been fixed by the WP-E-Commerce team
https://github.com/wp-e-commerce/WP-e-Commerce/commit/824f56a36ad18fcfed3419ee4430f52a602cae52
It is part of the
Version 3.8.14-devversion so presumably once v3.8.14 is released it will include the bbPress fix 🙂March 14, 2014 at 6:25 pm #143687In reply to: Add a Class to my Body Tag using the Forum Title
Daniel Lemes
ParticipantSorry, this functions seems to return the topic title, not the forum title. I have ‘googled’ around and got this:
$forum_object = get_queried_object(); $forum_id = $forum_object->forum_id; // get the forum id, is it right? $forum_title = get_forum_name( $topic->forum_id ); // get forum title by id $forum_class = sanitize_title_with_dashes($forum_title); //sanitizeNot working since get_forum_name doesn’t work outside bbpress (inside WordPress header). Any other idea on how get the forum title (not the topic) and use as body class on WordPress? Thank you.
March 14, 2014 at 6:08 pm #143686In reply to: I can not seem to translate
Stephen Edgar
KeymasterDetailed information is here https://codex.bbpress.org/bbpress-in-your-language/
March 14, 2014 at 5:34 pm #143682Stephen Edgar
KeymasterYou should be using a string for permalinks category base, NOT %category%
Eg. If you like, you may enter custom structures for your category and tag URLs here. For example, using
stuffas your category base would make your category links likehttp://example.org/stuff/uncategorised/. If you leave these blank the defaults will be used.March 14, 2014 at 8:52 am #143672In reply to: No toolbar available
Liberty
ParticipantThank you very much for your replys.
I made a lot to get this toolbar work. Here is a list of things I already done to solve my problem:- deleted every JavaScript
- deleted the code of the functions.php file
- deactivated every plug-in
- changed bbpress.php to page.php
- commented the bbPress-CSS in style.css out
- commented parts of my bbpress.php out
- enable the Visual Editor
…and I changed my theme to the default “Twenty Ten” theme and the toolbar appeared. The problem is my theme but I don’t know why. 🙁
JavaScripts are deleted and I will add header.php and footer.php files. I hope this is the solution but I don’t think so.
March 14, 2014 at 7:40 am #143669In reply to: Displaying Adsense ads
koendb
ParticipantVery quick response, think this or something like this would work:
Create a child theme, copy loop-replies.php and change this part:
<?php while ( bbp_replies() ) : bbp_the_reply(); ?> <?php bbp_get_template_part( 'loop', 'single-reply' ); ?> <?php endwhile; ?>into:
<?php $i=1; while ( bbp_replies() ) : bbp_the_reply(); ?> <?php if(1==$i or 3==$i) { echo '#adsense code#'; } ?> <?php $i++; ?> <?php bbp_get_template_part( 'loop', 'single-reply' ); ?> <?php endwhile; ?>March 14, 2014 at 2:10 am #143660In reply to: Open forum pages goes blank
Stephen Edgar
KeymasterTry making a copy of your
page.php(orpage-no-sidebar.phpdepending on your preference) simplecorp template file and name itbbpress.phpAlso keep an eye on this thread at Site5 http://www.s5themes.com/forums/topic/simplecorp-bbpress-forum/
March 13, 2014 at 7:32 pm #143657In reply to: Users Do Not Register, Default role solution?
Stephen Edgar
Keymasterhttps://codex.bbpress.org/forum-settings/
Auto Role
Select the default role for bbPress forum members to be assigned, the roles are Keymaster, Moderator, Participant (Default), Spectator and Blocked. For full details of the permissions assigned by these roles please User Roles and Capabilities.I haven’t actually used S2Member so I can’t help to much here, but S2 supports bbPress and there should be something about this on the S2 site (I tried a search and mainly get results for our forums here at bbpress.org :/)
If you are importing them ‘manually’ I would say you will have to manually assign the bbPress role, though if this is something S2 does on the fly then I presume it should also be adding the bbPress role at the same time and this would be an S2 issue.
Also to note is that bbPress users don’t actually get the full role assigned to them until they have actually logged into the site.
March 13, 2014 at 7:18 pm #143655In reply to: No toolbar available
Stephen Edgar
KeymasterI can’t see anything obvious that is wrong….
Your not using the latest jQuery, your using v1.10.2, you should be using v1.11.0
I would double check your code in any
functions.phpyou are using for your theme, make sure you are using bbPress v2.5.3.I’d also suggest strip out all the JavaScript (stickUp.js etc) and the jQuery bits as @Lynq wrote above and get back to an extremely basic
header.php,footer.phpandbbpress.php(orindex.php,page.phpetc) and verify everything is working then add back your JavaScript bits one at a time.March 13, 2014 at 6:26 pm #143651Topic: bbpress forum extremely slow
in forum TroubleshootingCal23
ParticipantI have created a forum through bbpress for an existing website and am experiencing 20-40 second page load times for only the forum pages, the rest of the site works fine. There are no posts yet, there are 14 forums with maybe 2-3 topics per forum. I have tried using caching plugins and programs like benchmark and profiler to determine what is slowing it down, but can’t find anything. I am not really familiar with code, but can do some basic things.
Any ideas on how to speed it up?
Thanks!
March 13, 2014 at 12:57 pm #143642In reply to: Search results issue and CSS border radius issue
Robin W
Moderatorok, you could try just using a separate page for bbpress.
Create a file called bbpress.php in your theme folder
Add the following code to the bbpress.php file
<?php /** * bbPress wrapper template. */ get_header(); ?> <?php while( have_posts() ): the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> <?php get_footer(); ?>If you need a sidebar add
<?php get_sidebar(); ?>before the footer line
See whether that works for you.
March 13, 2014 at 11:42 am #143640In reply to: No toolbar available
Liberty
ParticipantHello Stephen,
I added this code in my functions.php file and got two button but the toolbar is still not working:

I have only 2 plug-ins. bbPress and Aqua Verifier. I already deactivated the Aqua Verifier plug-in to see if the plug-in could cause the problem but it doesn’t. I think the problem is my theme I have created for my site but I can’t find an mistake in my code. I would be really glad if you could take a look on my code: http://snippi.com/s/r6mpul7
March 13, 2014 at 11:21 am #143639In reply to: Search results issue and CSS border radius issue
Center11Forward
ParticipantHi Robin,
Thank you for the prompt reply.
Issue 2 is resolved with your code.
As far as issue 1 goes – I disabled all plugins and it did not resolve the issue. So I went ahead and enabled twentyfourteen and it resolved it – Unfortunately that is not much good to me, as I need to continue using the theme I bought from Themeforest.
The theme authors general attitude when you post any issue with an external plugin is that they basically don’t care as its not directly related to in-built theme functionality or ‘we haven’t tested that with our theme so can’t comment on your issue’.
With the above in mind, could you suggest some way I could debug the issue myself and try to resolve it?
March 13, 2014 at 8:52 am #143636In reply to: Search results issue and CSS border radius issue
Robin W
ModeratorOn issue no. 1
the ' is the code for a quote mark ie the ones either side of this ‘word’
so something is displaying rather than interpreting this.
Not sure why, could ebe a plugin or theme issue
try
Check other plugins
Check that no other plugins are affecting this.
Turn off all other plugins, and see if that fixes the problem. If the problem is resolved, add back one at a time to see which is causing the conflict.
Check themes
If plugins are not the cause, then it may be a theme issue. Switch to a default theme, such as twentytwelve, and test.
come back and let us know if that helped.
On your issue no. 2, bbp-foums class does the overall border
.bbp-header, .bbp-forums { border-top: 1px solid #EEEEEE !important; border-top-left-radius: 10px !important; border-top-right-radius: 10px !important; }fixed it on my test site
March 13, 2014 at 8:15 am #143634Topic: Search results issue and CSS border radius issue
in forum TroubleshootingCenter11Forward
ParticipantHey,
Two hopefully small issues I’d appreciate some help to resolve.
1. Screenshot to display issue:
https://dl.dropboxusercontent.com/u/70814425/BB%20Press/BBPress%20Strange%20Search%20Results.pngIn the above screenshot, I searched for Duleek using the bb-press search widget.
As you can see the characters £#039; appears before and after the search term on the results. page. Any idea how to resolve that?
2. Screenshot to display the issue:
https://dl.dropboxusercontent.com/u/70814425/BB%20Press/BBPress%20Rounded%20Corners%20Issue.pngI am trying to implement a simple border-radius css setting on the BB-Press forums. To achieve that I used:
border-top-left-radius: 10px; border-top-right-radius: 10px; background: 92px 50% no-repeat rgba(65, 66, 64, 0.941176);The issue is that the light grey border (border: 1px solid #eee;) surrounding the entire forums continues to appear in the top left and right corners – That kind of defeats the purpose of the ’rounded corners’ feature.
I can use border:none; and that removes the border from the forums – But I dont want to do that, I only want to remove the border from the top left and top right corners of the forums header… I tried combinations the following and it doesn’t work:
.bbp-header { border-top: none !important; border: none !important; border-left: none !important; border-right: none !important; }Any idea on what to try?
Thanks.
March 13, 2014 at 4:43 am #143612In reply to: BBPress Login Failure (Blank Screen with Single Dot)
Robin W
Moderatoryou can add a modal login which looks prettier than the wp-admin
viz
March 13, 2014 at 4:23 am #143610In reply to: Open forum pages goes blank
Robin W
ModeratorOk, I see you also posted on their support page, which was going to be my next suggestion.
Since your code is on a local server, I obviously can’t take a look.
So now let’s try.
Create a file called bbpress.php in your theme folder
Add the following code to the bbpress.php file
<?php /** * bbPress wrapper template. */ get_header(); ?> <?php while( have_posts() ): the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> <?php get_footer(); ?>If you need a sidebar add
<?php get_sidebar(); ?>before the footer line
See whether that works for you.
March 13, 2014 at 4:10 am #143606In reply to: Forum Question
Robin W
ModeratorThere is no reason that you shouldn’t use the main theme APART from the danger that on an update of the theme you’ll lose the changes. But as you’ve done changes, you have that risk now with your existing changes, and hopefully have a note of them ! As long as you keep a copy of the functions file, you should be able to just add this code to the theme’s functions file at the end.
If that doesn’t work, come back, and I’ll cut the code into a plugin for you, but would prefer not to do that if I don’t have to (time!)
March 12, 2014 at 6:21 pm #143600In reply to: Forum Question
kdumas123
ParticipantHi Robin,
I got stuck on your step: “Then drop this code into your (child)themes functions file.”
I haven’t been using a child theme. I looked up directions on how to create a child theme for the theme I’m using but when I activated that child theme, it removed all the customizations I have made to the template using the template’s layout features and built in Custom CSS area.
http://para.llel.us/support/tutorials/making-an-incentive-child-theme/
After searching Incentive’s forum some more, I saw this post:
It’s up to you and will depend on how you intend to use the theme. I don’t usually setup a child theme until it becomes necessary.
I’ll offer this word of caution. The way Incentive stores its data under a unique identifier based on the theme name, any theme specific settings will not show up in a child theme created after you’ve already started customizing. This means if you start building your site and create 20 custom layouts then later add a child theme you won’t see those layouts in the child theme admin. Each theme has its own set of data so it’s possible to have several installs of Incentive on one site with different settings. It’s not typical for a theme to do this but we find it much safer because it ensures you don’t get data crossover, ever, when there is another install of the theme on the same site.
What I’m saying, in a very long and complicated way is, if you think there is a chance you’ll need a child theme at some point, create it now and start working that way from the beginning. 🙂
So, now I’m thinking I can’t do what you want me to do… Any suggestions?
March 12, 2014 at 9:38 am #143588In reply to: Incomplete list of forums
Robin W
Moderatorok, I think you might need to change a parameter.
Try the following filter in your functions file
function bbp_increase-forums-per-page( $args = array() ) { $args['posts_per_page'] = get_option( '_bbp_forums_per_page', 150 ); return $args; } add_filter( 'bbp_before_has_forums_parse_args', 'bbp_increase-forums-per-page' );Come back and let us know if that worked.
March 12, 2014 at 9:26 am #143585In reply to: max 50 forums ?
Robin W
Moderator“The problem is, there is no template-tags.php”
It was renamed to just template.php
bbpress/includes/forums/template.php
However you should be able to use the following filter in your functions file, just amend the 100 to whatever you want
function bbp_increase-forum-per-page( $args = array() ) { $args['posts_per_page'] = get_option( '_bbp_forums_per_page', 100 ); return $args; } add_filter( 'bbp_before_has_forums_parse_args', 'bbp_increase-forum-per-page' );March 11, 2014 at 11:11 pm #143564In reply to: No toolbar available
Stephen Edgar
KeymasterIf you want to enable the Visual Editor you should use the code from the codex:
function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );Also make sure you have no other plugins causing a conflict.
March 11, 2014 at 11:00 pm #143559In reply to: bbPress Import Users from phpbb wrong
Stephen Edgar
KeymasterSomeone else here has done the import/conversion when using wp-united, here it is, should be some good tips for you: https://bbpress.org/forums/topic/phpbb3-import-incomplete-and-switches-authors/
Also https://codex.bbpress.org/import-forums/ & https://codex.bbpress.org/import-forums/phpbb
March 11, 2014 at 9:33 pm #143558Stephen Edgar
KeymasterIt is a theme issue… Though I expect you knew that was coming 😉
You might be able to find some more info for ‘other’ bbPress Atahualpa issues via:
http://forum.bytesforall.com/search.php?searchid=749383With all that said, I was terrified looking at this theme, it seems that it doesn’t use WordPress Template Hierarchy and overrides/creates it’s own templates and far too many options for my liking.
Create a new file named
bbpress.phpin your theme folder\wp-content\themes\atahualpaAdd the following code to the
bbpress.phpfile and you should be good to go:<?php /** * bbPress wrapper template. */ get_header(); ?> <?php while( have_posts() ): the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> <?php get_footer(); ?> -
AuthorSearch Results
