Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 19,026 through 19,050 (of 32,518 total)
  • Author
    Search Results
  • #104566
    Pomy
    Participant

    @zaerl

    I’m sorry but I can’t help you further, I’m pretty busy right now.

    Ahh Ok, But I’m not able to hire someone for “complete” help.

    Any way thanks for your help.

    @Ben L. – I tried

    if ( $forum->forum_slug == 'myforum' ) {
    bb_load_template( 'forum-myforum.php' );
    return;
    }

    It works, can I use this method removing $forum = bb_get_forum(); ??

    Is it secure?

    #99466
    Pomy
    Participant

    @zaerl

    I’m sorry but I can’t help you further, I’m pretty busy right now.

    Ahh Ok, But I’m not able to hire someone for “complete” help.

    Any way thanks for your help.

    @Ben L. – I tried

    if ( $forum->forum_slug == 'myforum' ) {
    bb_load_template( 'forum-myforum.php' );
    return;
    }

    It works, can I use this method removing $forum = bb_get_forum(); ??

    Is it secure?

    #102994
    Ben L.
    Member

    https://trac.bbpress.org/browser/trunk/bb-load.php#L25 – here’s an even better solution.

    error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING); allows us to avoid new error messages if PHP adds new error types in the future.

    #97894
    Ben L.
    Member

    https://trac.bbpress.org/browser/trunk/bb-load.php#L25 – here’s an even better solution.

    error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING); allows us to avoid new error messages if PHP adds new error types in the future.

    #94993
    mark_corbin
    Member

    Thanks JJJ!

    One more thing’s been bugging me: I want anyone to be able to register on the forum, but no ‘register’ link appears on the bbpress log-in widget, or for example after links that say ‘sorry, need to be signed in to post comments’ .

    There seems to be a template file for a bbp registration form, and I’ve tried guessing but I can’t work out the link to it!

    So

    1. Is this by design, have I got an option wrongly ticked somewhere?

    2. Could you let me know the link to a registration form if there is one – otherwise I could use the standard wp registration link

    3. Is it worth me searching through the code trying to add in a few links in the right places, is there one quick-win place to this? I guess priority for me is to get the link in the sign-in widget.

    I’m tempted to try to create or use a lightbox registration/log-in process anyway, but I need a much shorter term solution (small numbers of people might register from Friday)

    Thanks for your help folks, love this software

    Mark

    #37570

    Hi,

    I’m using bbPress for a website I’m building and I’m experiencing a kind of weird thing. I’m using the following code to get the last topic title on the forum page:

    topic_title(forum_last_topic_id());

    It works well except for the first Subforum..

    Here’s a link:

    http://venvnvs.nl/bbpress/

    #102993
    sontru
    Participant

    Most of the deprecation is to do with =& assignments.

    According to this http://www.php.net/manual/en/language.references.php#93292

    All that need doing is to remove the &

    Is it safe to do so. Has anyone done this? Is there any recursive tree loops in the code?

    #97893
    sontru
    Participant

    Most of the deprecation is to do with =& assignments.

    According to this http://www.php.net/manual/en/language.references.php#93292

    All that need doing is to remove the &

    Is it safe to do so. Has anyone done this? Is there any recursive tree loops in the code?

    #94990
    Pr1me
    Member

    Could someone tell me what the code is to display the recent forum entries in the sidebar? (without using the widget system)

    #104289

    In reply to: WPMimic V.1

    llny
    Member

    :)

    #99189

    In reply to: WPMimic V.1

    llny
    Member

    :)

    #37566

    Topic: SQL error!

    in forum Installation
    jzp820927
    Member

    SQL error!

    >>> database:bbpress (localhost)

    >>>>>> CREATE TABLE IF NOT EXISTS bb_posts (

    post_id bigint(20) NOT NULL auto_increment,

    forum_id int(10) NOT NULL default 1,

    topic_id bigint(20) NOT NULL default 1,

    poster_id int(10) NOT NULL default 0,

    post_text text NOT NULL,

    post_time datetime NOT NULL default ‘0000-00-00 00:00:00’,

    poster_ip varchar(15) NOT NULL default ”,

    post_status tinyint(1) NOT NULL default 0,

    post_position bigint(20) NOT NULL default 0,

    PRIMARY KEY (post_id),

    KEY topic_time (topic_id, post_time),

    KEY poster_time (poster_id, post_time),

    KEY post_time (post_time),

    FULLTEXT KEY post_text (post_text)

    ) TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8’;

    >>>>>> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8” at line 16

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

    #99465
    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.

    #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

    #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

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

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

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

    #104581

    In reply to: Weird header code

    zyadsherif
    Member

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

    #99481

    In reply to: Weird header code

    zyadsherif
    Member

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

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

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

    zaerl
    Participant

    My plugin doesn’t touch the mail code.

    zaerl
    Participant

    My plugin doesn’t touch the mail code.

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