Search Results for 'code'
-
Search Results
-
I have made a front-page where i show off all latest topics matching the forum ID’s..
It looks like this.
Forum id = General questions -> latest topics of the general questions
Forum id = Support questions -> latest topics of the support questions
I did this by hiding or deleting the forum id’s from all others and repeat the latest topics section.
Like this.
‘
<table id=”latest” role=”main”>
<tr>
<th><?php _e(‘Topic’); ?> — <?php bb_new_topic_link(); ?></th>
<th><?php _e(‘Posts’); ?></th>
<!– <th><?php _e(‘Voices’); ?></th> –>
<th><?php _e(‘Last Poster’); ?></th>
</tr>
<?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <big>“><?php topic_title(); ?></big><?php topic_page_links(); ?></td>
<td class=”num”><?php topic_posts(); ?></td>
<!– <td class=”num”><?php bb_topic_voices(); ?></td> –>
<td class=”num”><?php topic_last_poster(); ?></td>
</tr>
<?php endforeach; endif; ?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<?php if( $topic->forum_id != 4 ) { ?>
<?php if( $topic->forum_id != 5 ) { ?>
<?php if( $topic->forum_id != 6 ) { ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> “><?php topic_title(); ?><?php topic_page_links(); ?></td>
<td class=”counter”><?php topic_posts(); ?></td>
<!– <td class=”num”><?php bb_topic_voices(); ?></td> –>
<td class=”last-post-avatar”><?php echo bb_get_avatar( $topic->topic_last_poster , ’36’); ?></td>
</tr>
<?php } ?>
<?php } ?>
<?php } ?>
<?php endforeach; endif; ?>
</table>
<table id=”latest” role=”main”>
<tr>
<th><?php _e(‘Topic’); ?> — <?php bb_new_topic_link(); ?></th>
<th><?php _e(‘Posts’); ?></th>
<!– <th><?php _e(‘Voices’); ?></th> –>
<th><?php _e(‘Last Poster’); ?></th>
</tr>
<?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <big>“><?php topic_title(); ?></big><?php topic_page_links(); ?></td>
<td class=”num”><?php topic_posts(); ?></td>
<!– <td class=”num”><?php bb_topic_voices(); ?></td> –>
<td class=”num”><?php topic_last_poster(); ?></td>
</tr>
<?php endforeach; endif; ?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<?php if( $topic->forum_id != 3 ) { ?>
<?php if( $topic->forum_id != 4 ) { ?>
<?php if( $topic->forum_id != 6 ) { ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> “><?php topic_title(); ?><?php topic_page_links(); ?></td>
<td class=”counter”><?php topic_posts(); ?></td>
<!– <td class=”num”><?php bb_topic_voices(); ?></td> –>
<td class=”last-post-avatar”><?php echo bb_get_avatar( $topic->topic_last_poster , ’36’); ?></td>
</tr>
<?php } ?>
<?php } ?>
<?php } ?>
<?php endforeach; endif; ?>
</table>’
But know i have a problem with using this plugin.
http://bbpress.org/plugins/topic/front-page-topics/
I only want to show the latest 5 topics of each forum ID (excluding the once i’m hiding)
Know with this plugin it also counts the topics i’m hiding..
Isn’t there some code that says: show only the latest 5 topics from forum ID 3
Thanks,
Using bbPress-WordPress syncronization plugin and was able to connect to the bbpress part on wordpress dashboard, but not the other way around.
bbPress url: http://example.com/forums/ Everything is ok!
WordPress url: http://example.com/ URL is incorrect or connection error, please verify it (full variant): http://example.com?wpbb-listener
Link above leads to: “If you see that, plugin must connect well. bbPress test response (must be a:1:{s:4:”test”;i:1;}): a:1:{s:4:”test”;i:1;}”
Enable plugin (on both wp & bb) Not allowed: [bbPress part] Cannot establish connection to WordPress part
-made fsockopen, etc. changes
-my-plugins folder, etc. permissions=755
Sincere appreciation for anyone that can offer assistance/ideas
Topic: Stylesheet not recognized
I just installed bbPress and I’m trying to create my own theme to match my WP Blog theme.
So I created a new Folder under my-templates called “my-theme” and I copied all the files from the kakumei default theme into my-theme, the expectation being that my-theme would now look the same as kakumei (since it contained the same files), and I could go about tweaking those files to my liking. (I’ve used the same process to tweak the WP Default theme on my blog, and now it looks like this, the very look I intend to create for my bbPress Forum).
Problem is, my-theme does not recognize style.css, so it comes out like this. It simply refuses to apply the styles in my-templates/my-theme/style.css.
I’m assuming the code line ‘<link rel=”stylesheet” href=”<?php bb_stylesheet_uri(); ?>” type=”text/css” />’ should hook up with style.css in the my-templates/my-theme folder, just as it does in bb-templates/kakumei.
Why is the stylesheet not being recognized?

ARe they being stored in the DB now, by chance?