Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,201 through 32,225 (of 32,404 total)
  • Author
    Search Results
  • #50696
    ear1grey
    Member

    There isn’t currently a filter on the title, so there’s no quick answer that I can see, however:

    You could copy bb-templatesheader.php to my-templatesheader.php (if you don’t have a copy of it already), then change its call to bb_title(); to another function, which you could write in a plugin, stealing code from the bb_get_title() function in template-functions.php.

    Something like: my-title-plugin.php

    <?php

    // edit this so it returns whatever you want

    function my_title() {

    global $topic, $forum, $static_title, $tag, $user;

    $title = '';

    if ( is_topic() )

    $title = get_topic_title(). ' &laquo; ';

    if ( is_forum() )

    $title = get_forum_name() . ' &laquo; ';

    if ( is_tag() )

    $title = wp_specialchars( get_tag_name() ). ' &laquo; Tags &laquo; ';

    if ( is_bb_profile() )

    $title = get_user_name( $user->ID ) . ' &laquo; ';

    if ( !empty($static_title) )

    $title = $static_title . ' &laquo; ';

    $title .= bb_get_option('name');

    return $title;

    }

    ?>

    #50810
    Nola1974
    Participant

    Perfection… now, what would the forum name be? :)

    using this…

    <td><img src="/my-templates/images/topic.gif" /> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>by <?php topic_author(); ?> in [forum name] </td>

    to give me this…

    [ ] I guess I’ll be the first. :)

    by admin in

    #50853

    Yes, and you’re right :)

    #50052

    In reply to: Can’t Login…

    whitelion, If you’re logged in, but can’t admin, it may be that there are no users with admin capabilities. This can happen if you install bbPress and then later intograte it with WordPress.

    To fix this, try setting $bb->new_keymaster = true; in bbPress config.php and then re-running /bb-admin/install.php.

    You should be able to type in your username if there are not any keymasters already. Delete that new line in config.php once you’re done.

    #849

    Topic: img plugin bug

    in forum Installation
    AphelionZ
    Participant

    sorry to be posting a bug so soon, but ive been using the Allow Images plugin and everything seems to be in order, but then suddenly it started rejecting img tags and now i cant seem to get it back… if i do a full on <img src="whatever"> it just returns this: <img>

    Anyone have any ideas why this might be happening?

    #50235

    In reply to: Cookies and WPMU

    mozey
    Member

    suleinman, sure thing,

    okay, first of all, my bb and my mu are sharing ONLY the usertable and the login sessions. THATS IT, no common functions, nothing like that.

    and in order to do that, i added the following lines to my config.php on my bb.

    __________________________________________________

    //These are for the information about the database into which bbPress should store its content

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘bbdbname’); // The name of the database

    define(‘BBDB_USER’, ‘bbdbuser’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘bbdbpassword’); // …and password

    define(‘BBDB_HOST’, ‘127.0.0.1’); // 99% chance you won’t need to change this value

    // This is the information about mu’s database. bbPress will look for users in this database

    define(‘USER_BBDB_NAME’, ‘mudbname’);

    define(‘USER_BBDB_USER’, ‘mudbuser’);

    define(‘USER_BBDB_PASSWORD’, ‘mudbpass’);

    define(‘USER_BBDB_HOST’, ‘127.0.0.1’);

    //if your using one database, its cool, just replicate the mu/bb data!

    //now your about to tell bb to look for users in the wp table

    define(‘CUSTOM_USER_TABLE’, ‘wp_users’);

    define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta’);

    //and now, your about to tell bb to user the same sessions as wp

    $bb->usercookie = ‘wordpressuser’;

    $bb->passcookie = ‘wordpresspass’;

    $bb->cookiedomain = ‘localgigs.fm’; // or .example.com if there was a . above

    $bb->cookiepath = ‘/’;

    // Change the prefix if you want to have multiple forums in a single database.

    __________________________________________________

    i hope this helps. do reply back with questions, :)

    #840
    andyro
    Member

    I noticed someone had done this (lotsofcars blog??), where bbPress loads into a standard static wordpress page. I have the ‘execphp.php’ plugin installed, should this be as simple as copy-pasting the index code into the body of the page text (using html view), and making sure the paths to the rest of bbPress files are correct?? Or is there another, smarter method?

    #50051

    In reply to: Can’t Login…

    cvanp
    Member

    I have two WordPress blogs (2.0.5) sharing a user database and attempted to get bbPress to share that user db as well. It installed successfully, but I can’t log in either!

    I know it’s pulling the info though from my User Database, because the username in the sample post is linked to the same site I’ve set in WordPress. I checked my config.php values, and I know the syntax is correct based on the comments in config.php and the comments above, so I’m a bit confused.

    I should note that I’m attempting this on a local test server, so all my config.php values are “localhost” values (such as $bb->domain = 'http://localhost';), I don’t know if this would throw things off at all.

    #842

    Topic: detail of Style.css ?

    in forum Themes
    n22
    Member

    In which line of style.css describ those color????

    f.ex: sticky color is on the line 161 of style.css

    1) the color of your forums name? (the one on the right-top corner)

    2) the background color of forums ?

    3) the title of table ?(the gray one on the top: Topic — Add New » Posts Last Poster Freshness …)

    4) the original topic color ? (there 2 colors i think)

    5) those words color? (Hot tags, Latest Discussions, Forums, View..)

    6) the white line under under those title: Hot tags, lastest discussions…?

    7) all link words ?( add new, no-reply, untag… the original color is green)

    8) all link words ?(when mose hover)

    8) background color of the bottom section of forums ?(there is : xxxxxxx is proudly powered by bbPress)


    9) Now, when u add a new topic, theres a table which ask u the subjet, the content, the tag and the ection. i want to change the background color of this table, which line it is?

    10)Now, when u look at a topic, theres the original post and reply. the background of each one is on which line?


    11)last thing..: i want to also change those word (the word, not the color) : ‘Enter a few words(call tag)separeted by spaces to help someone find your topic’ and ‘ pick a section’

    Thank you a lot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    #50093
    andyro
    Member

    Thanks, I will try this (first need to figure out how to access .htaccess – reading about this now! :)

    #50794

    try

    if ( bb_current_user_can( 'administrate' ) ) {

    // do something

    } else {

    // do something else

    }

    If you look in bb-includes/capabilities.php, you’ll see a list of available capabilities you an check for, if you want more fine grained control than the above.

    #50234

    In reply to: Cookies and WPMU

    suleiman
    Member

    mozey, would you mind helping out a fellow mu’er and post the code to your working mu/bbpress integration?

    I’ve been stumbling again and again on getting the user integration to work, let alone the cookies!

    #50603

    In reply to: hello from Russia

    mbyte
    Member

    dyduiryuituio8t

    You can translate it for yourself. In dir bb-templates you have files, which you can translate.

    Now I translate it to Russian, and if you wait for 3-4 days, I upload files on my ftp, and post link in this topic ;) .

    #50602

    In reply to: hello from Russia

    hello to America! does that really matter, AphelionZ? :)

    just a random sequence of letters, i think…

    #812
    Nola1974
    Participant

    I’m trying to add the imageshack toolbar to my edit form, and I added it under the “post_content” field in edit-form.php but it’s not showing up anywhere.

    It worked when I just stuck it at the bottom of post-form.php, under the part about “Enter a few words (called tags)”

    I see a second “post_content” field in post-form.php … is this redundant code?

    It seems like this edit form should just be in edit-form.php and therefore changes only need to be made there and called when necessary (add presented as such depending on if it’s a reply/new post/edit/etc…

    Also, when trying to add it to the Reply form (in topic.php) I see a call to post_form();.

    Logic (in my mind) would have it that this function is in the file called post-form.php – which I’ve already added the toolbar too, as well as added it to edit-form.php.

    So where is this post_form(); located? :)

    (I”m really not trying to be a pain in the butt!)

    BTW, this is the imageshack toolbar:

    <iframe src="http://www.imageshack.us/iframe.php?txtcolor=C0C0C0&type=blank&size=30" scrolling="no" frameborder="0" width="300" height="90" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>

    You can see it in action on http://overnights.org when you create a new post, but no where else.

    #50769
    Aaron
    Participant

    Theere is this,

    https://codex.wordpress.org/User:RobLa/bbPress_Auth_for_MediaWiki

    it might be a little old, but I think it is relevant. MediaWiki / WP /bbPress

    #831
    n0mer
    Member

    Hi again, what about grouping forums?

    F.ex. if 10 forums already exist (http://jug.org.ua/forum/forums/list.page , i want to switch this forum to bbPress), it is handy to sort them out in some way.

    Or just add smth. like “separator” :) between forum groups

    And, do smth. with forum deletion; it can be quite complex and painful process to place existing topics, tags and comments somewhere.

    #830
    #50524
    AphelionZ
    Participant

    Make a my-templates folder, and inside of it copy front-page.php from your bb-templates folder. In the new file, move some stuff around :)

    The templates are nice and simple so anybody that can read a small, I stress simple piece of HTML with a few embedded PHP tags can understand them.

    #49596

    In reply to: Emoticons For bbPress?

    AphelionZ
    Participant

    n22 – in your forums folder there’s a folder called bb-templates. make a new folder called my-templates and copy these files from bb to my template folder – edit-form.php, post-form.php

    Edit those files – find the only instance of textarea in them and put that php code (just copy and paste, it’s ok!) in a reasonable spot nearby. For example, they said above, but i chose below because i thought it worked better. All depends on the template.

    PS – GREAT JOB! It worked perfectly for me

    #50775

    In reply to: Img tag plugin

    https://bbpress.org/plugins/topic/5

    (The plugin browser you’ll see at that link is still in the early stages of its development. Go easy on it :) )

    #50766

    nolageek, That information will mostly be useful to plugin authors. You probably won’t need to know that in order to customize your site.

    I hope not, anyway :)

    #50765
    ear1grey
    Member

    Thx Mike; perfick.

    @nola: the short version is that if you already have the topic (which I do because I’m using this in the topic.php template), then instread of saying: echo bb_get_topicmeta($topic->ID, "mykey"); whichis what I was expecting, there is the somewhat easier echo $topic->my_key;

    #50764
    Nola1974
    Participant

    Unlike WP, topic meta is accessed throught the topic object.

    update_topicmeta( 5, 'my_meta', 'yay' );

    $topic = get_topic( 5 );

    echo $topic->my_meta; // outputs: yay

    Um. What? I see this isn’t going to be a fun forum system to customise if you’re not a PHP programmer. I have NO IDEA what the above means. (I dont mean that as a slam, just a declaration that I’m in over my head at this point.)

    #50773

    In reply to: Img tag plugin

    Nola1974
    Participant

    why between code tags? I thought the point of the code tag was that it outputted code instead of performing it?

Viewing 25 results - 32,201 through 32,225 (of 32,404 total)
Skip to toolbar