Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 5,651 through 5,675 (of 6,794 total)
  • Author
    Search Results
  • #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.

    #79556
    angelamaria
    Member

    I said change the database name since I’m changing it from the default entry in **-config-sample.php to the same database name as on my wp-config.php :)

    I found the error — basically I had copy-pasted the whole database name line, quite unthinkingly; hence the constant was also renamed. Fixed now :D

    #79539
    KillerSneak
    Member

    would be the best way to take the default WP theme -> and add the BBpress needed functions into it? (and add a few files from the BBpress needed theme) ?

    This is the only bad thing about Wp and BBp integration isn’t as smooth as it should be, and the DEV should have had Wp / BBp compatibility #1 .. At the moment they depend to much on community work.

    #79393
    infected
    Participant

    @mwaterous: Sorry, now i know what you mean. Yes, you´re right. This is really not what i want to do.

    @all: I tested the above mentioned fix once again with the default theme and got it working after changing the css file too… But as mwaterous said: this fix is not removing the brackets. It just fixes the line break between the brackets. I´d like to completely remove the brackets. Where they´re generated?

    #79499

    Replace the code from the default theme in your code and then try.

    #79489
    frasermassey
    Member

    By the way, have tried switching to the default theme which made no difference.

    kirpiit
    Member

    The default Kakumei theme shows two variables in the user section of every post, at left.

    You can see them both here as well, in this very post.

    The first one is defined in the profile page as Display name as and links to whatever appears in the Website field.

    The second one is defined in the profile page as User Type (which most often defaults to Member), links to the Profile page of the specific user, and could be changed by the Custom Title field.

    How would it be possible to drop the User Type and just keep the Display name as linking to the user Profile page?

    #31807

    I wrote a plugin which will show some data by a mysql query and I am doing it using $bbdb and I hooked it to the post_post_form but the problem is that the variable intended to store the query result is empty.

    However if I manually call the function in the template it works fine.

    I am using the default theme. What could be the problem?

    #79343

    In reply to: Nofollow

    Mark
    Member

    If your theme doesn’t already have a functions.php, you can create one and add that code to it – it will automatically be found and run by bbPress, and it’s a lot safer than adding it to the core code (next time you upgrade, it will overwrite).

    1. bbPress doesn’t have signatures by default, so I’m guessing you’re using a plugin for this? If you are, hopefully the designer has added a filter which you can hook into, but we’d have to take a look at the specific plugin you’re using.

    2. You should have a style.css file in your bb-templates/yourthemename/ directory. Find that file, and do a search for ‘textarea’. It should possibly be under ‘.postform textarea’ to be more specific. Look and see if there’s a font-size attribute there, and up the size.

    #55896

    Hey, anybody still using that plugin? I mean – anybody with a bbPress 0.9 install…

    Because I’d like to know if someone can help me with a little improvement. The plugin works great except for that it shows all the pages for a topic. And certain topics have more that 20-30 pages!

    So I wonder if it is not too hard to make that plugin display links only to the first page and the last 4-5 pages? Just like the default in-topic pagination.

    I wonder if it is possible to port that functionality directly form bbPress 1.0?

    Thanks

    #31791

    I installed tinymce using their wiki defaults

    however, now on my page when you go to post a topic, it has one textarea that is normal (as if I never installed tinymce)…and then a textarea below it that is for tinymce (all of the bolds, italics, etc work for it)

    how do I get rid of the top textarea?? thanks

    #31776
    nataliya1977
    Member

    Hello,

    I created a forum on bbpress. As default I selected theme Kakumei. I want to change a look of my forum and decided to find an other theme. I found a theme Crystal. I downloaded this theme from site mybbpress (there is redirection on 33 rockers).

    During installation I followed instructions. I read a file readme.txt and put the content of directory Crystal in myforum.com/bb-templates. But after installation I couldn’t find this theme in my Admin: there wasn’t in Appearance, plugins and other places. I read instructions on bbpress.org and put directory Crystal in myforum.org/my-templates too. But the result was same. I can’t find theme on admin of my forum.

    What did I do wrong?

    #31771
    InvTrdr
    Member

    If I change the default theme in bbPress from Kakumei to a different one I lose the image uploading ability even though it is an active plugin and works on Kakumei.

    Thank you.

    #31770
    InvTrdr
    Member

    If I change the default theme in bbPress from Kakumei to a different one I lose the image uploading ability even though it is an active plugin and works on Kakumei.

    Thank you.

    #31768
    InvTrdr
    Member

    How is a “Sticky” post made in bbPress? I am using Kakumei, the default template.

    Thanks.

    #79237

    In reply to: Link to Home Page.

    InvTrdr
    Member

    I am using the default K theme in bbPress.

    Thank you.

    #79137
    InvTrdr
    Member

    The error message was “DB Error: cannot find”. Figured out that for some reason the database name filled in during step1 was not caught by the bbpress-config.php file as you can see in the code above. The BBDB_NAME has been left “bbpress” as in default. Changed it in the file and it worked. Now onto Step2.

    Thanks.

    #79161
    crguy
    Member

    Fixed it.

    I logged into phpMyAdmin

    Default Database Setting on My Server:

    MySQL connection collation: utf8_unicode_ci

    I changed it to utf8_general_ci and deleted the bb_ tables in the database and removed the bb-config.php file and went through installation again.

    All appears to be good now.

    #79135
    InvTrdr
    Member

    Below is the content of my config.php file. I have X out the important details.

    <?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’, ‘bbPress’ );

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘XXXXXXXX’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘XXXXXXXX’ );

    /** MySQL hostname */

    define( ‘BBDB_HOST’, ‘XXXXXXXX.db.4779279.hostedresource.com’ );

    /** 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.wXXXXXXXX.org/secret-XXX/XXX/XXXXXXX/ WordPress.org secret-key service}

    *

    * @since 1.0

    */

    define( ‘BB_AUTH_KEY’, ‘Vj-3}{i=juL$9u<4CG3S.V[XXXXXXX(]JYa>}b1PyZ$/s-|fs6b1b^HXXXXX186:’ );

    define( ‘BB_SECURE_AUTH_KEY’, ‘;/ML=-Xx(}/:J@VNr.$|zXXXXXXXX)B>dGTr+3NETTQAQ/ S&T4e}{,&OOjA|bxj’ );

    define( ‘BB_LOGGED_IN_KEY’, ‘V4L?XXXXXXXX$|#9E2`72+&?kMq(n~[3p54XzX+L|7r-6 w0{N-,QiWn[;Y$FUtN’ );

    define( ‘BB_NONCE_KEY’, ‘c]rdQ[|fn$_S}z~RVX5fR6~Rg$0XXXXXXXX}6{$vDxC>WS~4/+Ft+Ea.|4:3l>JU’ );

    /**#@-*/

    /**

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

    ?>

    #79117

    In reply to: Change my default url

    Olaf Lederer
    Participant

    The first “forum” is the forum’s folder and the second is used to identity a (sub)forum.

    The same way like a tag or topic is identified. You can change the forum’s folder name, that’s all.

    the structure make sense:

    https://bbpress.org/forums/ (forums home)

    https://bbpress.org/forums/forum/troubleshooting (the troubleshooting forum)

Viewing 25 results - 5,651 through 5,675 (of 6,794 total)
Skip to toolbar