Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,076 through 23,100 (of 32,468 total)
  • Author
    Search Results
  • #32055
    #80445
    nickaster
    Member

    Excellent thanks a lot, that worked perfectly. (The double welcome was bad code from the themer)

    #79943
    chrishajer
    Participant

    What version of bbPress has a file bb-admin.php in it?

    Just for reference, here is the error I am seeing right now:

    Fatal error: Call to undefined function bb_get_forums() in /home/content/m/i/c/michiganpoker/html/bb-admin.php on line 4

    #79942
    johnhiler
    Member

    That’s very odd… I just downloaded a fresh copy from that link, and the bb-config-sample file didn’t have that deep integration line in it.

    Maybe try downloading a fresh copy, and uploading that code over the old one?

    #80435
    johnhiler
    Member

    Deep integration is a lot of overhead just to call the same header and footer… but it’s your call. :-)

    Which thread had the instructions you were looking at? We can take a look if you post the links!

    #80446
    yutt
    Member

    Additionally, the error referenced is from the following function, at the first return line:

    function _real_escape( $string )
    {
    if ( $this->dbh && $this->real_escape ) {
    return mysql_real_escape_string( $string, $this->dbh );
    } else {
    return addslashes( $string );
    }
    }

    #32053
    yutt
    Member

    I’m running into an odd error:

    Warning: mysql_real_escape_string(): 16 is not a valid MySQL-Link resource in /forums/bb-includes/backpress/class.bpdb.php on line 394

    This happens when I using an external function I made to create threads which uses bb_insert_topic. It seems to only happen ever other thread created. If I just create one thread, it never happens, if I create three threads in a row, it will happen on the second but not the first or third.

    My function is fairly straight-forward:

    $topic_id = bb_insert_topic(array('topic_title' => $topic_title,'topic_poster' => 5,'forum_id' => 1));

    Is this a bbpress bug?

    #80444

    The words are stored in a file called logged-in.php in your theme.

    In Kakumei (the default), it looks like this:

    <p class="login">
    <?php printf(__('Welcome, %1$s'), bb_get_profile_link(bb_get_current_user_info( 'name' )));?>
    <?php bb_admin_link( 'before= | ' );?>
    | <?php bb_logout_link(); ?>
    </p>

    Using __( translates into the appropriate language, and %1$s is a placeholder that gets replaced by the user’s name

    Not sure why it’s saying Welcome twice though

    #32052
    nickaster
    Member

    Okay – so I’m trying to change my Welcome MEssage on the home page. Right now it says:

    “Welcome back Welcome, USERNAME!”

    The code that produces this looks like this:

    <?php if ( !in_array( bb_get_location(), array( ‘login-page’, ‘register-page’ ) ) ) login_form(); ?>

    That’s utter gobbledy gook as far as I”m concerned. Can anyone decifer it? Why is “welcome” appearing twice? Where are the words coming from? Whay if I wanted it to say “Go away USERNAME”? Where is that php getting it’s information from?

    Second line looks like this, which is fine:

    “User Options: Admin | Log Out”

    Since I’m admin, I assume that’s why I see admin. Other users would just see Log Out? or what? The code producing that is equally cryptic. Where does it come from? What if I wanted to, say, change the p class that gets slapped around that?

    Thanks!

    #32051
    SimonDorfman
    Member

    WordPress info:

    I have wordpress Version 2.8.4 set up following these directions:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    …so the wordpress folder is located here: http://www.example.com/cms/

    …but the world sees the blog here: http://www.example.com/

    I have permalinks set up with Day and name (a.k.a.: /%year%/%monthnum%/%day%/%postname%/)

    bbPress info:

    I installed bbPress 1.0.2 here: http://www.example.com/forums/

    The problem:

    I’m having some problems with this setup which I think are being caused by mod_rewrite.

    I try to login at https://www.example.com/forums/ (using the login and password emailed to me after installation) and it seems to accept my login, but then tries to take me to this url: https://www.example.com/forums/forums/ and then shows a wordpress 404 not found page.

    Any ideas?

    Thanks very much in advance for any help!

    #32050
    darrinb
    Member

    I noticed an extra set of quotation marks in functions.bb-template.php on line 3287 after the $tab variable.

    $r .= '<select name="' . $name . '" id="' . $id . '"' . $tab . '">' . "n";

    This creates extra quote marks on the bb_new_topic_forum_dropdown(); like so:

    <select name="forum_id" id="forum-id"">

    #80378
    gerikg
    Member
    #80413

    I am currently attempting something similar. I have an integrated WP and bbPress but want to switch to WPMU. I’ve successfully imported the user tables through phpMyAdmin. There are three columns you need to add to the wp_users table:

    display_name - varchar(250) - blank default value
    spam - tinyint(2) - default value = 0
    deleted - tinyint(2) - default value = 0

    And in wp_usermeta table you need to do a SQL search and replace to change all values that have wp_ to wp_1_ (because the main blog in WPMU has got that table prefix)

    UPDATE wp_posts SET meta_key = replace(meta_key, 'wp_','wp_1_');

    #80409
    johnhiler
    Member

    Ah I just was noticing that you’re calling four separate CSS files in your bbpress install! That’s a lot… you might want to narrow that down a bit. :-)

    #80406
    christianrharris
    Participant

    Thanks. I searched for this code and can’t find it. I can see lots of style.css files. Is it the file in the main directory or in my Themes folder.

    Thanks kindly!

    #79937
    aequity
    Member

    When I deleted the line 2: require_once (‘admin.php’);

    I now get the error that you currently see on the site

    http://www.MichiganPokerNews.com

    Which is:

    Fatal error: Call to undefined function bb_get_forums() in /home/content/m/i/c/michiganpoker/html/bb-admin.php on line 4

    Line 4 code currently reads:

    $forums = bb_get_forums();

    thoughts?

    A.

    #80422
    johnhiler
    Member

    Here’s a list of bbPress professionals, although I don’t know how many of them have done development:

    http://bbshowcase.org/forums/topic/bbpress-professionals-advertise-in-this-topic

    The most prolific developers are _ck_ and Nightgunner5.

    Nightgunner5 has written 9 plugins that I’m aware of (I use two of them, and they are excellent):

    https://bbpress.org/plugins/profile/nightgunner5

    _ck_ is by far the most prolific developer, with 60 plugins:

    https://bbpress.org/plugins/profile/_ck_

    But according to that link above on bbshowcase (her site), she’s not available right now. If you have a larger budget though, it might be worth dropping her a line and seeing if she’s open to it.

    You might also try Ivan here:

    https://bbpress.org/plugins/topic/wordpress-bbpress-syncronization/

    If there are active plugin developers that I’ve missed, please let cupra know in the comments!

    Good luck! And if you’re open to contributing any custom plugins to the plugin section when you’re done, that’d be great! I’d be glad to help test the plugin… :-)

    #79935
    aequity
    Member

    Thanks John: Before I move forward, I went to the site and here’s the code on line 2:

    require_once(‘admin.php’);

    I notice, looking through the file list both on my computer and on the remote site that there is no file labelled “admin.php”.

    Could that be the problem? I’m using a 5.* version of php if that helps.

    Also, the only file thats a “home” or “index” file is index.php….

    Hope this may help you pinpoint the problem a bit. Thanks, A.

    #80421
    cupra
    Member

    I see. That makes sense. Are there any developers here in this forum with a good reputation who could be recommended? I’m very new here, and I’d rather hire someone who regularly contributes here than just anyone on a rent-a-coder type site. I would really appreciate being pointed in the right general direction.

    #64200
    dikkevandale
    Participant

    No specific solution :/

    #80361

    In reply to: [REQ] Portal Plugin

    Shagalaga
    Member

    ooook it works all fine, but how can i achieve that bbcode light, images and emoticons to work on the portal?

    #80405
    chrishajer
    Participant

    Because you have this in your style.css:

    .entry ol li {
    line-height:140%;
    padding:0 0 1em 0;
    list-style-position: inside;
    list-style-type:decimal;
    }

    to get rid of it, change the last line to this:

    list-style-type:none;

    #64198
    dikkevandale
    Participant

    I don’t want to show the bbpress profile only, instead I want everything that is shown on the bbpress profile to be shown on the wordpress user profile. Is this possible?

    WP User Profile

    blabla


    Forum stats:

    blabla

    All on 1 profilepage.

    #80317

    This might be a cleaner solution

    <?php
    switch ( $topic->forum_id ) { // Ignore these forums
    case 29:
    case 30:
    case 18:
    case 15:
    case 4:
    continue 2;
    }
    ?>

    or for including only certain forums

    switch ( $topic->forum_id ) { // Include only these forums
    case 29:
    case 30:
    case 18:
    case 15:
    case 4:
    break;
    default:
    continue 2;
    }
    ?>

    but using that if statement, you need to change the line

    <?php if( $topic->forum_id != 29 && $topic->forum_id != 30 && $topic->forum_id != 18 && $topic->forum_id != 15 && $topic->forum_id != 4 )

    and you can find the forum ID from looking at its Edit URL in the admin panel (under Forums)

    #80078
    carlosdelab
    Member

    Hello Everyone,

    I can’t see images in my bb-press

    even, using the BBcode Buttons Toolbar.

    this is a list of my plugins that I have now installed in my bbpress.

    Akismet


    Version 1.1

    Allow Images


    Version 0.7.1

    BBcode Buttons Toolbar


    Version 0.0.9

    BBcode Lite


    Version 1.0.3

    bbPress Attachments


    Version 0.2.7

    Bozo Users


    Version 1.1

    Hello Louie


    Version 1.0

    All of this plugins work fine, but with some extrange reason I can’t see any image.

    best

    and thanks in advance.

    c.

Viewing 25 results - 23,076 through 23,100 (of 32,468 total)
Skip to toolbar