Search Results for 'test'
-
Search Results
-
Topic: Permalink question
Why every thread created have two different permalink, for example
http://www.example.com/forum/topic/test-post
and
Topic: BuddyBar in bbPress
Topic: Integration Woes
OK, I have sort of a weird problem that I am hoping I can get some help with.
I have multiple WP sites integrated with each other – 1 install on the root domain, and numerous installs on subdomains.
In order to integrate users and cookies to maintain a login valid across all the installs the Authentication Unique Keys section in my wp-config is set up like this:
define (‘COOKIE_DOMAIN’, ‘.mydomain.com’);
define(‘COOKIEPATH’, ‘/’);
define(‘AUTH_KEY’, ‘mygeneratedkey’);
define(‘SECURE_AUTH_KEY’, ‘mygeneratedkey’);
define(‘LOGGED_IN_KEY’, ‘mygeneratedkey’);
define(‘NONCE_KEY’, ‘mygeneratedkey’);
$baseurl = ‘http://www.mydomain.com’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’, $cookiehash);
define (‘AUTH_SALT’,’AUTH_SALT’.COOKIEHASH);
define (‘LOGGED_IN_SALT’, ‘LOGGED_IN_SALT’.COOKIEHASH);
define (‘AUTH_COOKIE’, ‘AUTH_COOKIE’.COOKIEHASH);
// define (‘SECURE_AUTH_COOKIE’, ‘SECURE_AUTH_COOKIE’.COOKIEHASH); // If you use connection SSL
define (‘LOGGED_IN_COOKIE’,’LOGGED_IN_COOKIE’.COOKIEHASH);
define (‘TEST_COOKIE’, ‘TEST_COOKIE’.COOKIEHASH);
As a result, I can’t find the salts needed in wp-admin/options.php as they are not listed. I’ve tried using the same settings in bbpress as above in the bb_config file (see below), but no love. I’ve also tried changing them to BB_%WHATEVER% which doesn’t seem to work either.
define (‘COOKIE_DOMAIN’, ‘.mydomain.com’);
define(‘COOKIEPATH’, ‘/’);
define( ‘BB_AUTH_KEY’, ‘mygeneratedkey’ );
define( ‘BB_SECURE_AUTH_KEY’, ‘mygeneratedkey’ );
define( ‘BB_LOGGED_IN_KEY’, ‘mygeneratedkey’ );
define( ‘BB_NONCE_KEY’, ‘mygeneratedkey’ );
$baseurl = ‘http://www.mydomain.com’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’, $cookiehash);
define (‘AUTH_SALT’,’AUTH_SALT’.COOKIEHASH);
define (‘LOGGED_IN_SALT’, ‘LOGGED_IN_SALT’.COOKIEHASH);
define (‘AUTH_COOKIE’, ‘AUTH_COOKIE’.COOKIEHASH);
// define (‘SECURE_AUTH_COOKIE’, ‘SECURE_AUTH_COOKIE’.COOKIEHASH); // If you use connection SSL
define (‘LOGGED_IN_COOKIE’,’LOGGED_IN_COOKIE’.COOKIEHASH);
define (‘TEST_COOKIE’, ‘TEST_COOKIE’.COOKIEHASH);
All of the users can login to bbpress using the same username and password as on the wp sites, but the cookie integration doesn’t work, and again – I cant find the correlating values in wordpress.
Does anyone have any suggestions?
I’m trying to protect page on another subdomain… but unfortunately bbPress is not authenticating the cookie. (they are set for .domainabc.net)
for test.domainabc.net:
Cookie: bbpress_logged_in_00aa30280fe74d40ca269b5b2efffba3=rich%7C1247421898%7Cfbd785e0974af74814b56550af9c49dc
for forums.domainabc.net
Cookie: bbpress_logged_in_00aa30280fe74d40ca269b5b2efffba3=rich%7C1247421898%7Cfbd785e0974af74814b56550af9c49dcon test.domainabc.net i have something like this:
require_once ('../forums.domainabc.net/bb-load.php');
function add_allowed_redirect_hosts() {
$allowed_redirects = array('test.domainabc.net');
return $allowed_redirects;
}
add_filter('allowed_redirect_hosts', 'add_allowed_redirect_hosts');
bb_auth( 'auth' );It will properly redirect to the login page, enter info, redirect back to test.domainabc.net – but then it will issue another 302 redirect back to forums.domainabc.net.
and if i place a die statement within this
bb_authelse on test.domainabc.net it will echoif ( 'auth' === $scheme && !bb_is_user_logged_in() ) {
//redirects fine to login page the first time...
} else {
//echo - this happens when returning a 2nd time
}BUT… if i return to forums.domainabc.net i’m logged in… and everything works.
Topic: Pagination bug?
A funtion on a homepage of a blog
<?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>generates errorous output. On page 2 (and followings) it outputs:
<div class="nav"><a class="prev page-numbers" href="" title="Poprzednia strona">« Poprzednia</a><a class="page-numbers" href="" title="Page 1">1</a><span class="page-numbers current" title="Page 2">2</span><a class="page-numbers" href="/page/3" title="Page 3">3</a><a class="page-numbers" href="/page/4" title="Page 4">4</a><a class="next page-numbers" href="/page/3" title="Następna strona">Następna »</a></div>The problem I can see is href=””
Is there any solution to this?
bbPress used: 1.01
Is there a way to dispaly the Author of a topic in the Latest Discussions list and in the Topics list?
I mean, every other forum got this feature, and I think that viewing the Author of a Topic in the list is very useful and needed for a forum, as you may want to know WHO posted that Topic, without having to click on it to see who’s the first post. Right?
Still, I didn’t find this feature enabled on any bbPress forum.
For me it’s just so weird.
So, is that a way to get the template code?
Thanks.
Are new users created in WP left as inactive (no role) until they sign in? We saw a bunch of users marked as inactive, but plenty of users posting just fine.
When I went into WordPress Integration Settings – User Role Map everything is set as it should be. Clicking ‘Save Changes’ (without actually making any changes) automatically switched all users marked inactive to member.
We had someone report they were unable to login so I went to check the user’s account and that was when I found his inactive role along with dozens of other users.
When trying to replicate it myself with new, test registrations any user I can create that shows up inactive is immediately switched to member on the first log in.
The main reason I ask if because the number of inactive users seemed very high and simply clicking ‘Save Changes’ and having them all switch in unison seems a bit odd.
I’d like to create a menu / navigation bar at the top of my forums.
I want to place it between the header area and the latest discussions area. Which file do I have to edit to do so? And, does anyone know of a menu / navigation bar option out there already?