Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,976 through 24,000 (of 32,468 total)
  • Author
    Search Results
  • #69747

    cloo, were there any errors during your conversion?

    I was going to attempt 3.0.4 > bbpress 1.0.2 until I saw this :D

    #77866

    I’m sorry :( That is the ONLY time I’ve seen that error. I mean, you can’t login, so clearly you have no plugins activated to be causing that.

    #77865
    Marius-
    Member

    Well ugh, there is no space there! I’ve checked ten thousand times already.

    <?php
    /**
    * The base configurations of bbPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys and bbPress Language. You can get the MySQL settings from your
    * web host.
    *
    * This file is used by the installer during installation.
    *
    * @package bbPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for bbPress */
    define( 'BBDB_NAME', 'michael_forum' );

    /** MySQL database username */
    define( 'BBDB_USER', 'michael_forum' );

    /** MySQL database password */
    define( 'BBDB_PASSWORD', '***' );

    /** MySQL hostname */
    define( 'BBDB_HOST', 'localhost' );

    /** Database Charset to use in creating database tables. */
    define( 'BBDB_CHARSET', 'utf8' );

    /** The Database Collate type. Don't change this if in doubt. */
    define( 'BBDB_COLLATE', '' );

    /**#@+
    * Authentication Unique Keys.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}
    *
    * @since 1.0
    */
    define( 'BB_AUTH_KEY', 'put your unique phrase here' );
    define( 'BB_SECURE_AUTH_KEY', 'put your unique phrase here' );
    define( 'BB_LOGGED_IN_KEY', 'put your unique phrase here' );
    define( 'BB_NONCE_KEY', 'put your unique phrase here' );
    /**#@-*/

    /**
    * bbPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $bb_table_prefix = 'bb_';

    /**
    * bbPress Localized Language, defaults to English.
    *
    * Change this to localize bbPress. A corresponding MO file for the chosen
    * language must be installed to a directory called "my-languages" in the root
    * directory of bbPress. For example, install de.mo to "my-languages" and set
    * BB_LANG to 'de' to enable German language support.
    */
    define( 'BB_LANG', '' );
    ?>

    #76827
    neilogic
    Member

    You mean the bottom float or something else. For the bottom facebook like bar here’s the code that we are using on Ubuntu India Forums.

    .fbar {
    background:#fff url("images/buttonbar.gif") top left repeat-x;
    border: 1px solid #aaa;
    border-bottom:none;
    height:26px;
    left: 5%;
    bottom: 0;
    position: fixed;
    width:90%;
    z-index:5;
    }

    If you wanna know something else please let me know I will paste it here. Cheers!

    #77834

    In reply to: I want hide tags

    Read this: https://bbpress.org/documentation/themes/

    See how in step 1 it says to make sure you have a my-templates folder?

    You’ll be putting style.css in /public_html/forum/my-templates/NEWTEMPLATE/

    With a header in style.css like this:

    /*
    Theme Name: The name of your cool new theme.
    Theme URI: Your theme's url. Maybe it's the blog post you wrote about it.
    Description: Describe your theme here. You can be nice and say something like "Blues and Greens in a two-column format" or enigmatic and say "The river here is only waist deep".
    Version: Always number your releases. Please only use numbers and decimal points (yes, we broke our own rule).
    Author: Author of the original theme,
    Author URI: and his or her url.
    Ported By: Name of the person who ported the theme to bbPress (if applicable),
    Porter URI: and his or her url.
    */

    Under that you’ll put your custom CSS like

    topic-tags { display: none; }

    post-form-tags-container { display: none; }

    #77943

    In reply to: Edit register.php

    Why not just redirect any calls to register.php to your WordPress site via .htaccess?

    Redirect 301 /forums/register.php http://paperviewzine.com/wp-login.php?action=register
    Redirect 301 /forums/bb-reset-password.php http://paperviewzine.com/wp-login.php?action=lostpassword

    #76826
    Arturo
    Participant

    the login bar is very cool, is possible share the code? thanks

    #31472

    Topic: Edit register.php

    in forum Themes
    driz
    Member

    I’m trying to edit register.php in my template file so that it will use my WordPress one instead, this is the code I have so far, but it doesn’t work, any help thanks.

    <?php if ( !bb_is_user_logged_in() ) { ?>

    <?php header("Location: http://paperviewzine.com/wp-login.php?act=register"); ?>

    <?php } else { ?>

    <?php header("Location: http://paperviewzine.com/forums/"); ?>

    <?php }; ?>

    #77864

    FYI, use the backtick (see the note below the post message box) to post code.

    And … as I predicted, I can’t see if you have a blank line after your ?> :/

    #77862

    You can try, but even if you did, I’m pretty sure I’d never see if there were blank lines or extra lines below and above, would I? That’s the bi**h about debugging this :/

    The only ticket on this even says blank lines are the cause: https://trac.bbpress.org/ticket/815

    #77860

    In WordPress that error is almost always caused by spaces or blank extra lines in your config file.

    http://www.hongkiat.com/blog/wordpress-error-warning-cannot-modify-header-information/

    The same is, generally, true of bbPress. Please read the link above to make sure that when we talk about spaces, we’re both talking about the same thing :)

    #76812

    In reply to: Latest Discussions

    hpguru
    Member

    Yes. :)

    #56573
    deadlyhifi
    Participant

    Not sure about that since I don’t have any sub forums.

    Have you tried adding to $exclude_forums? Like this $exclude_forums=array ("3", "4","6");?

    #77931
    richcon
    Member

    PS: global variables are the spawn of Satan. :)

    #77574
    vlovers
    Member

    @ chrishjaer, here is the link to code on paste bin > http://pastebin.com/m3cb3a4a0 ….. waiting for your reply

    here is the site in question: http://www.waapsols.com

    Its running Buddypress.

    These are the steps i followed to integrate BB and BP… http://buddypress.org/forums/topic/bp-103-and-bbpress-which-version-plugins-cookies#post-20006

    WPMU, BP, and BB is working good. But I just can’t get the logins to work, I mean when I login into WPMU, I am not automatically logged into BBPress Forum.

    I am guessing thats the reason why in my BuddyPress, the forum is working fine, but who ever posts, there is no gravtar or name is seen :(

    Can someone help, what might have gone wrong.?

    Gautam
    Member

    I have seen many people asking that tags are not getting deleted in bbPress 1.0 (Even I faced the same problem, but it was working in the default theme). So I just thought of writing a solution for it.

    Open the topic-tags.php of your theme.

    You would find something like this:

    <?php if ( $public_tags ) : ?>
    <div id="othertags">
    <ul id="yourtaglist">
    <?php foreach ( $public_tags as $tag ) : ?>
    <li id="tag-<?php echo $tag->tag_id; ?>_<?php echo $tag->user_id; ?>">
    <a href="<?php bb_tag_link(); ?>" rel="tag"><?php bb_tag_name(); ?></a> <?php $tags = bb_get_tag_remove_link (); if ($tags) echo '<small>'.$tags.'</small>'; ?>
    </li>
    <?php endforeach; ?>
    </ul>
    </div>

    Replace it with:

    <?php if ( bb_get_topic_tags() ) : ?>
    <?php bb_list_tags(); ?>

    That’s it!

    You can also view the changes to topic-tags.php of the default theme in the trac:

    http://trac.bbpress.org/changeset?old_path=%2Ftrunk%2Fbb-templates%2Fkakumei%2Ftopic-tags.php&old=940&new_path=%2Ftrunk%2Fbb-templates%2Fkakumei%2Ftopic-tags.php&new=2344

    #77930
    richcon
    Member

    Your hunch was right, it was a template problem. I was using the variable $user in my header.php to refer to the person currently logged in (for my custom user menu). Little did I know that this variable is also used by the profile page to store the person you’re looking at. So I was unintentionally overriding it with my custom code.

    Fixed!

    #76692
    Josh Leuze
    Member

    Hmm, I upgraded to 1.0.2 and the problem has not changed.

    These are the plugins that I am using: Ajaxed Quote, Akismet, Allow Images, BBcode Buttons Toolbar, BBcode Lite, bbPM, bbPress signatures, bbPress Smilies, BBVideo, Post Count Plus, and reCAPTCHA bbPress.

    I don’t see anything that could be causing this though, anyone else have any other ideas?

    #77896

    In reply to: space between posts

    chrishajer
    Participant

    In your template’s topic.php, find the loop. It looks like this:

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
    <li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
    <?php bb_post_template(); ?>
    </li>
    <?php endforeach; ?>

    Right after the closing li, before the endforeach, add this:

    <div style="height:100px;"></div>

    Change 100px to whatever amount of space you want between replies. It will look like this when you are done.

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
    <li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
    <?php bb_post_template(); ?>
    </li>
    <div style="height:100px;"></div>
    <?php endforeach; ?>

    That will put some space between your replies and space the author info down as well, to keep it with the reply.

    #77855
    chrishajer
    Participant

    > Permission denied in /home/michael/public_html/forum/bb-load.php on line 160

    What are the permissions on this file /home/michael/public_html/forum/bb-config.php/ Should be 0644 or something like this -rw-r--r-- depending on how you can look at the permissions.

    That’s read and write for the owner, read for anyone else. You’re getting a permission denied error, which means the file is there, but the process can’t read it.

    Gautam
    Member

    I just made the Plugin Browser for bbPress By Sam Bauers compatible with bbPress 1.0 & later :-)

    It now correctly recognizes the current version of the plugin stored on your forums, also tells you to upgrade if necessary, and can uninstall plugins already installed or install which are not installed.

    I have also done the following changes:

    • The directory folder of a plugin need not have pb– in its name, nor have a pb–revision.php
    • GET methods changed to POST.

    Notes:

    • Plugins installed by the previous version of this plugin, cannot be upgraded or uninstalled. You can, however remove pb– from their name via ftp and then upgrade or uninstall.
    • It does not recognize the plugins bundled with bbPress like Akismet, Bozo, etc. (This functionality wasn’t there before too).

    You can download it from here: http://gaut.am/uploads/plugin-browser-for-bbpress.zip

    If you liked it, then you can donate here – http://gaut.am/donate/

    Thanks :)

    #77888
    Jim R
    Participant

    They appear to be all the same. I did set up my bbPress database table prefix as wp_bb_. They are in the same database.

    One thing I wonder about is this:

    define( 'COOKIEHASH', 'd61ff63d6d2f09a423c2332af089b5c8' );
    define( 'COOKIE_DOMAIN', '.hoosierhoopsreport.com' );
    define( 'SITECOOKIEPATH', '/wpm/' );
    define( 'ADMIN_COOKIE_PATH', '/wpm' );
    define( 'COOKIEPATH', '/wpm/' );

    The cookie_domain, it says (dot)hoosierhoopsreport.com. Should the (dot) be there?

    #31462
    Olaf Lederer
    Participant

    Hi,

    I don’t like the standard message send after a new user has registered to my bbpress forum. So I thought about to write an plugin that will send my custom text instead.

    This is what I have:

    function bb_send_pass_cust($user, $pass) {
    $message = __("Your username is: %1$s nYour password is: %2$s nYou can now log in: %3$s nMyCustom text!");

    return bb_mail(
    bb_get_user_email( $user->ID ),
    bb_get_option('name') . ': ' . __('Password'),
    sprintf($message, $user->user_login, $pass, bb_get_uri(null, null, BB_URI_CONTEXT_TEXT))
    );

    }

    remove_action('bb_new_user', 'bb_send_pass');
    add_action('bb_new_user', 'bb_send_pass_cust');

    this code has many issues:

    – it doesn’t remove the action

    – the password is nu available in the custom function

    In the past my functions/plugins never had function arguments, how to use them?

    Thanks for your help!

    #20334
    recronin
    Member

    *note – I’m not trying to integrate bbPress into a WordPress page but rather a static page. I already have the login integration between bb and wp working.

    I’ve been able to “embed” my WordPress posts into a static web page with the help of an online tutorial using PHP includes. Basically, on the page that you want to have WordPress embedded in, you paste:

    <?php require(‘../../../blog/wp-blog-header.php’); ?>

    into the very top of the page above the DTD, and then paste The Loop wherever you want your posts to appear.

    What I’d like to do is the exact same thing except with bbPress. I’ve tried applying the same basic principle as described as above, but am pretty much stuck and can’t get anything except errors to appear.

    Here’s what my code looks like at this point. I’ve used the header file from the kakumei templates folder as that’s the only header file I can find. At the very top above the DTD;

    <?php require(‘../../../forums/bb-templates/kakumei/header.php’); ?>

    Now I’ve searched high and low for anything talking about “The Loop” (or it’s equivalent) in bbPress but have found zip. The closest things I have seen have been inside the bbPress/index.php and forum.php files, which I pasted and tested each separately into the area that I wanted to have the forums appear, but with no positive results.

    If anyone knows how to do this properly I will be grateful.

    Thank you

    Adam Lawton

    *The page where I found the WordPress integration tutorial is:

    http://moshublog.com/2005/07/05/integrate/

Viewing 25 results - 23,976 through 24,000 (of 32,468 total)
Skip to toolbar