Forum Replies Created
-
In reply to: www.instinct.co.nz/forums
Hi, fantastic site but you have a minor server problem where it’s serving your bbpress pages with 404 errors instead of 200 status.
It’s a strange problem I’ve seen on a handful of bbPress sites and I am not entirely certain why it happens. Do you use multiviews or real mod_rewrite rules?
In reply to: Conditional Meta Tags per Page Type, and More?It’s very easy to do this via a plugin.
You have to attach to the ‘bb_head’ action.
In fact if there’s a plugin for WordPress that does it, it would take under a minute to change it for bbPress.
Here’s a mini-plugin I wrote to do noarchive and nofollow:
function no_archive() {
echo "n".'<meta NAME="robots" CONTENT="noarchive,nofollow">'."n";
} add_action('bb_head', 'no_archive');.
It would just have to be wrapped in an IF statement with a URI check to add it when you want it. To get the current location, either check
bb_get_location
or steal it’s code and modify as desired.Something like this (untested)
function no_index() {
if (in_array(bb_get_location(),array("login-page","register-page","profile-page")) {
echo "n".'<meta NAME="robots" CONTENT="noindex,nofollow">'."n";
}
} add_action('bb_head', 'no_archive');In reply to: trick to make relative URLs instead of full URIThis topic has nothing to do with subdomains, but you can definitely install bbpress on a subdomain. Just enter the appropriate info during setup.
In reply to: Please Critique my Forum DesignNice look but you need to look into your server configuration as the bbPress pages are being served with 404 error code instead of 200 (even though they display).
Something might be wrong with your htaccess
In reply to: email notification to admin of every new postan email for every new post would be easy to do but wow your inbox could go crazy after awhile – not to mention your server sending tons of email might get it flagged for spam
In reply to: bbPM admin menu not working at allI am not sure about the loading order of your plugin but keep in mind that stuff like
bb_is_user_logged_in()
is only available when bbPress is fully initialized.Essentially you cannot execute anything but the most basic independent code until
do_action('bb_init'
happens.So you have to hook bb_init, ie:
add_action('bb_init','your_function_name
);`and THEN your function can check bb_is_user_logged_in.
BB_IS_ADMIN is a constant so be sure to use DEFINED to test it and not directly or you’ll get an error
if (defined('BB_IS_ADMIN')) {
(also, BB_IS_ADMIN means if you are in the admin menu, not if the user is an administrator – not sure if you knew that)
In reply to: Permalink and slug rebuild?Yes I am familiar with that WP redirect plugin – it saves the old permalink in meta and checks the meta when a url is not found.
It would be an interesting port for bbPress but I am too burnt out on bbPress stuff right now to give it a go. I highly suggest the phpmyadmin method for now to just manually edit the permalink since it’s a one-time deal.
In reply to: WordPress + bbPress Integration 101For those that know what they are doing and have subversion, you can checkout or switch to the alpha trunk of bbPress which will give you compatibility with WordPress 2.6
svn switch http://svn.automattic.com/bbpress/trunk/
Unfortunately an automated download zip cannot be created because this is the first version of bbPress that uses BackPress which is automatically added by svn, but can’t be zipped by TRAC.
Here’s a ZIP’ed snapshot from yesterday:
http://www.mediafire.com/?alvvslgmh22
Keep in mind that you should NOT use the bbPress trunk for live websites – it’s bound to have bugs and some might affect security. You are on your own if you chose to use this version – plugins may have some compatibility issues.
1.0 requires the 3 new WP matching keys inserted into
bb-config.php
(see thebb-config-sample.php
for more info)In reply to: bbPress 1.0 alpha looks interestingFor those that know what they are doing and have subversion, you can checkout or switch to the trunk of bbPress (which will give you compatibility with WordPress 2.6)
svn switch http://svn.automattic.com/bbpress/tags/1.0-alpha-1/
Unfortunately an automated download zip cannot be created because this is the first version of bbPress that uses BackPress which is automatically added by svn, but can’t be zipped by TRAC.
Here’s a ZIP’ed snapshot from yesterday:
http://www.mediafire.com/?y33rsdhxeld
Keep in mind that you should NOT use the bbPress trunk for live websites – it’s bound to have bugs and some might affect security. You are on your own if you chose to use this version – plugins may have some compatibility issues.
1.0 requires the 3 new WP matching keys inserted into
bb-config.php
(see thebb-config-sample.php
for more info)Sam could use your bug reports via TRAC if you find problems.
In reply to: Cannot change Secret FieldGlad to hear it worked – remember to not keep using
$bb->secret
though in your config and update the db properly as it lowers the security of your setup somewhat.(The idea being an attacker might gain access to bb-config.php and not your db to gain the second half of the key – not my design and not sure I agree with the logic but I guess it’s still better than keep both in an obvious place)
In reply to: Permalink and slug rebuild?That’s an interesting idea (doesn’t exist but interesting).
However it would break any links you have in search engines.
If you have access to phpmyadmin you could edit the forum permalinks directly if need be.
In reply to: Cannot change Secret FieldIt might be possible to do this inside bb-config.php
$bb->secret=”blah blah your key”;
and override the internal db.
I have to lookup if “secret” is the real name though.
(that’s in addition to define(‘BB_SECRET_KEY’ )
Yeah, apparently it really is
$bb->secret
give that a try.In reply to: Cannot change Secret Fieldhmm – have to think about that one
chris, there are two parts to the key, you can’t define the other part via the bb-config.php
actually – have you tried completely clearing your cookies? Even with a mismatched key you should be able to login, just not sync with wordpress. The cookies might be scrambled until you clear them.
In reply to: WordPress + bbPress Integration 101energymv, there’s no real answer right now – I know it won’t happen in July and my educated guess is it’s not likely to be August. So for those that insist on a date, think September.
Sam has indicated he’s not inclined to release another version of 0.9 that changes to the 2.6 cookies, so maybe by late August there will be an early version of 1.0 beta that will be usable.
ps. sometimes Sam and MDA have been known to suddenly set a deadline and get cranking on code/bugfixes so don’t be surprised if they prove me wrong and magically churn out a new version in a few weeks – I’m just saying they have quite a bit of things to do before it’s ready…
In reply to: Emoticons For bbPress?I’ve made an alpha version of bbPress Smilies available:
https://bbpress.org/plugins/topic/bb-smilies
It’s rough but will get the job done.
In reply to: (Weird) Open CafeVery nice!
In reply to: Integrate PM by defaultI highly doubt anyone else is working on it, it’s a very complex plugin. Not something I would even try to tackle – go for it Nightgunner5.
In reply to: bb_register_view – from SQL to arrayI’ve never figured out how to do direct query setup for views, so what I do is just short-circuit the internal function and write my own. For example:
bb_register_view("highest-rated","Topics with the highest rating",array('append_meta'=>false,'sticky'=>false));
add_action( 'bb_custom_view', 'highest_rated' );
function highest_rated( $view ) {
if ($view=='highest-rated') {
global $bbdb, $topics, $view_count, $page;
$limit = bb_get_option('page_topics');
$offset = ($page-1)*$limit;
$where = apply_filters('get_latest_topics_where',"WHERE topic_status=0 ");
$query = " FROM $bbdb->topics $where ";
$restrict = " ORDER BY cast(topic_posts as UNSIGNED) DESC LIMIT $limit OFFSET $offset";
$view_count = $bbdb->get_var("SELECT count(*) ".$query);
$topics = $bbdb->get_results("SELECT * ".$query.$restrict);
$topics = bb_append_meta( $topics, 'topic' );
}
}.
Obviously change the query to your own and that might work for you. Don’t forget to use
$bbdb->bb_ratings
the $bbdb part is critical.In reply to: Integrate a memberlist by defaultI think you are missing the point that some people don’t want such features (for example, me) on their forums and by keeping it plugin based it can be an option instead of forced.
In reply to: @ ck. Suggestions“set certain users to moderate only certain sections,”
I just realized I completely forgot about this plugin:
https://bbpress.org/plugins/topic/forum-moderators/
which does exactly that
In reply to: Integrate PM by defaultbbPress will never have a feature like that built-in.
In reply to: Impossible to install bbpress revision 1595I’ve confirmed the newest trunk build now fixes this problem (at least for me)
build # 1598
In reply to: Impossible to install bbpress revision 1595Er that’s the trunk and subject to being broken at times.
I don’t recommend you go beyond the 0.9 branch:
https://trac.bbpress.org/browser/branches/0.9
or if you are using svn
In reply to: blocking a user does nothingOh wait, here’s the broken part in
bb-settings.php
do_action('bb_init', '');
if ( bb_is_user_logged_in() && bb_has_broken_pass() )
bb_block_current_user();I don’t see how a user could both be logged in AND have a broken password. If their password is broken, they can’t login.
This might have broken during the radical password/cookie changes in >0.8
I opened a TRAC ticket