Search Results for 'code'
-
AuthorSearch Results
-
February 22, 2011 at 5:06 pm #104565
In reply to: Custom forum template like forum-ID.php – possible?
zaerl
ParticipantWhat you’re asking for involve hooking the “bb_get_active_theme_directory” filter (or similar):
function custom_dir($directory)
{
// do something
// append the slug for example
global $forum;
$directory .= $forum->forum_slug . '/'
}
if(special case described in my last post) add_filter( 'bb_get_active_theme_directory', 'custom_dir');I’m sorry but I can’t help you further, I’m pretty busy right now.
February 22, 2011 at 2:24 pm #99464In reply to: Custom forum template like forum-ID.php – possible?
Pomy
ParticipantHi Zaerl, Thanks for your interest in this topic

I also tried your method, but I’m sorry its little bit different.
its shows content from “whatever-you-want.php” when slug is “this” but the forum structure remain same.
something like
**************Forum Template**************
— Default Header
— Default latest discussion
— Default forums
— Default Footer
— Custom content from whatever-you-want.php
********************************************
But I’m searching, that when forum slug is “this” then i can handle every thing from scratch from “whatever-you-want.php”
like
*************Forum Template***************
— My Custom Header for forum slug “this”
— My Custom latest discussion
— My Custom forums categories
— My Custom style for footer
*******************************************
Keep in mind that this is a rude approach and that everything can be packed in a plugin.
I’m afraid what you are talking about. Is this not a secure method?
Can you please pack this code into a plugin, I’ll really appreciate your kindness. Thanks
February 22, 2011 at 2:24 pm #104564In reply to: Custom forum template like forum-ID.php – possible?
Pomy
ParticipantHi Zaerl, Thanks for your interest in this topic

I also tried your method, but I’m sorry its little bit different.
its shows content from “whatever-you-want.php” when slug is “this” but the forum structure remain same.
something like
**************Forum Template**************
— Default Header
— Default latest discussion
— Default forums
— Default Footer
— Custom content from whatever-you-want.php
********************************************
But I’m searching, that when forum slug is “this” then i can handle every thing from scratch from “whatever-you-want.php”
like
*************Forum Template***************
— My Custom Header for forum slug “this”
— My Custom latest discussion
— My Custom forums categories
— My Custom style for footer
*******************************************
Keep in mind that this is a rude approach and that everything can be packed in a plugin.
I’m afraid what you are talking about. Is this not a secure method?
Can you please pack this code into a plugin, I’ll really appreciate your kindness. Thanks
February 22, 2011 at 1:44 pm #94988In reply to: bbPress 2.0 – Updates
John James Jacoby
KeymasterTry
bbp_is_forum()
Otherwise, because of other plugins like BuddyPress it’s hard to know exactly if we’re in *any* bbPress page without running through all the _is_ functions first. I have it set ‘bbPress’ as the body class if a bbPress page is detected, but that happens pretty late in the game. Would be better off checking for a specific _is_ and going from there.
February 22, 2011 at 9:55 am #99463In reply to: Custom forum template like forum-ID.php – possible?
zaerl
ParticipantNo no no.
/forum.php, near the end:
$template = 'forum.php';
if($forum->forum_slug == 'this') $template = 'whatever-you-want.php';
else if($forum->forum_slug == 'that') $template = 'something-else.php';
bb_load_template( $template, array('bb_db_override', 'stickies'), $forum_id );/topic.php, near the end:
$template = 'topic.php';
$forum = bb_get_forum($topic->forum_id);
if($forum->forum_slug == 'this') $template = 'whatever-you-want.php';
else if($forum->forum_slug == 'that') $template = 'something-else.php';
bb_load_template( $template, array('bb_db_override', 'stickies'), $forum_id );Keep in mind that this is a rude approach and that everything can be packed in a plugin.
February 22, 2011 at 9:55 am #104563In reply to: Custom forum template like forum-ID.php – possible?
zaerl
ParticipantNo no no.
/forum.php, near the end:
$template = 'forum.php';
if($forum->forum_slug == 'this') $template = 'whatever-you-want.php';
else if($forum->forum_slug == 'that') $template = 'something-else.php';
bb_load_template( $template, array('bb_db_override', 'stickies'), $forum_id );/topic.php, near the end:
$template = 'topic.php';
$forum = bb_get_forum($topic->forum_id);
if($forum->forum_slug == 'this') $template = 'whatever-you-want.php';
else if($forum->forum_slug == 'that') $template = 'something-else.php';
bb_load_template( $template, array('bb_db_override', 'stickies'), $forum_id );Keep in mind that this is a rude approach and that everything can be packed in a plugin.
February 21, 2011 at 3:14 pm #99481In reply to: Weird header code
zyadsherif
MemberOh I see … that’s good to know, thanks a lot
!!
February 21, 2011 at 3:14 pm #104581In reply to: Weird header code
zyadsherif
MemberOh I see … that’s good to know, thanks a lot
!!
February 21, 2011 at 8:51 am #99480In reply to: Weird header code
zaerl
ParticipantNo. You have a very modern installation of PHP and there is some code in bbPress that now it deprecated. Nothing to worry about.
February 21, 2011 at 8:51 am #104580In reply to: Weird header code
zaerl
ParticipantNo. You have a very modern installation of PHP and there is some code in bbPress that now it deprecated. Nothing to worry about.
February 21, 2011 at 8:49 am #99440zaerl
ParticipantMy plugin doesn’t touch the mail code.
February 21, 2011 at 8:49 am #104540zaerl
ParticipantMy plugin doesn’t touch the mail code.
February 21, 2011 at 8:44 am #99514In reply to: Pagination Breaks after 44 Pages
zaerl
ParticipantProbably you have deleted some posts here and there. Try to recount everything from the admin page (bb-admin/tools-recount.php). I have tested get_topic_page_links (the function that generate links) and I don’t see problems.
Your count says 1533 posts but 35*44 + 7 = 1547.
Also add:
.post img, #post_content img {
max-width: 450px;
}to your CSS.
February 21, 2011 at 8:44 am #104614In reply to: Pagination Breaks after 44 Pages
zaerl
ParticipantProbably you have deleted some posts here and there. Try to recount everything from the admin page (bb-admin/tools-recount.php). I have tested get_topic_page_links (the function that generate links) and I don’t see problems.
Your count says 1533 posts but 35*44 + 7 = 1547.
Also add:
.post img, #post_content img {
max-width: 450px;
}to your CSS.
February 21, 2011 at 8:24 am #99461In reply to: Custom forum template like forum-ID.php – possible?
Pomy
ParticipantHi Ben L.
I’m sorry, second code is not working from my side.
Are you sure about this code?
Please tell me where I’m wrong.
Error:
Warning: Missing argument 1 for bb_get_forum(), called in /home/domain/public_html/my-domain.com/forum/bb-templates/bbp-template/forum.php on line 18 and defined in /home/domain/public_html/my-admin.com/forum/bb-includes/functions.bb-forums.php on line 125
`
Thanks
February 21, 2011 at 8:24 am #104561In reply to: Custom forum template like forum-ID.php – possible?
Pomy
ParticipantHi Ben L.
I’m sorry, second code is not working from my side.
Are you sure about this code?
Please tell me where I’m wrong.
Error:
Warning: Missing argument 1 for bb_get_forum(), called in /home/domain/public_html/my-domain.com/forum/bb-templates/bbp-template/forum.php on line 18 and defined in /home/domain/public_html/my-admin.com/forum/bb-includes/functions.bb-forums.php on line 125
`
Thanks
February 20, 2011 at 11:03 pm #99479In reply to: Weird header code
zyadsherif
MemberOOOH … lovely, works like a charm thanks a lot, but is there some serious error that I should know about & perhaps try to fix?
knowing that I installed a fresh copy & not yet touched anything
Thanks again (“,)
February 20, 2011 at 11:03 pm #104579In reply to: Weird header code
zyadsherif
MemberOOOH … lovely, works like a charm thanks a lot, but is there some serious error that I should know about & perhaps try to fix?
knowing that I installed a fresh copy & not yet touched anything
Thanks again (“,)
February 20, 2011 at 8:29 pm #94980In reply to: bbPress 2.0 – Updates
Ben L.
MemberMark,
body[class*=single-bbp], body[class*=page-template-page-bbp](or if you’re feeling ambitious,body[class*=bbp]) should match bbPress plugin pages. User profile pages currently use the body class for 404 pages, which is a bug.February 20, 2011 at 8:16 pm #99478In reply to: Weird header code
Ben L.
MemberFind this line and make sure it says
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);February 20, 2011 at 8:16 pm #104578In reply to: Weird header code
Ben L.
MemberFind this line and make sure it says
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);February 20, 2011 at 8:09 pm #99439Ben L.
MemberYour host might be blocking the
mail()function, or your email could have been mistakenly marked as spam.February 20, 2011 at 8:09 pm #104539Ben L.
MemberYour host might be blocking the
mail()function, or your email could have been mistakenly marked as spam.February 20, 2011 at 8:02 pm #99500In reply to: Using MediaWiki user database to log in?
Ben L.
MemberTheoretically, you can use anything for authentication by overriding the
bb_check_loginfunction.February 20, 2011 at 8:02 pm #104600In reply to: Using MediaWiki user database to log in?
Ben L.
MemberTheoretically, you can use anything for authentication by overriding the
bb_check_loginfunction. -
AuthorSearch Results