Search Results for 'code'
-
Search Results
-
Hi!
I switched my site’s phpBB forum to bbPress, and I’ve released the script I used for this purpose under the terms of the GPL.
It’s largely based on the excellent starting point from Bruno Torres, to which I added some new features — like bbCode conversion with clean XHTML 1.1 compliant output, smily to text transcription, and the ability to import topics marked as closed, sticky and announcements as such.
I made also some little bugfixing, and the resulting script was able to cleanly import almost everything valuable from my old phpBB database.
You can have a look here if interested: http://www.iteisa.com/phpbb2bbpress/
Hope it helps to spread bbPress and web standards all around!
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 #6
It fills my variable correctly, it just prints this and I don’t want it to