Search Results for 'code'
-
Search Results
-
Topic: adding multiple filters
For some reason, only the last filter is working. Here’s what it is:
function get_pm_bb_location(){if ( bb_find_filename($_SERVER['PHP_SELF']) == 'pm.php' )
return 'pm-page';
}
function is_pm() {
if ('pm-page' == get_bb_location() )
return true;
else
return false;
}
function get_mess_bb_location(){
if ( bb_find_filename($_SERVER['PHP_SELF']) == 'message.php' )
return 'message-page';
}
function is_message() {
if ('message-page' == get_bb_location() )
return true;
else
return false;
}
bb_add_filter('get_bb_location', 'get_mess_bb_location');
bb_add_filter('get_bb_location', 'get_pm_bb_location');
I swear they’re both the same. And whichever filter I put last works, and the other doesn’t.
Also, what’s the deal? is bb_add_filter and add_filter the same damn thing? They both seem to be interchangable.
I might just change the way I’m doing this. My current way is so beautiful though

And for whoever sees what these functions would be used for, the answer to your question is this: I’m very close.
Hi,
With this I get the topic author name:
get_topic_author(), but how do I get his profile link?get_topic_author_link()doesn’t work…Any ideas?
thx
Topic: get_row
Anyone know why when I use get_row it prints this
Object id #6It fills my variable correctly, it just prints this and I don’t want it to
Topic: Post Moderation
Hi there all,
I have to moderate posts!
Is it possible to do in bbPress, I have no idea. I found out that vBulletin does that, but I use WordPress on my blog, don’t need any other php script interfere with my blog. I just add a simple forum in it. Not a shiny thing!

Anything will be too helpful.
Thanks in Advance!
Topic: Admin problems
when I try (0.73 with WP, login as Key Master or Administrator) to set “not spam” in “Akismet Spam” section I got:
Fatal error: Call to undefined function: bb_current_user_can() in /forum/bb-admin/delete-post.php on line 6same if I try to check some post as “spam”.
Thanks.
So, I uploaded bbpress, configured config.php, punched bb-admin/install.php in my browser and saw… nothing. Not even an error message.
Ok, I went poking around. Deleted config.php and got the error message as expected.
Next line in the code is: require_once(‘../config.php’);
I do not believe I get over this hurdle (if I recall correctly, require_once dies quietly).
I changed it to require config-sample.php, and got as far as database error message. config-sample.php and config-php sit next to each other with exactly same permissions.
I cannot think of a reason for require_once to see one but not the other…
Mystery…
Any ideas?