Search Results for 'code'
-
Search Results
-
Hidy ho,
I’m working on creating a child theme for a site and am looking for the right tutorials. I found this link below: http://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/ and was pretty sure this was the most current. Can anyone confirm this is the most up-to-date information for child theming bbpress?
I found and followed a different tutorial that also had “legacy” in the slug – so any help you can offer here would be appreciated.
Thank you.
Luke
I’m trying to add featured images to forums. I have successfully filtered the register_post_type call like so;
/** * Add thumbnails to forums */ function ys_forum_featured_images( $post_type ) { $post_type['supports'][] = 'thumbnail'; return $post_type; } add_filter( 'bbp_register_forum_post_type', 'ys_forum_featured_images' );That did not, however add the meta box to the post edit page so I further used the following;
/** * Add featured image meta box */ function ys_bbp_featured_images(){ add_meta_box('postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', 'forum', 'side', 'low'); } add_action('add_meta_boxes', 'ys_bbp_featured_images', 100);The meta box then appears but in the image details I see the “Insert into post” button and “Delete” link but no “Use as featured image” link.
Any idea how I get that added?
The only thing I could find were these tickets talking about the link appearing when it shouldn’t:
http://bbpress.trac.wordpress.org/ticket/1633
http://core.trac.wordpress.org/ticket/18669Topic: HTML Tags Missing
I continue to have problems with the sidebar showing up below my content.
In looking at the code generated by bbpress, I have noticed that on certain forum pages (the affected ones), bbpress is leaving out the opening body tag.
My forum is at: http://www.cormacmccarthy.com/forums. Click down into any of the forums, and you’ll see:
–All the sidebar content is below the main forum table, which expands to fill the whole screen.
–The header and top menu content is disorganized and not properly styled.
–When you view the source code for the page, you’ll notice the missing tag.
I’ve done plenty of troubleshooting myself, but an absent body tag, together with a not-closed head tag, needs to be addressed before I can really do anything else–given the reliance of most style sheets on the presence of those tags.
Any thoughts?
Hello,
When I viewed the bbpress.org demo forums my expectation was that my forums landing page would look the same as the demo after installation but in fact it does not.
Could someone please help me with a solution exactly the same as the bbpress forums landing page which shows the latest topics with the exact same information displaying?
- Topic (ex. bbPress 2.2)
- Voices (ex. 14)
- Replies (ex. 14)
- Freshness (ex. 2 weeks, 4 days ago (avatar) (name of member who last posted)
From my understanding the widget called (bbPress) Recent Topics already has this functionality but is lacking the information to display Voices, Replies and (avatar) (name of member who last posted) .
What is the easiest way to implement this? Modify the widget? Create a new widget? Implement the code into the Forums landing page itself?
Any help would be greatly appreciated!
Thanks very much!
Topic: Newbie question
I am using WP 3.4.2 & bbPress 2.1.2 at http://oldfiredog.com/
I am new to WP & bbPress but am learning. I have created the above site and have created some forums but can not seem to get to them while on my site. In edit mode I can choose view though and see the forum on my site. I do have the theme desk mess mirrored in use 2.0.4 I just need to know how to access my forums on my site as I have been able to create them and view them in in dashboard > edit mode > view mode but not on my site. I have changed themes to twenty ten but it does not seem to make a difference.
Thanks Rich Thanks RichHi, I’m struggling a bit to get started with bbpress plugin dev, I’ve managed to write plugins for WP in the past thanks to the WP codex. Looking at other threads I see the advice is to look at the WP documentation or look at examples – I’ve tried both and getting a bit stuck. If anyone has some time to help me get hooked into the API it would be much appreciated – after that I should be able to start creating some cool stuff!
So my first experiment is to try and update a post within a topic. Looking at the append signature plugin I can see they use the bbp_get_topic_content filter. If I were updating “the_content” in WP I would do something like this:
function bbp_topic_content_append_text( $content = '') { $content = $content . 'SOME_TEST_TEXT'; return $content; } add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_text');But this doesn’t do anything when I load a topic? Can anyone point me in the right direction? Thanks π
Topic: Child/Sub forums
How do I change this code so that one of the drop downs lists only the sub forums? Thanks! π
bbp_get_form_topic_forum() ) ); ?> bbp_get_form_topic_forum() ) ); ?>Thanks so much for all the work on this! My first bbPress, as the plugin makes it more accessible.
Having an issue with the Fancy Editor. One of my plugins (WP-Amazon) is forcing a button onto the editor for shortcodes. Since the shortcode is turned off and the button breaks the layout, is there a way to force it not to display on forum pages?
I realize this is plugin specific but my thinking is that it can’t be the only rogue plugin, so if there’s a reasonably easy way of suppressing a particular button, it could help others. Thanks for any suggestions you may offer.
I want to override the bbPress page I get when I go to mysite.com/forums/ with a WordPress page containing bbPress shortcodes but I haven’t been able to get it to work.
- My WP page slug is ‘forums’ and contains:
[bbp-topic-index]
[bbp-topic-form] - In my bbPress settings my ‘forums base’ is set to ‘forums’.
I’ve tried a bunch of other things (like setting the WP page template to ‘bbPress – Forums (Index)’ and deleting archive-forums.php in my theme. Nothing seems to work.
Also if I change the the page slug & permalink to ‘forums2’ and visit that, it works as intended.
Any ideas? I’m thinking about an .htaccess workaround but that seems excessively hacky. Thanks.