Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 5,626 through 5,650 (of 6,788 total)
  • Author
    Search Results
  • Mark
    Member

    Those are warnings, not errors. They are only presented when E_STRICT is on, as the PHP engine can and will disregard them and continue to compile just fine. Without looking into the problem too deep (it’s getting on, and I’m about ready for bed), off the top of my head I would suggest that the deprecated warnings are due to the fact that PHPs handling of OOP has changed mildly between v4 and 5. Objects are now passed by reference by default, whereas in PHP4 they weren’t. Since bbPress is backwards compatible to work on PHP4 (it cuts down on the snarky accusations that one might receive for being version specific), it will return warnings in PHP5 that are just that. Warnings.

    That’s the only real problem too. Turn off E_STRICT and you won’t get the remaining notices. The ‘headers already sent’ errors are due to the fact that you’re getting the deprecated warning (which outputs text to the screen, thus sending headers) before the script has completed its run.

    So… simply put, it can be called stable, as it’s purely your setup that is causing the issue, not bbPress itself.

    #31922
    pigmonkey
    Member

    I would like to make email addresses viewable in member profiles to all of my forum members (but not unregistered viewers). By default, email addresses are only viewable to admins. How can I change this?

    #79908
    gerikg
    Member

    that’s strange I thought by default, people have to register. What version are you using and you have any integration?

    #79907
    chrishajer
    Participant

    By default, non-logged in members cannot post. How is it that they can post in your forum? Are you using a plugin?

    And by ‘make a reply to a post’, what do you mean? That the reply is not threaded or indented, or maybe you mean they’re not able to quote the message they’re replying to?

    Please clarify. Thanks.

    #79828

    “Currently, plug-ins for both WordPress and bbPress, WordPress’ forum software solution are available.”

    *sigh*

    Apparently the bbPress plugin is still in alpha, as of about 10 days ago:

    http://forum.gigya.com/forum/Default.aspx?g=posts&m=1619

    The WordPress one is released though, so maybe it’d be fine under a WP/bbP integration setup

    #31889
    Gautam
    Member

    I have developed an ajaxed chat plugin, which uses phpfreechat.net script. That script has multiple themes, multiple languages, and multiple features.

    There is also a settings page in which you can save various parameters/config for the script.

    There can be 2 types of storages – mysql & file, default is mysql, it automatically uses the bbPress db you are using and makes tableprefixajaxed_chat table.

    You can see the various commands that can be used in chat, and the FAQ at phpfreechat.net

    There are 2 ways you can call the chat:

    http://yoursite.com/?chat

    or by placing this code anywhere in your template:

    <?php if (function_exists('ajaxed_chat_load')) ajaxed_chat_load(); ?>

    Live Demo (At my test forums): http://forum.gaut.am/ (inside template) or http://forum.gaut.am/?chat (full screen)

    Download Link – http://gaut.am/uploads/ajaxed-chat-1.0-beta.zip

    Note – It is beta version, not a release (for now)

    I still need to work on the admin settings page, but still its not too bad for now.

    Comments, feedback & suggestions are welcomed!

    #31888

    Topic: Changing font

    in forum Themes
    Eleeist
    Member

    By default the text in the text box when you are writing a message is the Courier New. How can I change it?

    #79689
    gerikg
    Member

    I had a problem with a css file that wouldn’t import a php file. (@import url(css/loader.php);)

    look at the main css file and see if there is any importing involved.

    #79425

    All my code is written against 1.0.2 SVN, so it’s not 0.9-only :) and yeah, $allowed_tags is meant to be changed and then back again, not the cleanest way of doing things, but it should work. The copy that’s working live at the moment is below (I just realised I forgot to turn on the validation code too, oops):

    <?php
    /*
    Plugin Name: Restrict Topic Tags
    Description: Restricts tags to a pre-defined list.
    Author: Kawauso
    Version: 0.1.1
    */

    $allowed_tags = array(
    'test4',
    'test 3',
    'test3',
    'test2',
    );

    function restrict_topic_tags_form( $args = null )
    {
    $defaults = array( 'topic' => 0, 'submit' => __('Add »'), 'list_id' => 'tags-list' );
    $args = wp_parse_args( $args, $defaults );
    extract( $args, EXTR_SKIP );

    if ( !$topic = get_topic( get_topic_id( $topic ) ) ) {
    return false;
    }

    if ( !bb_current_user_can( 'edit_tag_by_on', bb_get_current_user_info( 'id' ), $topic->topic_id ) ) {
    return false;
    }

    global $page, $allowed_tags;

    $current_tags = bb_get_topic_tags( $topic->topic_id );
    $allowed_tags = array_flip( $allowed_tags ); // CHANGE PLACES!
    foreach( $current_tags as $tag ) {
    if( isset( $allowed_tags[ $tag->name ] ) )
    unset( $allowed_tags[ $tag->name ] );
    }
    $allowed_tags = array_flip( $allowed_tags ); // CHANGE PLACES!

    if( is_array( $allowed_tags ) && !empty( $allowed_tags ) ) { ?>
    <form id="tag-form" method="post" action="<?php bb_uri('tag-add.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN); ?>" class="add:<?php echo esc_attr( $list_id ); ?>:">
    <p>
    <select name="tag" id="tag">
    <option value=""><?php _e("Select a tag")?></option>
    <?php foreach( $allowed_tags as $tag ) { ?>
    <option value="<?php echo $tag?>"><?php echo $tag?></option>
    <?php } ?>
    </select>
    <input type="hidden" name="id" value="<?php echo $topic->topic_id; ?>" />
    <input type="hidden" name="page" value="<?php echo $page; ?>" />
    <?php bb_nonce_field( 'add-tag_' . $topic->topic_id ); ?>
    <input type="submit" name="submit" id="tagformsub" value="<?php echo esc_attr( $submit ); ?>" />
    </p>
    </form>
    <?php
    } // End if

    } // End function

    function restrict_topic_tags( $tag ) {

    global $allowed_tags;

    if( !in_array( $tag, $allowed_tags ) )
    return array();

    return array($tag);
    }

    add_filter( 'bb_add_topic_tags', 'restrict_topic_tags' );

    #79687
    RahimTSNE
    Member

    after giving 755 permission the guangzhou started working but i want to use inove instead. Suggest me the solution.

    thanks

    joseffb
    Member

    I’m not able to get WPMU 2.8.4 and BP 1 to SSO at all. I tried and can’t get it to work any help would be grateful.

    I have the multi-domain plugin setup and also have the bbpress-integrate plugin in the “plugins” directory.

    WP-Config.php

    /**

    * The base configurations of the WordPress.

    *

    **************************************************************************

    * Do not try to create this file manually. Read the README.txt and run the

    * web installer.

    **************************************************************************

    *

    * This file has the following configurations: MySQL settings, Table Prefix,

    * Secret Keys, WordPress Language, and ABSPATH.

    *

    * This file is used by the wp-config.php creation script during the

    * installation.

    *

    * @package WordPress

    */

    // ** MySQL settings – You can get this info from your web host ** //

    /** The name of the database for WordPress */

    Removed for Security

    /** The Database Collate type. Don’t change this if in doubt. */

    define(‘DB_COLLATE’, ”);

    define(‘VHOST’, ‘yes’);

    $base = ‘/’;

    define(‘DOMAIN_CURRENT_SITE’, ‘thisissite1.com’ );

    define(‘PATH_CURRENT_SITE’, ‘/’ );

    define(‘SITE_ID_CURRENT_SITE’, 1);

    define(‘BLOGID_CURRENT_SITE’, ‘1’ );

    /**#@+

    * Authentication Unique Keys.

    *

    * Change these to different unique phrases!

    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}

    *

    * @since 2.6.0

    */

    define( ‘NONCE_KEY’, ‘&^YU8obCOZmNz)#udi$ghSLF’ );

    define( ‘AUTH_KEY’, ‘t0d87hpJOq!DBA#gp7VZ#dez’ );

    define( ‘AUTH_SALT’, ‘CdaJ42PU3iCsjehU(*h8V#6k’ );

    define( ‘LOGGED_IN_KEY’, ‘LihT(0OQBtTkw82^c0jmT4ub’ );

    define( ‘LOGGED_IN_SALT’, ‘NinP#50Uq(KU#LQ5h64on9v*’ );

    define( ‘SECURE_AUTH_KEY’, ‘UYi3SxHzUXE48E!vvggXv&s8’ );

    define( ‘SECURE_AUTH_SALT’, ‘c@p6I*b*hvcr8F^SMfr7JG^!’ );

    /**bbpress integration **/

    define(‘USER_COOKIE’, ‘wordpressuser’);

    define(‘PASS_COOKIE’, ‘wordpresspass’);

    define(‘COOKIEPATH’, $base);

    define(‘SITECOOKIEPATH’, ‘/’);

    define(‘COOKIE_DOMAIN’, ‘.thisissite2.com’); // same as bbPress

    /**#@-*/

    /**

    * WordPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $table_prefix = ‘wp_’;

    /**

    * WordPress Localized Language, defaults to English.

    *

    * Change this to localize WordPress. A corresponding MO file for the chosen

    * language must be installed to wp-content/languages. For example, install

    * de.mo to wp-content/languages and set WPLANG to ‘de’ to enable German

    * language support.

    */

    define (‘WPLANG’, ”);

    // double check $base

    if( $base == ‘BASE’ )

    die( ‘Problem in wp-config.php – $base is set to BASE when it should be the path like “/” or “/blogs/”! Please fix it!’ );

    // uncomment this to enable wp-content/sunrise.php support

    //define( ‘SUNRISE’, ‘on’ );

    // uncomment to move wp-content/blogs.dir to another relative path

    // remember to change WP_CONTENT too.

    // define( “UPLOADBLOGSDIR”, “fileserver” );

    // If VHOST is ‘yes’ uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)

    // For example, the browser will redirect to http://examples.com/ for the following: define( ‘NOBLOGREDIRECT’, ‘http://example.com/&#8217; );

    // Set this value to %siteurl% to redirect to the root of the site

    // define( ‘NOBLOGREDIRECT’, ” );

    // On a directory based install you must use the theme 404 handler.

    // Location of mu-plugins

    // define( ‘WPMU_PLUGIN_DIR’, ” );

    // define( ‘WPMU_PLUGIN_URL’, ” );

    // define( ‘MUPLUGINDIR’, ‘wp-content/mu-plugins’ );

    // Uncomment to disable the site admin bar

    //define( ‘NOADMINBAR’, 1 );

    define( “WP_USE_MULTIPLE_DB”, false );

    /* That’s all, stop editing! Happy blogging. */

    /** WordPress absolute path to the WordPress directory. */

    if ( !defined(‘ABSPATH’) )

    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */

    require_once(ABSPATH . ‘wp-settings.php’);

    /**bbpress integration **/


    bb-config.php

    <?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 */

    Removed for security

    /**#@+

    * 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}

    *

    * Change these to different unique phrases!

    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}

    *

    * @since 2.6.0

    */

    define( ‘BB_NONCE_KEY’, ‘&^YU8obCOZmNz)#udi$ghSLF’ );

    define( ‘BB_AUTH_KEY’, ‘t0d87hpJOq!DBA#gp7VZ#dez’ );

    define( ‘BB_AUTH_SALT’, ‘CdaJ42PU3iCsjehU(*h8V#6k’ );

    define( ‘BB_LOGGED_IN_KEY’, ‘LihT(0OQBtTkw82^c0jmT4ub’ );

    define( ‘BB_LOGGED_IN_SALT’, ‘NinP#50Uq(KU#LQ5h64on9v*’ );

    define( ‘BB_SECURE_AUTH_KEY’, ‘UYi3SxHzUXE48E!vvggXv&s8’ );

    define( ‘BB_SECURE_AUTH_SALT’, ‘c@p6I*b*hvcr8F^SMfr7JG^!’ );

    $bb->wp_table_prefix = ‘wp_’;

    $bb->wp_home = ‘http://thisissite2.com/&#8217;;

    $bb->wp_siteurl = ‘http://thisissite2.com/&#8217;;

    // Integrating with mu

    $bb->cookiepath = ‘/’;

    $bb->cookiedomain = ‘.thisissite2.com’; // leading . allows subdomain sharing

    $bb->usercookie = ‘wordpressuser’; // WPMU doesn’t hash cookies

    $bb->passcookie = ‘wordpresspass’; // WPMU doesn’t hash cookies

    // Load WordPress so we can use the same templates.

    define(‘WP_BB’, ‘true’);

    require_once(‘/home/content/82/4558682/html/wp-blog-header.php’);

    /**#@-*/

    /**

    * 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’, ” );

    #79461

    function do_action($tag, $arg = '')

    do_action() has an arguments variable as it’s 2nd argument, sorry for not being clearer. That’s passed when it runs an action function and if nothing is passed, it defaults to an empty string.

    $bb_table_prefix would be the prefix for the bbPress tables though, wouldn’t it? In the case of a WP/bbP integration, the bbPress user data is stored in the WordPress user tables, so those aren’t under the same prefix as the bbPress tables. Unless it changes automatically for WordPress user tables somehow?

    #31865
    chandersbs
    Member

    By default the reply form/box only shows on the last page of a topic, if it has more than one page. If a topic has 5 pages, and you click reply on page 2, it will take u the reply form, which is located at page 5.

    I did a hack in a file to make it show on all pages.

    Open functions.bb-template.php and find

    $defaults = array(

    ‘h2’ => ”,

    ‘last_page_only’ => true

    Replace this with

    $defaults = array(

    ‘h2’ => ”,

    ‘last_page_only’ => false

    I’m confident that is not the best way, if someone has a better way, please leave a reply, this method is however working.

    #79685
    johnhiler
    Member

    What about the theme folders inside of my-templates… are those also 755?

    #79684
    RahimTSNE
    Member

    I gave permission 755 to both directories (see http://i36.tinypic.com/104htg8.jpg) but still not working.

    #79683

    fix file permissions of my-templates & my-plugins folder – http://blog.ashfame.com/2009/09/fix-my-templates-my-plugins-folder-not-working-bbpress/

    #31864
    RahimTSNE
    Member

    Recently i launched my forum at http://explore.maheroo.com. I am facing problem using theme rather than default.I uploaded four theme in my-templates directory created by the bbpress installer (latest version). But when i switch to the any of the templates, none of them is working. I added a link upward to visit the site looking for the problem. could anybody help me out of this. at present i activated peacemaker and remaining three are inove, guangzhou and WPmimic.

    thanks

    #79670
    johnhiler
    Member

    I don’t know the default number of tags… should be straightforward to test.

    You might want to try this hot tags plugin, which is much more powerful/flexible than the standard bbpress hot tag calls…

    https://bbpress.org/plugins/topic/hot-tags-plus/

    #79669
    InvTrdr
    Member

    Just an ad on TV. Saw the post. How many tags are posted by default? Or without the code all tags show up by default.

    Thanks.

    #79653
    InvTrdr
    Member

    Thanks. It worked. I thought a sticky would be at the top by default.

    #79420
    <?php
    /*
    Plugin Name: Restrict Topic Tags
    Description: Restricts tags to a pre-defined list.
    Author: Kawauso
    Version: 0.1
    */

    $allowed_tags = array(
    'test',
    'test2',
    );

    function restrict_topic_tags_form( $args = null )
    {
    $defaults = array( 'topic' => 0, 'submit' => __('Add »'), 'list_id' => 'tags-list' );
    $args = wp_parse_args( $args, $defaults );
    extract( $args, EXTR_SKIP );

    if ( !$topic = get_topic( get_topic_id( $topic ) ) ) {
    return false;
    }

    if ( !bb_current_user_can( 'edit_tag_by_on', bb_get_current_user_info( 'id' ), $topic->topic_id ) ) {
    return false;
    }

    global $page, $allowed_tags;

    $current_tags = bb_get_topic_tags( $topic->topic_id );
    foreach ($current_tags as $tag_key => $tag ) {
    if( in_array( $tag->name, $allowed_tags ) )
    unset( $allowed_tags[ $tag_key ] );
    }

    if( is_array( $allowed_tags ) && !empty( $allowed_tags ) ) { ?>
    <form id="tag-form" method="post" action="<?php bb_uri('tag-add.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN); ?>" class="add:<?php echo esc_attr( $list_id ); ?>:">
    <p>
    <select name="tag" id="tag">
    <option value=""><?php _e("Select a tag")?></option>
    <?php foreach( $allowed_tags as $tag ) { ?>
    <option value="<?php echo $tag?>"><?php echo $tag?></option>
    <?php } ?>
    </select>
    <input type="hidden" name="id" value="<?php echo $topic->topic_id; ?>" />
    <input type="hidden" name="page" value="<?php echo $page; ?>" />
    <?php bb_nonce_field( 'add-tag_' . $topic->topic_id ); ?>
    <input type="submit" name="submit" id="tagformsub" value="<?php echo esc_attr( $submit ); ?>" />
    </p>
    </form>
    <?php
    } // End if

    } // End function

    function restrict_topic_tags( $tag ) {

    global $allowed_tags;

    // if( !in_array( $tag, $allowed_tags ) )
    // return array();

    return array($tag);
    }

    add_filter( 'bb_add_topic_tags', 'restrict_topic_tags' );

    Then in your theme’s topic-tags.php, change <?php tag_form(); ?> to:

    <?php
    if( function_exists( 'restrict_topic_tags_form' ) )
    restrict_topic_tags_form();
    else
    tag_form();
    ?>

    #31856

    Topic: Admin Link in Sidebar

    in forum Themes
    mantraofdoom
    Member

    Hi everyone, I just started a site that uses WP and BBP together, and aside from a few outstanding issues, things are working out nicely.

    I built a theme for the forum that matches the WP theme, and it has a sidebar. When the user is logged in, it shows Welcome [username] and shows the avatar, a link to edit profile, my favorites, and log out.

    How can I have if the keymaster/admin/mod is logged in, a link to the dashboard? I tried some code from the default template, but nothing really seems to give me a direct link to admin. Is there a templates tag list for bbpress like the one for wordpress?

    #31855

    My case is a little different then the search results I had, so a new topic.

    As soon as I change my permalinks for bbPress, I get 404 errors for bbPress (even for bb-admin) so I lost control of everything and i had to manually delete the .htaccess file

    Now when I switch to the 2nd permalink option then the forum loads up, admin panel is accessible too but any topic page or forum page gives a 404. And now when I switch back to none settings of the permalink everything works fine.

    I delete the WP .htaccess too but it looks like that its permalink are working without any .htaccess file

    I am a little lost here to what could be the problem.

    Also when I delete the .htaccess file, the admin panel keeps redirecting me to the front page until I log out and login again from bbPress side.

    I am stuck with the default permalinks option now.

    #79459

    $limit was passed something which wasn’t numeric because… I guess that’s what do_action() does when it doesn’t have any arguments? Doing a var_dump(), it appears to be an empty string, so I guess it just passed the default value of the argument variable.

    I found it because I noticed the SQL query wasn’t valid when it was run in phpMyAdmin and then noticed that there wasn’t anything after LIMIT.

    I don’t know if there’s any performance gain, but it’s how bbPress code is written iirc and in the case of calling the user table, it’s essential when you’re working with a WP/bbP integration (as the table prefix is different).

    So mostly it allows for the table names to be entirely variable, which is probably better practice in case a plugin changes them.

    #78897
    Justin Tadlock
    Participant

    I was trying to figure out where I downloaded this plugin, but the author’s site isn’t really up at the moment.

    http://justintadlock.com/blog/wp-content/uploads/2009/09/inactivetomember.zip

    What this does is check if the current user (once logged in) has a role. If he doesn’t, it gives them the default bbPress role.

    If anyone can find the original download link, mods, feel free to remove the link to my zip file.

Viewing 25 results - 5,626 through 5,650 (of 6,788 total)
Skip to toolbar