Search Results for 'code'
-
Search Results
-
Topic: Several domains
Hi, i hope someone can help me with this.
I have several domains pointing to the same bbpress forum. For example, during the installation, i installed bbpress with the domain name setting of “domainA.com”. Now, when i get a visitor from “domainB.com”, he will be redirected to “domainA.com” pretty fast, like when he’s clicking the “Home” link on the forum.
I have managed to change this, by replacing, in the header file of the template, the:
<?php bb_option('uri'); ?>.. to:
http://<?php _e($_SERVER['HTTP_HOST']) ?>And it works. However, bbpress use the ‘uri’ alot, and for example, if the user is not logged in, and is trying to post, he will be redirected to domainA.
What i’m asking for, i guess, is if it’s possible, in the php files somewhere, to specifically define the uri to be the server’http_host’ instead of the domainA? Where can i find and change this, and how?
Thank you very much.
Mike
I upgraded bbpress after upgrading my wordpress site to the latest version (2.5.1). The install complained that there were already forums/threads in the database, but said the install went OK. The problem I’m having, however, is that when I go to the forums, I get a t_string error referring to line 20 of the bb_config.php file.
This line is the prefix used for the tables.
$bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!
So, I’m guessing that it thinks it is a new install instead of merely an upgrade. How do I get the updated version to simply read in the existing forums and threads?
Thank you so much for any help. These are busy forums and there will be limited patience with this problem.
I’m using bbsync properly synchronized with my wp-blog. I want to close wp-comments and add a link to the forum topic in every wp-entry for responses. Bbsync provides this code:
Replies in the thread can be shown where the comments are (quite automagically). Use <?php bbrepliestext(); ?> to just link to the thread; it accepts the link text as an argument and %no% and %replies% will be replaced with the numebr of posts and the right pluralicised form of the word reply.But I don’t know how or where using it. Anybody can explain me the instructions more detailed, please? Has someone something similar working? I’ve tried to paste
<?php bbrepliestext(); ?>in my template files but it doesn’t work (blank text) .Thanks!
Topic: PHP Injection
I like the idea of adding a BB to a WordPress website and BBPress offers good integration but, having had one website previously screwed with a Visitor’s Book, I am a bit paranoid about PHP Injection.
Since there is actually an invitation to put code between backticks, how secure is it against injection?
Is there a simple hack to exclude backticks?
Topic: Private Messaging Extended
Hiya

I’m basically thinking out loud, and felt this was the best forum to post in.
I was browsing through _ck_’s top 100 bbpress forum (well, the first one at least http://www.greedyorneedy.com/), and had a look at the site’s forum and member profiles such as this:-
http://www.greedyorneedy.com/users/view/id/7412
They look brilliant – facebook esque, and would love to implement something similar to my site (well one of my ideas anyway)
What I suspect is that it is a WordPress/Wordpress MU plugin, but still if anybody has any ideas to how they achived this, I would love to hear them
I would like my bbpress forum to show up on my wordpress blog page called “forum”. I also would like the forum to have the same look as my blog (at least the top of it). I have bbpress loaded in a subdirectory of WP called “forum”. I’m new to html coding and would love step by step instructions from anyone who is patient with new students
Thanks