Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 19,026 through 19,050 (of 32,505 total)
  • Author
    Search Results
  • #104565
    zaerl
    Participant

    What 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.

    #99464
    Pomy
    Participant

    Hi 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

    #104564
    Pomy
    Participant

    Hi 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

    #94988

    Try 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.

    #99463
    zaerl
    Participant

    No 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.

    #104563
    zaerl
    Participant

    No 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.

    #99481

    In reply to: Weird header code

    zyadsherif
    Member

    Oh I see … that’s good to know, thanks a lot :-) !!

    #104581

    In reply to: Weird header code

    zyadsherif
    Member

    Oh I see … that’s good to know, thanks a lot :-) !!

    #99480

    In reply to: Weird header code

    zaerl
    Participant

    No. You have a very modern installation of PHP and there is some code in bbPress that now it deprecated. Nothing to worry about.

    #104580

    In reply to: Weird header code

    zaerl
    Participant

    No. You have a very modern installation of PHP and there is some code in bbPress that now it deprecated. Nothing to worry about.

    zaerl
    Participant

    My plugin doesn’t touch the mail code.

    zaerl
    Participant

    My plugin doesn’t touch the mail code.

    #99514
    zaerl
    Participant

    Probably 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.

    #104614
    zaerl
    Participant

    Probably 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.

    #99461
    Pomy
    Participant

    Hi 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

    #104561
    Pomy
    Participant

    Hi 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

    #99479

    In reply to: Weird header code

    zyadsherif
    Member

    OOOH … 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 (“,)

    #104579

    In reply to: Weird header code

    zyadsherif
    Member

    OOOH … 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 (“,)

    #94980
    Ben L.
    Member

    Mark, 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.

    #99478

    In reply to: Weird header code

    Ben L.
    Member

    Find this line and make sure it says error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);

    #104578

    In reply to: Weird header code

    Ben L.
    Member

    Find this line and make sure it says error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);

    Ben L.
    Member

    Your host might be blocking the mail() function, or your email could have been mistakenly marked as spam.

    Ben L.
    Member

    Your host might be blocking the mail() function, or your email could have been mistakenly marked as spam.

    #99500
    Ben L.
    Member

    Theoretically, you can use anything for authentication by overriding the bb_check_login function.

    #104600
    Ben L.
    Member

    Theoretically, you can use anything for authentication by overriding the bb_check_login function.

Viewing 25 results - 19,026 through 19,050 (of 32,505 total)
Skip to toolbar