Search Results for 'code'
-
Search Results
-
Hi, I recently install bbpress on my site. I created a login using the shortcodes but for one it prompts that you can’t register and also if you do sign in using my admin it will show already signed in and will not go to the forum. For the forum I cannot find a way to connect it to a page either. Perhaps if anyone could shed some light on this that would be great. Thank you very much
I am adding a number of new options to bbPress and want to add the user inputs to the bbPress options page. Instead of messing around with the default options page, I simply want to add a few tabs to the page where I can add my options.
I do know how to do this when writing my own page from scratch, but do not yet know how to add tabs and options to an existing bbPress options page.
example of what I am talking about:
http://digitalraindrops.net/2011/02/tabbed-options-page/
Can anyone point me to a plugin, or code snippet that would show me how to extend the bbPress options page with tabs and options?
thnx
Hey!
I
ve for ages trying to find a solution to my problem. I need a forum for my website and the Ive chosen BBpress. The thing is that I don’t want the bbpress theme to affect my wordpress theme. I´ve downloaded several themes, but have no idea where to install and how to activate. I also wonder if there are any place out there where I can download free or premium bbpress 2.0 themes?I feel quiet stupid, since I look at my self as a person that usually figure things out
Thanks,
Christoffer
Topic: Full-Width Forum
I’m working on a web site with the following requirements:
Hello,
On my current homepage, I was displaying 3 comments at a time per blog post by using the following code :
<?php
$number=3; // number of recent comments desired
$post_id = get_the_ID();
$comments = $wpdb->get_results(“SELECT * FROM $wpdb->comments WHERE comment_post_ID=$post_id AND comment_approved = ‘1’ ORDER BY comment_date_gmt DESC LIMIT $number”);
?>
<?php if ($comments) :
foreach ( (array) $comments as $comment) :
echo ‘<div class=”ddcomment”>’;
echo ‘<p>‘, comment_author() . ‘ says:</p>’;
echo comment_text();
echo ‘</div>’;
endforeach;
endif; ?>
This code works perfectly in displaying my comments on the homepage. However, I’ve decided to add bbpress forums and sync my topics with my posts.
If you add a reply now to a post, it is not reflected on the homepage comments (since it is a reply from bbpress, not a wp comment). I am trying modify this code so I can pull the correct replies for that particular Post or Topic ID, since it is now synced together.
The site is currently located at http://www.propaintball.tv
Is there a specific database query I can use to replace my $comments variable with the topic replies? Thank You for your help!