http://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/
I followed the steps exactly from the link above but any changes I make to my my bbPress child theme don’t seem to work.
I have a copy of the files from the twenty-ten theme placed in a new folder inside my template’s child theme. Is there anything else I need to do besides what was mentioned in the link above?
-
This topic was modified 13 years, 6 months ago by
csk.
I am using:
Wordpress Version 3.4.1
bbPress Version 2.1
BuddyPress Version 1.5.6
Tersus Theme Version 1.3 (http://themeforest.net/item/tersus-responsive-wordpress-theme/2343187)
I created a new Group, and then posted a new topic in that group. This is where the error is being thrown.
Here is a screenshot of what’s happening http://screencast.com/t/ZU0ohu061o4Q
Error says:
Fatal error: Call to undefined method stdClass::have_posts() in /home/…/…/wp-content/plugins/bbpress/bbp-includes/bbp-reply-template.php on line 168
Notice also, that the page title being displayed is from one of the WordPress posts that came with auto-importing dummy data for the theme.
I know a link to the site would help, but I am working with a client who’s not comfortable getting the link out before site-live time. So, sorry about that.
I asked for help from WordPress Forum support, and was told that this was most probably a theme compatibility issue. So I went to the theme’s support forum.
Last night, the theme’s author/s were helpful enough to guide me through what I assume are the usual stuff in troubleshooting this kind of stuff.
Here are the things I’ve done so far:
1. Disabled all plugins apart from bbPress – this resulted to the forum giving me a 404
2. Enabled BuddyPress – this brought back the forums, but with the same issue
3. Emptied all sidebar widgets that have to do with the theme.
4. Used the other theme package (bbPress Twenty Ten).
5. Deleted the function referenced in the error. Led to some new error. This was a desperate, illogical attempt on my part so i undid that.
6. Deleted the wordpress post being shown in the page title. It just displayed the title of the next wordpress post in line.
Note: every time i check to see if that fixed it, i do a clear-cache-reload, just so i’m sure nothing in cache was giving me this headache.
I really hope someone could help out.. Has anyone seen this kind of error ever been documented elsewhere?
I am still thinking your bbpress.css file seems a little short, where did that initially come from?
I tried deactivating plug-ins to no effect. Any other ideas?
I am using a child theme and have added a few things to that theme’s CSS. I was thrying to add a backbround to the widgets in the sidebar. This code works, but there has to be a better way than having to do this for every widget:
div#content
{
background: url(images/background.gif) left top repeat;
}
div#theme-my-login-5
{
background: url(images/background.gif) left top repeat;
}
div#loginwithajaxwidget-4
{
background: url(images/background.gif) left top repeat;
}
div#pm4wp-widget-5
{
background: url(images/background.gif) left top repeat;
}
div#useronline-6
{
background: url(images/background.gif) left top repeat;
}
div#eshopw_cart-3
{
background: url(images/background.gif) left top repeat;
}
div#bbp_topics_widget-2
{
background: url(images/background.gif) left top repeat;
}
div#slideshow-7
{
background: url(images/background.gif) left top repeat;
}
Thanks Lynq.
Hmm, tried creating new topic twice in last 12 hours and they’ve failed to appear so no idea what’s going on on these forums.
Anyway, slightly different question. Any idea what file and location I need to insert code into so that something appears after the Topic and before the reply? I want to start inserting Ads in that location using Simple Ad Manager and have a code snippet I need to insert.
Hi Guys
I am the author who looks after http://wordpress.org/extend/plugins/author-avatars and I have been asked to add the option to link to bbpress profile verse the wordpress profile
Got my bit working
untill I got to here
if (function_exists('bb_get_profile_link')) {
$link = bb_get_profile_link('id='.strval($user->user_id));
}
and found that I am get “undefined function bb_get_profile_link()” as this is a post/page and not a bbpress page so my guess that bbpress code is not loaded.
So what is the best way to get the profile URL / load this function?
Many thanks
Paul
-
This topic was modified 13 years, 7 months ago by
Paul Bearne. Reason: typo
-
This topic was modified 13 years, 7 months ago by
Paul Bearne.
Hey guys, I have been debugging a few issues with these functions so I am going to link to each of the functions below in pastebin, should be pretty good to go for copying across I believe.
Custom bbp_list_forums function. http://pastebin.com/GLhCHYze
Custom last poster block for forums. http://pastebin.com/8K0pkKs5
Custom last poster block for topics. http://pastebin.com/FGptZmiQ
Hope this helps, it is a little clearer on pastebin currently, the code block on bbpress.org likes to change my code for me! :p If you find any issues let me know and I will try and update this topic, also I will get the updates onto my own site.
Good luck!
-
This reply was modified 13 years, 7 months ago by
Lynq.
-
This reply was modified 13 years, 7 months ago by
Lynq.
Bump, anyone?
Btw, I fixed half of the hooks (I added the corresponding hooks into the bbpress theme on my own, and it works), but I have problem with the remaining three hooks which I didn’t fixed, and they are:
add_filter( 'bp_get_the_topic_post_content', 'rfp_filter_rating_link', 3 );
add_filter( 'bp_get_the_topic_post_css_class', 'rfp_alter_post_based_on_rating', 1, 1 );
add_filter( 'bp_get_the_topic_post_poster_name', 'rfp_filter_poster_karma', 3 );
Also, I cannot find anything for the variable $bbp,and the corresponding variables in bbpress which exist in buddypress: $topic_template and $forum_template.
Thanks in advance!
Edit: I forgot to mention that bbpress is updated to version 2.1. 🙂
-
This reply was modified 13 years, 7 months ago by
crazy-nomce.
oo nice, thanks, I got around it but creating a page named forum and adding the shortcode [bbp-forum-index]
Modifying Page Title in Forums Archive
Will look into your fix when when I have time, thanks 🙂
This is probably because you have something like: the_title() inside your title tag in your theme?
I had to have conditional title tags based on what post type I was looking at, check this out:
http://pastebin.com/CW8WZDJH
I am still having an issue with the code syntax highlighter, so I used pastebin.
Good luck!
Les professionnels de formation adizero tissus intelligents ClimAdapt et accessoires très légers à créer de la lumière ou pas d’expérience d’équipements sportifs. Coupe Formotion CP et un design ergonomique, les vêtements et plus de confort. adizero miCoach système intelligent peut aussi être compatible avec l’usage commun peut être accélérée afin d’améliorer la performance sportive [url=http://www.addidasjeremyscottwings.com/chaussures-femme-adidas-adicolor-c-2_26.html]adicolor superstar[/url].
Spinning produits de classe en tenant compte des changements climatiques extérieures, veste coupe-vent, chemise, pantalons et shorts et diverses avec des Adidas CLIMAPROOF veste coupe-vent du vent et de tissus a une protection UV + UPF50 fonction manches courtes T-shirt en tissu double, utilisez le maillage 3D et l'intérieur, la perméabilité serré, mais excellente. Deux utilisation de la couleur audacieuse de couleurs vives et appuyez sur la conception de la couleur et l'attention à un détail, la conception la poitrine unique de fermetures à glissière de ventilation, le dos des vêtements au fond de la conception de bord paquet avec une bande élastique spéciale, élastique interne contenant les détails du silicium de haute technologie . La conception collants à proximité de l'ajout de la qualité appropriée de la charge à protéger. 2 en 1 short en utilisant les principes de conception d'ingénierie, c?té amovible de la commodité de la multi-sport besoins [url=http://www.addidasjeremyscottwings.com/chaussures-femme-adidas-adicolor-c-2_26.html]adicolor adidas[/url].
Produits d'entra?nement fitness de Escalade coupé les manches du traitement spécial con?u pour prévenir le soulèvement du bras sur l'ascenseur alors que le reste des plis du corps. L'utilisation des matériaux et CLIMALITE FlowMapping du corps aérodynamique de la lumière et a une perméabilité à l'air à 360 °. Tous doublée de polyester recyclé à 100%, et à travers le maillage 3D pour augmenter les performances de respirabilité. Série sur la formation Adidas, y compris une série de formation des hommes, des séries de formation des femmes, série pour enfants, et le adidas by Stella McCartney. Adidas s'est engagé à l'intérieur de remise en forme, de la danse, le yoga et une variété de vêtements de sport, chaussures et accessoires, non seulement l'intégration de nombreux éléments de la mode et Adidas pour améliorer la performance athlétique spécialement développé une technologie de pointe [url=http://www.addidasjeremyscottwings.com/chaussures-femme-adidas-adicolor-c-2_26.html]adidas superstar skate[/url].
[url=http://www.addidasjeremyscottwings.com/basket-adidas-gazelle-2-034581-p-186.html][img]http://www.addidasjeremyscottwings.com/images/20120702191035/Basket-adidas-gazelle-2-034581_a_3_1.jpg[/img][/url]
The theme you are using ‘Nexus’ thinks that /forums is a WordPress page when in fact it is not and is reading the ‘subheader’ in this case ‘Suggestions’ from the last custom post type.
If you create a new WordPress page called ‘Forum’ and add the shortcode [bbp-forum-index] to this page and replace ‘Forums’ on your nav menu with the newly created ‘Forum’ page you should see the title now as ‘Forum’
You could also ask for help over at the Nexus support forum http://wpadaptive.com/forum/categories/nexus
— ‘Topics Replied To’ User Profile Empty?
I don’t have or see a ‘Topics Replied To’ section under eg. /users/username, only ‘Subscribed Forum Topics’, ‘Favorite Forum Topics’ & ‘Forum Topics Created’…
— The ‘recent replies’ widget indeed in the old version did include recent topics in its output. Much of the widget query code has been rewritten so I would say now that the widget works as per design 🙂
I have created a ticket to enhance some of the widget options, if you have anything to add, please do.
https://bbpress.trac.wordpress.org/ticket/1903
Ok, a litle more info:
I run a bbPress + BuddyPress installation. And I put that function in the functions.php file of my WordPress theme.
It would remove the widgets inside. If needed you could remove the rest of the / entire sidebar with CSS. The advantage over a simple CSS hide is the fact that less code gets written to the browser / less code to download for the user.
Aside from that I use it to put the login widget at the top of the forums (with CSS) and remove all the other widgets.
Does anyone have any ideas?
I posted this in another topic, this works for me:
function disable_all_widgets( $sidebars_widgets ) {
if ( function_exists('is_bbpress') ) {
if (is_bbpress()) {
$sidebars_widgets = array(false);
remove_all_actions('bp_register_widgets');
unregister_sidebar( 'bp_core_widgets' );
}
}
return $sidebars_widgets;
}
add_filter('sidebars_widgets', 'disable_all_widgets', 1, 1);
But that’s because I haven’t looked into custom themes yet. Did everything with functions and CSS at the moment.
Oh! I was able to figure out what was wrong. All I needed to do was move:
?>
to the bottom of the bbPress settings.
-
This reply was modified 13 years, 7 months ago by
Parker.
-
This reply was modified 13 years, 7 months ago by
Parker.
-
This reply was modified 13 years, 7 months ago by
Parker.
-
This reply was modified 13 years, 7 months ago by
Parker.
It’s just the shortcode forum when I post it into a page: http://www.bookkus.com/test-forum/
If I use the other forum it looks like this: http://www.bookkus.com/forums-2/
Oh wow umm,
It looks as though there isn’t a lot of styling going on for your forum.
Where did you get your bbpress.css file from? It looks really short compared the one I got originally.
Hi there,
I actually had this issue with my custom plugin, it turned out that a recent version of wordpress has tightened the security on plugins I believe, so if the plugins are not coded correctly then it will cause the issue you are describing.
Have you updated all the plugins aswell?
Hi all,
To help promote anonymous posters to post questions, I’d like to put up some sort of permanent notice information box above the forums to display said message.
Any ideas what file/code I need to be playing with, as a start?
I am having some trouble with the layout of my forum. Once I add the shortcode to a new page the layout goes very strange. I have tried going to full-width with no result.
I am using custom community theme. My buddypress, wordpress, and bbpress are fully updated.
http://www.bookkus.com/test-forum/
Thanks in advance for your help.
It’s calling JQuery scripts–the only one I could find is this one:wp_enqueue_script( 'bp-js', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/global.js', array( 'jquery' ) );
I tried to implement the topic.js many times It’s just not working :/