Search Results for 'code'
-
AuthorSearch Results
-
March 17, 2014 at 1:50 pm #143736
In reply to: Add forum description to forums index
Robin W
Moderatorelegant – depends !
If you simply alter this file then on any bbpress version update you’ll lose the changes, so make a note of them.
There are alternatives
1. Add the css styling change to the style.css file within your child theme.
If you have a child theme, then this is ideal, as neither plugin nor theme update will affect your change. Simply add the code below to your style.css
/*Styling for forum description */ #bbpress-forums div.bbp-forum-content { clear:both !important; margin-left: 0px !important; padding: 0 0 0 0 !important; }2. If you only have a main theme, then consider using a child theme – it’s quick and easy to create one, basically it’s just a theme that you create that says “use this main theme, but then add these bits”. Google child theme video and you’ll get loads of help.
3. Add this to the style.css in your main theme
But you’ll need to keep a note of it for theme upgrades, so this is really no better than changing in the bbPress template, and neater to do it in bbPress than your theme4. Make a directory called css in your theme (either child or main) and copy the bbpress.css file into it. Then make changes there. this then won’t be overwritten on upgrades, but you will not get the benefit of changes to the default bbpress.css that may be in upgrades.
Overall 1. is by far the best choice, as you keep the code no matter what happens. Otherwise keep a note of your changes (which are fine, and are what I did to test prior to putting the end result in my style.css), so that you can replicate them on upgrades.
March 17, 2014 at 10:56 am #143735In reply to: Add forum description to forums index
oweniverson
Participanti’m not a developer by any means, but this seems to work (there’s probably a better way 🙂
in my bbpress.css file here “wp-content\plugins\bbpress\templates\default\css”
i just broke out “div.bbp-forum-content” from this:#bbpress-forums div.bbp-forum-content, #bbpress-forums div.bbp-topic-content, #bbpress-forums div.bbp-reply-content { margin-left: 130px; padding: 12px 12px 12px 0; text-align: left; }to this:
#bbpress-forums div.bbp-forum-content { margin-left: 0px; padding: 12px 12px 12px 0; text-align: left; } #bbpress-forums div.bbp-topic-content, #bbpress-forums div.bbp-reply-content { margin-left: 130px; padding: 12px 12px 12px 0; text-align: left; }and set that left margin to 0 px rather than 130.
let me know if there’s a better or more elegant way!March 16, 2014 at 11:06 pm #143727sarau
ParticipantHi Robin,
Sorry for the long delay. I got sided-tracked. I followed your advice and I found something like a 404.php. The page is called no-results.php I found the text that I need to edit on the page and made changes to it however, because the text is displayed with the use of php, I’m not sure how to make it recognize the html hypertext link I added. Is it possible to make a link active within this code? It would be convenient to just click on the text and get where you need to go, if that’s possible. Here’s the code that I’m referring to:<p><?php esc_html_e('The page you requested could not be found or could not be displayed. If you are a parishioner and you are trying to access a forum page, it may be that you <a href="http://www.url-here/">need to log in</a>. You can do so on the forum page in the right sidebar. Otherwise, try refining your search, or use the navigation above to locate the post.','Chameleon'); ?></p>I can remove the anchor tag if I need to but it would be nice to have the link.
On another, related note, when you go to the top level forum page, if you aren’t logged in it displays text that says “Oh bother! No forums were found here!” I’m pretty sure this text is coming from the bbPress plug-in. Do you know if there is a way to customize what it says here as well?
Thanks again for all your help!
March 16, 2014 at 10:03 am #143724In reply to: Display forum'description on the front-end
Robin W
ModeratorThanks, I’ve slightly amended it to get it to display on all pages and added it to the documentation
Thanks again for posting your solution !
March 16, 2014 at 10:02 am #143723In reply to: Add forum description to forums index
Robin W
ModeratorI’ve just added the code I think you’re after to the documentation viz
Come back if that’s not what either of you were after !
March 16, 2014 at 4:36 am #143719In reply to: Photo in profile
Robin W
Moderatorbbpres uses gravatar as it’s photo system.
load you photo to gravatar and it will appear
I have a page on my site that explains this to users viz :
This site uses Gravatar to display avatars. if you already have a Gravatar account with your email for this site, then it will display on your forum posts; it can take a few hours before the link is established the first time. What is an Avatar? When you post, you'll see the default avatar beside your name. You can change this to any image you wish (providing it's decent!). Many people have a picture of themselves, or anything that represents your ego or character. Changing from the default avatar. The site uses Gravatar. The Gravatar site stores you avatar against your email address. This allows you to have a single image that many websites can use without you needing to add it or change it on each site. Since this site knows your email address (through your profile), this site can pick up the avatar stored with Gravatar. If you're not already signed up with Gravatar, then follow this link [https://en.gravatar.com/site/signup] to register your email address and avatar with them. This site will then pick up that avatar and display it against your post. It can take a few hours before the link is established the first time. Confused? Don't worry - if you're happy with the default avatar against your name, you need to do nothing further !March 14, 2014 at 11:53 pm #143692In reply to: Edit topic reply, changes post order
George Stephanis
ParticipantJust confirmed that deactivating threaded replies via
Settings → Forumsfixes the issue.March 14, 2014 at 10:26 pm #143691In 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.
-
AuthorSearch Results
