Search Results for 'bbpress'
-
Search Results
-
I’ve decided that I’m happy with the way my forum and blog are set up. Users can use the same username and password for both my forum and blog. But, they can not log into one and automatically be logged into the other (cookie issues).
The main problem is the way I integrated my bbpress and wordpress. I already had bbpress installed, then later I installed wordpress. I then integrated the two and they share the same database. I hear from many that this is NOT the recommended way to integrate and that you shouldn’t use the same database, but, the bottom line is, everything works fine, but users can’t log in at one and then automatically be logged in at the other, they just have to log in twice if they are using both my blog and forum.
Can anyone provide instructions/tips on how to set up the cookies for bbpress and wordpress if they were integrated backwards and are sharing one database?
Topic: The Whistle & Fish Pub
The Whistle & Fish Pub is the watering spot of werewolves, zombies, and dead writers.
Nothing special. Basically a bbpress support forum design straight out of the box (until we decide whether it’s successful enough to warrant investing time in our own design). But we call it home.
Hi,
I have the following code that works in wordpress:
<?php $homepage = get_settings('siteurl')."/search.php/";
global $wp;
$wp_received_argument = false;
foreach ($wp->query_vars as $k=>$v) if ($v) $wp_received_argument = true;
if ($wp_received_argument) require(TEMPLATEPATH . “/index.php”);
else { wp_redirect($homepage);
exit(); } ?>Now this wont work in bbpress, so I’ve made some modifications:
<?php $homepage = bb_get_option( 'uri' )."/search.php/";
global $bb;
$bb_received_argument = false;
foreach ($bb->query_vars as $k=>$v) if ($v) $bb_received_argument = true;
if ($bb_received_argument) require(TEMPLATEPATH . “/index.php”);
else { bb_redirect($homepage);
exit(); } ?>It now crashes at the foreach. What am I missing?
Thx
Similar posts have been made about this subject, and I’ve read the documentation, but no matter what I do I can’t get the cookies to work. I’m sure you hate working with newbies like me because we’re always like, “gah, i can’t get anything to work” but, please, I don’t want to keep tweaking it because I don’t want to mess anything up… One solution here at this forum says to go into the wp_settings.php file and change something… do things like that have be to done, or is there an easier way? By the way, I did actually do that… I went into the wp_settings and changed that cookie_domain line from false to ‘.myurl.com’, if you know what I’m talking about… well, that tweak didn’t work for me either.
I just want to be able to log into my blog, then go to my forum and still be logged in. Or log into my forum and go to my blog and still be logged in, then also be able to successfully log out from either location.
I put
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ‘/’);
in my wp config and it is also in my bb press config.
Now, some posts here say that for the cookie_domain, you have to actually put your domain, like:
define(‘COOKIE_DOMAIN’, ‘.myurl.com’);
is this true?
If someone has the time and successfully has cookies working properly between their wordpress blog and bbpress forum, could you help me out?
I’ve stayed up many nights trying to get this to work just right… it’s sad
Whats weird is, when I first did the integration it worked BUT I couldn’t log out, so since then I’ve been changing things to fix that, but now, I’m back to square one. I can log into my forum. then, I can log into blog, and I can log out of both with the same username and password, but again, if I log into one and go to the other, I’m not logged in.
I’ve just seen a few different posts and all the posts recommend doing different things. Then the actual documentation of course just says to use the built in integration feature in bbpress, which I used. Since there are so many different posts offering different solutions, can any one give me a step by step fix for this?
Topic: Threaded comments
I’ve been looking for forum software that meets my needs, and it looks like bbPress is going to be it. One small piece I’m not sure of yet: is it possible through a plugin, or CSS, or something, to support threaded comments? The example sites I’ve looked at so far have all comments at the left margin, and I prefer nested indents to keep track of threads.