Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,251 through 32,275 (of 32,313 total)
  • Author
    Search Results
  • #50061
    mackem2
    Member

    Thanks, I’ve done most of it now and my forum is working. The site is just going up (i.e. not ready), but the forum skin can be seen at http://www.retrographer.com/forum/

    The software is most excellent :)

    I think it’s a bug with your style sheet, but if you visit you might notice the hot tags go past the main window bottom. This is because the hot tags are a float and so have no content. It either needs a clear:both or a overflow:hidden at the end of the floated tags.

    #49851
    #50060

    In future versions of bbPress, you will be able to do this with a short plugin.

    As for the [Closed] issue, you can solve that be removing the filter and adding your own (or using custom templates).

    remove_filter('topic_title', 'closed_title', 30);

    #49926

    In reply to: En español

    xabel
    Member

    thank you ;-)

    #719
    mackem
    Member

    Hello,

    The title says it all really. Is there an option to do this? I couldn’t find one. Sometimes it’s useful to limit who can post to what.

    This is what I did, I don’t know if it’s right:

    1. added a column ‘closedforpost’ to the bb_forums column

    2. updated bb-includestemplate-functions.php:86: with the code

    function post_form( $h2 = '' ) {

    global $bb_current_user, $bb, $page, $topic, $forum;

    if($forum->closedforpost==1) return;

    3. updated bb-includestemplate-functions.php:756:

    function new_topic( $text = false ) {

    global $bb_current_user, $bb, $page, $topic, $forum;

    if($forum->closedforpost==1) return;

    While I was there, it seemed wrong to put in big writing [Closed] before every topic and forum that was flagged as closed when all I wanted to do was lock it, but there was no nice code to do this so I resorted to simply changing the closed_title() function to simply not show anything! I guess this is a suggestion rather than a plea for help.

    Thanks.

    #49748

    In reply to: Using WP template tags

    Finally I use: require_once(dirname(dirname(__FILE__)) . '/wp-blog-header.php'); because some functions don’t work properly with ´/wp-config.php´.

    Thanks anyway.

    #49908

    In reply to: changing user type

    anchel
    Member

    Found the bug …. I’ve editted the config for using a language file like define ('WPLANG', 'nl_NL'); after deleting the line I can change the user type again.

    #49846
    cmcraft
    Member

    I tried that and it threw back a serious error. I might be a noob, but is there more defining that needs to be done? Inserting the code towards the bottom didn’t work. My installation works ok, but it doesn’t load wordpress at all, and if I uncomment the wp_bb line, it errors up as well.

    Help!

    #49923

    In reply to: Plugins Loaded When?

    The plugins are loaded everytime bbPress is loaded.

    If you’re don’t want any code from your plugin to execute unless you’re in the admin, you could put something like this hack at the top of your “admin-only” plugins:

    if ( false === strpos($_SERVER['REQUEST_URI'], '/bb-admin/') )

    return;

    But just loading the plugin file shouldn’t add too much overhead. You could do something a little nicer, if you weren’t worried about loading your plugin file:

    function my_admin_only() {

    if ( false === strpos($_SERVER['REQUEST_URI'], '/bb-admin/') )

    return;

    else load_my_plugin_stuff();

    }

    add_action( 'init', 'my_admin_only' );

    #49920

    Create a directory called my-plugins/ in bbPress’ root directory.

    Into that add a new file called mod-write-topics.php with the following code.

    <?php

    function mod_write_topics() {

    global $bb_roles;

    $bb_roles->role_objects['member']->remove_cap( 'write_topics' );

    }

    add_action( 'bb_got_roles', 'mod_write_topics' );

    ?>

    I think that will work, but I haven’t tested it.

    #706

    Topic: Plugins Loaded When?

    in forum Plugins
    adergaard
    Member

    I’ve created a couple of plugins for the admin side, are those loaded with each request that hits the bb-load.php?

    I fear it is and have *ugly code ahead* hijacked the admin.php and added a require-instruction there for my adminplugins since I don’t want them to drain resources on the front-end so to speak.

    Is this at all a relevant fear or is the reading and attaching to the event-loop so minimal in resource demand that it really doesn’t matter if it’s loaded each time?

    #49903

    In reply to: err ERRR install probs

    silent1643
    Member

    err now i can’t login with the admin u/p bbpress gave me :(

    #49591

    In reply to: Emoticons For bbPress?

    bb-emotions plugin

    A friend of mine, Japanese bbPress user enjoy hacking plugin WP Grins port to bbPress.

    So, he wants to add this bb-emotion here, but he’s not good at english, then I translate he says.

    = = = =

    ziped code:

    http://prdownloads.sourceforge.jp/wppluginsj/22267/bbEmoticons-0.72.zip

    1. put bb-emotions.php to /my-plugins/ ;
    2. put smilies folder into /bb-images/;
    3. add <?php bb_do_action('bb_grins'); ?> to above the textarea in the each theme (edit-form.php, post-form.php);

    That’s all, and does work!

    I’m so happy if this will be your help :)

    = = = = =

    Thank you.

    #49842
    mozey
    Member

    GOT IT, i had to copy my .httaccess file to bb-template/ as well. worked like a charm. LOOKS NICE! :)

    #49709

    In reply to: Can’t Login!

    garymill,

    Login problem:

    wp_home and wp_siturl will only work if the url for your forums is a “subdirectory” of the url for your WordPress blog. If that is not the case, you’ll need the more fine-grained control mentioned in the Cookie integration with WordPress Documentation

    Installation problem:

    on Installation, bbPress looks to see if there are any keymasters in the User Tables already. You’ll need to go to your usermeta table and delete the entry:

    meta_key = $bb_table_prefix . ‘capabilities’ (example: ‘bb_capablities’)

    meta_value = a:1:{s:9:”keymaster”;b:1;}

    This part of the installation will have to change in the next version for several reasons. The difficulties you’re seeing is one of them.

    #49845

    No – WP_BB only tells bbPress that you will be loading WordPress so that it knows not to try to load thingsn which will conflict with WordPress.

    If bbPress is installed in a subdirectory of WordPress, put this in bbPress’ config,php

    require_once(dirname(dirname(__FILE__)) . '/wp-config.php');

    #49829

    In reply to: Comments in WordPress

    mozey
    Member

    i would guess that we need to:

    1: Add a little code snippit inside of wp-post.php that creates a new forum SOMEHOW identified by the post ID.

    2: in your wp-single.php include that forum instead of your comments.

    3: SOmehow replicate/redirect comments/forum for RSS reasons and other ones that i do not understand! :) sloppy i know!

    #49828

    In reply to: install sql script

    evelardiez,

    bbPress comes with such a script. Download the software, fill in the details of you database connection in config.php, and when you first browse to your forum’s URL, you’ll be taken through the installation procedure.

    See https://bbpress.org/documentation/installation/

    #49463

    Yea, I agree with lstelie.

    WP use subversion to manage each localized file:

    https://codex.wordpress.org/WordPress_in_Your_Language

    http://svn.automattic.com/wordpress-i18n/

    How do bbPress’ developers think about managing localized file?

    #49589

    In reply to: Emoticons For bbPress?

    ttech
    Member

    I tried the same code as above but it did not work for me. I’m not sure if htere is a get_settings in BBpress but, you can use $_SERVER;

    #49672
    bryanveloso
    Member

    Also when bbPress has a true template system, I’ll be making the default skin sort of like Andy’s Sandbox theme, so you won’t have to try to get around my CSS if you don’t want to. :)

    #690
    chanzero
    Member

    i saw in the “how to delete a forum?” thread that it has to be done from the backed db, is a post similar? i had expected to see this option in the admin, or an option on the post itself, but i’m not sure if this option isn’t available, or if something is wrong with my install

    thanks

    and let me just add i am so happy bbpress is ready to roll :)

    #49703

    In reply to: Can’t Login!

    astereo
    Member

    Solved my problem. It was coming from

    #

    $bb->wp_table_prefix = false; // 'wp_'; // WordPress table prefix.

    #

    $bb->wp_home = false; // WordPress - Options->General: Blog address (URL) // No trailing slash

    #

    $bb->wp_siteurl = false; // WordPress - Options->General: WordPress address (URL) // No trailing slash

    I had set the urls only to domain.com/directory, when I added the http and www it worked fine.

    #49787

    There is currently no way to delete a forum without deleting it directly from the database (that is, using something like PHPMyAdmin).

    Tags can be removed from a particular topic by clicking the little x next to the tag in question.

    Tags can be completely deleted from the entire site by clicking the tag name, scrolling down, and clicking Destroy Tag. You must be an administrator or key master to destroy a tag.

    #49701

    In reply to: Can’t Login!

    This is what it should look like:

    $bb->wp_table_prefix = 'wp_'; // 'wp_'; // WordPress table prefix.

    I made the point about TRUE becasue it seems that you never set it to TRUE, you just add the correct prefix.

Viewing 25 results - 32,251 through 32,275 (of 32,313 total)
Skip to toolbar