Search Results for 'test'
-
Search Results
-
update: I’ve now included this functionality in the topics-per-page plugin so use that instead which is maintained and not this mini-plugin which will not work properly with 1.0a
Here’s something I had made a mental note of quite awhile ago but forgot to do, add pagination to the front-page for the latest discussions. You can see a demo near the bottom of http://bbshowcase.org/forums/
(the following two functions are included in the 0.0.4 version of topics-page-page plugin, so don’t use them if you have that)
add_filter('get_latest_topics_limit','front_page_pagination',999);
function front_page_pagination($limit="") {
global $page;
if (is_front() && $page>1) {$limit.=" OFFSET ".($page-1)*bb_get_option('page_topics');}
return $limit;
}
function front_page_pages() {
global $page, $bbdb;
echo get_page_number_links( $page, $bbdb->get_var("SELECT SUM(topics) FROM $bbdb->forums"));
}1. add to your
front-page.php
template<div class="nav"><?php front_page_pages(); ?></div>
AFTER
<?php endforeach; endif; // $topics ?>
</table>2. If you use rewrite slugs you MUST add the following rule to your
.htaccess
fileRewriteRule ^page/([0-9]+)/?$ /forums/?page=$1 [L,QSA]
anywhere before
</IfModule>
where
/forums/
is the path to your bbpress install.Help, please. A very basic question, maybe a sticky would be a good idea? I have successfully installed and integrated the latest alpha version (as of today) with WordPress 2.6.3, (congratulations to the team) but I can’t figure out how to get into the administration area.
Hi,
I am in the middle of the install of bbPress (latest alpha as of today) and I get asked for the user database table prefix. Looking at my wp-config.php file, all I see is the following:
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!
Does that mean that I don’t have a WP user database table? What do I need to do? This is my first site and I don’t have any users yet except myself as admin – translation: I am an extreme newbie and just want to get the rest of this install finished.
I am using WordPress 2.6.3
Cheers
Topic: OpenID support coming soon…
I just wanted to announce I have a primitive prototype of OpenID working with bbPress and should have a more stable version for experimental testing within a few days (likely by the end of the weekend). The only requirement is your PHP needs CURL with https (ssl) support, which many servers have or can easily add ie. via cpanel’s rebuild PHP (check your PHPINFO to be certain).
I finally got an old openid 1.1 framework working with openid 2.0 so this makes it possible to use it with all the newest providers: aol, yahoo, microsoft and now even Google (as a “consumer”, not as a server).
The biggest problem was making it work without extra libraries like the complex math support and even DOMXML which is not available on many shared hosting PHP4 servers. But found a way around that too
I’ll eventually add fsockopen support with ssl so even CURL is not a requirement.
ps. OpenID on WordPress.com needs to be fixed to offer a secure login when a cookie is not present like every other provider. This is annoying
It’s like trying to open the wrapper on a new CD you’re dying to listen to…if I can just get it open without using a hammer…
This is a thread. There are many threads like this thread. This thread is my thread.
Follow the cookie path please. Visit with the config file settings. See the pattern and you will bend the spoon. Then let me eat ice-cream with that spoon, please.
Paths:
WP: http://mydomain.org/
bbPress: http://mydomain.org/forum/
Apache version 1.3.41 (Unix)
PHP version 5.2.5
MySQL version 5.0.51a-community
Architecture i686
Operating system Linux
#########################################
bb-config.php:// URI’s
$bb->wp_siteurl = ‘http://mydomain.org’; // No trailing slash
$bb->wp_home = ‘http://mydomain.org’;
// Cookie Scope
$bb->cookiedomain = ”;
$bb->cookiepath = ”;
$bb->sitecookiepath = ”;
$bb->admin_cookie_path = ‘/forum/bb-admin’;
$bb->core_plugins_cookie_path = ‘/forum/bb-plugins’;
$bb->user_plugins_cookie_path = ‘/forum/my-plugins’;
$bb->wp_admin_cookie_path = ‘/wp-admin’;
$bb->wp_plugins_cookie_path = ‘/wp-content/plugins’;
// The name of the cookies
$bb->authcookie = ‘wordpress_blah3_blah5_blah8’;
$bb->secure_auth_cookie = ‘wordpress_sec_blah3_blah5_blah8’;
$bb->logged_in_cookie = ‘wordpress_logged_in_blah3_blah5_blah8’;
define(‘BB_AUTH_KEY’, ‘ahhpushit’);
define(‘BB_SECURE_AUTH_KEY’, ‘pushpushit’);
define(‘BB_LOGGED_IN_KEY’, ‘realgood’);
define(‘BB_AUTH_SALT’, ‘andpepper’);
define(‘BB_LOGGED_IN_SALT’, ‘arehere’);
#########################################
wp-config.php:define(‘AUTH_KEY’, ‘ahhpushit’);
define(‘SECURE_AUTH_KEY’, ‘pushpushit’);
define(‘LOGGED_IN_KEY’, ‘realgood’);
define(‘AUTH_SALT’, ‘andpepper’);
define(‘LOGGED_IN_SALT’, ‘arehere’);
$wp->authcookie = ‘wordpress_blah3_blah5_blah8’;
$wp->secure_auth_cookie = ‘wordpress_sec_blah3_blah5_blah8’;
$wp->logged_in_cookie = ‘wordpress_logged_in_blah3_blah5_blah8’;
// bbPress WP integration
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
#########################################
1)Clear all cookies
#########################################
2) Log into bbPress: (mydomain.org/forum/): role 'member':wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
#########################################
3) Visit WP site: (not logged in)wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
various 3rd party cookies from picasa etc
#########################################
4) Visit wp-login.php: (not logged in)wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
wordpress_test_cookie => /
#########################################
5) Log into wp-login.php as 'subscriber' user (same user as bbPress) which puts me /wp-admin/wordpress_logged_in_URIHASH => /
wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
wordpress_test_cookie => /
#########################################
6) 'Visit site' from wp-adminwordpress_logged_in_URIHASH => /
wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
wordpress_test_cookie => /
#########################################
7) Click on '//mySite.org/forum' link on main site (bbPress install dir)
Forum's first page displays: No extra cookies made. These cookies are from WP in the previous step:wordpress_logged_in_URIHASH => /
wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
PHPSESSID => /
wordpress_test_cookie => /
#########################################
Log out from bbPress:
wordpress_logged_in_URIHASH => /
wordpress_test_cookie => /
PHPSESSID => /
STILL LOGGED INTO bbPress!
#########################################
9) Visit wp sitewordpress_logged_in_URIHASH => /
wordpress_test_cookie => /
PHPSESSID => /
#########################################
10) Logout from WP site: (wp-login.php?loggedout=true)wordpress_test_cookie => /
PHPSESSID => /
#########################################
11) Visit forum site.
logged out.
#########################################
12) Clear all cookies
#########################################
13) Log into bbPress:wordpress_logged_in_URIHASH => /forum/
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_URIHASH => /forum/my-plugins
wordpress_URIHASH => /forum/bb-plugins
wordpress_URIHASH => /forum/bb-admin
#########################################
14)Log out of bbPress:
All cookies cleared.
#########################################
15) Visit WP site + clear cookies.
#########################################
16) Log into WPwordpress_logged_in_URIHASH => /
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_test_cookie => /
PHPSESSID => /
#########################################
17) Visit bbPress site.
Already Logged in as wp user.wordpress_logged_in_URIHASH => /
wordpress_URIHASH => /wp-content/plugins
wordpress_URIHASH => /wp-admin
wordpress_test_cookie => /
PHPSESSID => /
#########################################
18) Logout from bbPress:wordpress_logged_in_URIHASH => /
wordpress_test_cookie => /
PHPSESSID => /
Still logged in to bbPress!
#########################################
19) Logout from main site:wordpress_test_cookie => /
PHPSESSID => /
#########################################
20) Eat stapler.The test profile that I created cannot Reply to a comment or post a new topic. However they can post a comment in WordPress. Under the User tab in the Admin panel the profile is listed as having no role. When I update the users role, click save and return to Admin user tab they still have no role. In the bbpress/wordpress intergration tab All wordpress roles are marked as member (aside from admin). What is going on?
Also while user info is shared between the two you have to log onto wordpress and bbpress seperately. Also if you are logged on to bbpress it won’t let you log on to wordpress. You have to log ouut of bbpress first then you can log in to wordpress. How do I fix this?