Search Results for 'code'
-
Search Results
-
I am trying to get a twitter button to display inside each post at the bottom.
I am using the 2.0 plugin with WP 3x. I have been through both the template and plugin. I am using the Elbee Elgee 1.3.5 BBPress ready theme.
The Twitter plugin I am using has both a shortcode and a JS I can reference to display the “Tweet Me” button. I can get it to display anywhere I want, but I am unable to find where to place the code so it shows up within the actual topic posts.
Day 3 of trying to figure this out, so thought I would lick my wounds and ask for help.
WP 3.3.1
BBPress: 2.0.2 Plugin
Theme: Elbee Elgee 1.3.5
PHP: 5
I’m trying to display a list of all topics under a forum, and I’ve tried [bbp-single-forum id=$forum_id] – to show a single forums topics, however it displays the full page view (grid) instead of a simple list of the topics subject lines. Can anyone advise how the topics headlines can be displayed (as links).
Thanks
Topic: Front end code clean up…
When using template tags, I notice a lot of inconsistencies… some things use span tags, others divs, and still other p tags.
When someone simply wants to return data, (a list of tags or the subscribe link) it would be nice to have the bare minimum returned (text with at most, an
<a>tag). Minimal markup will just make for cleaner, easier to assemble themes.Hello everyone. I have a couple of alignments problems with my website, and would love to know which file I would edit to adjust the width of various tables etc. I am totally new to BBPress and any help is greatly appreciated

Many Thanks
Paul.
Here’s what I tried:
1) Copy bbpress theme folder into my theme
2) add “add_theme_support( ‘bbpress’ );” to my functions file
Nothing. I think I misunderstand how the bbpress theming system works. I thought it was more or less a “child theme” that bolts on to twentyten.
Are there files or snippets of code I need to grab from the bbp-twentyten theme?
FWIW, the site is running Buddypress, along side bbpress. I’m using the stock Buddypress theme, and my own Buddypress child theme.
Everything is working perfectly (forum is up and running, etc). All I’m trying to do is used a customized bbpress template so I have complete control over the forum markup.
Thanks!
Topic: Is this a CSS glitch?
Hello everyone,
I must be the biggest newbie as I have only just downloaded wordpress and installed the BBforums etc..
I am having just one small problem in displaying replies properly. I would love to know if this a CSS related problem. See image below.
I am using a custom theme. Any suggestions! Many Thanks!
Hi. I am using BBpress to add a community component to my mostly informational site. What I want is for my forums to:
1) be hidden from nonlogged in members;
2) require members to be able to login and check the 1 forum that I assign to them for updates, WITHOUT having access to someone elses forum.
Is this at all possible through an existing plugin or through some code modification?
I am using wp-members for registration/login stuff. That plugin does have the ability to lock access to pages and posts, but currently, I don’t use those features.
I am also using latest BBpress and WordPress software.
Thank you.
Topic: New Post funcion
I’m working on a custom WP & bbPress theme for a client and I’d like to highlight what forums have had new posts added since the user last logged in. Is there a function that I can call that allows me to get this info?
I’m thinking something along the lines of this:
<?php if(new_forum_posts()) : ?>
highlight icon
<?php else : ?>
don't highlight icon
<?php endif; ?>
Any help is appreciated!
After finding a lot I have not found a solution for showing more than 1 depth sub forums. So I made some coding.
I changed “<?php bbp_list_forums(); ?>” on file loop-single-forum.php to:
<?php
$before = ‘<ul class=”bbp-forums”>’;
$after = ”;
$link_before = ‘<li class=”bbp-forum”>’;
$link_after = ”;
if ($sublist = bbp_forum_get_subforums($forum_id)) {
echo $before;
foreach ( $sublist as $sub_forum ) {
// Get forum details
$permalink = bbp_get_forum_permalink( $sub_forum->ID );
$title = bbp_get_forum_title( $sub_forum->ID );
echo $link_before . ‘‘ . $title . ‘‘ . $link_after;
if ($sublist2 = bbp_forum_get_subforums($sub_forum->ID)) {
echo $before;
foreach ( $sublist2 as $sub_forum ) {
// Get forum details
$permalink2 = bbp_get_forum_permalink( $sub_forum->ID );
$title2 = bbp_get_forum_title( $sub_forum->ID );
// Build this sub forums link
echo $link_before . ‘‘ . $title2 . ‘‘ . $link_after;
}
}
echo $after;
}
}
echo $after;
?>
So my question is, Is there any way to do that little easier ? Or someone who is looking in the same issue and want give a hand to clean up this code.
A example of the struture I’m looking:
TEST
-TEST_CHILD_1
-TEST_CHILD_2
–TEST_CHILD_CH1
–TEST_CHILD_CH2
-TEST_CHILD_3
Any help will be aprecieted. Thank you.
