Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,976 through 27,000 (of 32,522 total)
  • Author
    Search Results
  • #3958

    Topic: hack help

    in forum Installation
    doyle640
    Member

    does anyone know where (in what file) I would delete the code that displays the author’s rank in each post?

    thanks for any help.

    #3955
    wiggster
    Member

    Just a small cosmetic issue I noticed after installing the Version 1.0-alpha-1 zip file: after activating a few plugins, I noticed that the cells were not alternating classes correctly (or at least, what I’d think of as correctly).

    To test this, simply go to the Plugins page and activate a plugin. If the plugin row had a white background, it changes to green to show it’s active. If it had a gray background, it stays gray whether it is active or not. It seems to me that we’d want there to be either one or two shades of green to show the active plugins.

    The cause between this seems to be the CSS classes of the active rows alternated between <tr class="active"> and <tr class="active alt">; this means that the row with ‘active alt’ takes the properties of the ‘alt’ row, which overrides the background color of the ‘active’ class as it is lower in the style.css template. This derives from the function get_alt_class(), as defined in bb-includes/template-functions.php, which can assign two classes to one element.

    #65189
    Detective
    Member

    Well, i don’t know :p You need to provide me with better information, like: do you uploaded the plugin into the folder my-plugins ?

    Perhaps you didn’t uncompress the folder sack ??

    #3952

    Topic: Topic action hook

    in forum Plugins
    thion
    Member

    I was looking, but can’t find – so I’m still looking for hook, something like this:

    add_action('profile_edited', 'update_user_socialize');

    Above hook is used to add usermeta when editing profile – I’m looking for something that would add additional topicmeta when posting new topic – the following is not working:

    add_action('post_topic', 'post_new_job');

    So is there any hook like this?

    #67442
    _ck_
    Participant
    Database error: []
    SELECT * FROM bb_online WHERE user_id = LIMIT 1
    Caller: online_logout

    The user_id is empty in this case which causes the error.

    The question is why it’s empty.

    This could be a cookie problem, this could be an alpha bug.

    If you have no plugins running and switching to the default template does not make the error go away, it’s a bug and should be reported on TRAC (along with your configuration if possible, server type, PHP, etc)

    #67441
    _ck_
    Participant

    “Cannot modify header information – headers already sent”

    is one of those errors that will fool you by distraction because it’s an indication of another error, that happened before it, it’s not the actual primary error.

    “headers already sent” means one of the following (among other possibilities)

    1. You have whitespace at the start of end of a plugin (or template) BEFORE or AFTER the <?php ?> (usually after the end. Whitespace means new lines or spaces.

    OR

    2. Another plugin or configuration error has occured and sends a text message, which causes the headers to be sent. To find out what the real problem is, you typically can do a “VIEW SOURCE” on the page (from your browser menus) and you’ll see in plain text at the top of the page the real error before the “headers sent” error.

    #3949
    lstelie
    Member

    Hello,

    I wrote this for my own use, in case it could be of some use for someone, here it is :

    http://pastebin.com/f35e5dcbe

    This allow to put some html code in header (or example metatags) and footer (for example counter code)

    There is no admin part for two reasons :

    1) I’m learnig how it works

    2) I’m not sure it would be a great idea to have a DB request for a code that never change

    So for instance you’ll have to edit manually the plugin file

    Why use a plug in instead of a direct ad in the template ? because for alpha release the default template (my own is based on kakumei) sometimes change, so keeping the personal code updated each time can be tedious.

    Luc

    #67398

    In reply to: Server Overload

    _ck_
    Participant

    By the way, once you are done with this, we’ll install eAccelerator and that will give your PHP a nice boost too.

    Let me know how the MySQL cache mod goes.

    If you don’t want to wait and feel comfortable trying it right away, try downloading and using this script to auto-install eAccelerator on Cpanel:

    wget http://tutorials.medialayer.com/cPanel/eaccelerator.sh
    chmod 700 eaccelerator.sh
    ./eaccelerator.sh

    Once it is done, you might have to restart apache

    service httpd restart

    and you should definitely notice another speed boost.

    #67435

    In reply to: expired topics

    _ck_
    Participant

    Untested. auto-closes a topic on-the-fly when someone visits it and it’s last post is 90 days old (adjustable)

    add_action('bb_head','auto_close_topic');
    function auto_close_topic() {
    global $topic;
    if (is_topic() && $topic->topic_open===1) {
    $old=time()-3600*24*90; // 90 days default
    if (strtotime($topic->topic_time)<$old) {
    bb_close_topic($topic->topic_id);
    $topic->topic_open=0; // just in case the cache doesn't clear
    }
    }
    }

    #67395

    In reply to: Server Overload

    _ck_
    Participant

    Okay, carefully edit your /etc/my.cnf (ask if you don’t know how to edit) and REPLACE what’s in there with this:

    [mysqld]
    max_connections = 400
    key_buffer = 16M
    myisam_sort_buffer_size = 32M
    join_buffer_size = 1M
    read_buffer_size = 1M
    sort_buffer_size = 2M
    table_cache = 1024
    thread_cache_size = 286
    interactive_timeout = 25
    wait_timeout = 1000
    connect_timeout = 10
    max_allowed_packet = 16M
    max_connect_errors = 10
    query_cache_limit = 1M
    query_cache_size = 16M
    query_cache_type = 1
    tmp_table_size = 16M
    skip-innodb
    [mysqld_safe]
    open_files_limit = 8192
    [mysqldump]
    quick
    max_allowed_packet = 16M
    [myisamchk]
    key_buffer = 32M
    sort_buffer = 32M
    read_buffer = 16M
    write_buffer = 16M
    [mysqlhotcopy]
    interactive-timeout

    After you edit it you’ll need to restart the mysql engine by typing this in the ssh:

    service mysql restart

    (optionally there’s also a mysql restart in cpanel)

    Then do a couple of refreshes on your bbPress pages and it should seem a bit zippier.

    #67392

    In reply to: Server Overload

    lstelie
    Member

    _ck_

    In latest bb-config.php there is no /* Stop editing */

    Do I put $bb->load_options = true; at the end of the file ?

    #65186
    meitershaker
    Member

    same problem here :)

    #67382
    meitershaker
    Member

    $hidden_forums=array(10); // hide these forums, list by comma seperated number

    $hidden_forums=array(‘keymaster’,’administrator’,’moderator’); // these roles can always see ALL forums regardless

    $hidden_forums[500]=array(‘administrator’,’moderator’); // exact formal role name, *not* ability

    $hidden_forums[501]=array(‘administrator’,’moderator’); // exact formal role name, *not* ability

    $hidden_forums=array(1); // these users can always see ALL forums regardless

    $hidden_forums[500]=array(5432,7654); // list of users by number

    $hidden_forums[501]=array(5432,7654); // list of users by number

    $hidden_forums=””; // text, html, css or image to indicate hidden forums/topics, make it =””; if you don’t want any label at all

    #67381
    _ck_
    Participant

    Well it works for me.

    Show me your configuration inside hidden-forums.php and how many forums do you have?

    Are those queries happening on the front-page, forum-page or topic-page?

    #56181

    In reply to: Quote Plugin Weirdness

    cartmanffc
    Member

    Where exactly should I put this code in post-form.php?

    <textarea name=”post_content” cols=”50″ rows=”8″ id=”post_content” tabindex=”3″>

    <?php if (function_exists(‘bb_quote_post’)) bb_quote_post(); ?>

    </textarea>

    #3943
    cartmanffc
    Member

    I thought it might be helpful; I tried the following popular plugins with the latest release of bbPress and they seem to work perfectly:

    – bb-smilies

    – bbcode-buttons

    – mini-track

    – my-views

    – post-count-plus (with some minor changes)

    – support-forum

    – bb-reputation (to some extent)

    – bb-signatures

    – bb-topic-views

    – bbcode-lite

    – hidden-forums

    – report-post

    – unread-posts

    what is missing most is the working plugin for quotes…

    #67389

    In reply to: Server Overload

    _ck_
    Participant

    Show me your mysql configuration by doing this in your shell (ssh)

    cat /etc/my.cnf

    and copy what it returns to a post here or into pastebin.com

    I suspect we can improve it. MySQL cache is very important to bbPress performance.

    #67388

    In reply to: Server Overload

    _ck_
    Participant

    You (and everyone) needs to make sure this is in your bb-config.php

    $bb->load_options = true;

    make sure you put it BEFORE /* Stop editing */

    #67387

    In reply to: Server Overload

    _ck_
    Participant

    Running bbPress on a server with 128mb of ram would be very difficult unless it’s a very light setup with low use.

    256mb should be doable if that is real, permanent memory and not burst memory. It’s also important if you don’t have alot of overhead like cpanel running.

    #1 problem on most small VPS is you either don’t have the mysql cache turned on or it’s too small of a cache

    #2 problem is you almost certainly don’t have a PHP opcode cache like eAccelerator installed

    #3 problem on almost all VPS is bad neighbors.

    On a shared host, you can easily tell when you have bad neighbors who are overloading the server (node). On a VPS they are hidden. If you have an inexperienced host, they may have a hard time tracking down the offender, or may not even care. If they tell you that your neighbors can’t affect you, that’s an outright lie or plain ignorance.

    If you are running bbPress 1.0 alpha it has several problems generating far too many mysql queries and that could be causing you some headaches. If you are using bbPress 0.9, definitely stick with that, but you need to fine tune your settings.

    WordPress has some nice caching plugins like wp-super-cache. No such creature exists yet for bbPress, so all pages must be rendered each time by the engine, making it use more overhead than WordPress.

    #67415

    In reply to: Multiple-level forums

    darnit
    Member

    I found the answer myself, 26 mins. later, LOL: you simply need to go to Manage -> Forums -> click on a forum and set its parent forum.

    That way you’ll have multiple subforums on any forum on your bbPress installation.

    Heh. Next time, I’ll get acquainted with the features of bbPress BEFORE asking for help ^_^

    #3941
    darnit
    Member

    Hello bbpress world!

    I would like to congratulate you all for developing such a steadfast, easy-to-use forum software known as bbPress. I love(s) it :)

    Secondly — yeap, it’s an issue — I would like to know if it is possible to have a forum-forum-topic structure instead of the current forum-topic one.

    For example, we currently have:

    Webmasters Forum – [all the topics go here]

    while we would want to have:

    Webmasters Forum – Italian Webmasters Forum / American Webmasters Forum – [all the topics from the Italian / American go here]

    Would such a structure be possible?

    Thank you for your time and for your replies.

    #3935
    meitershaker
    Member

    Hi,

    i have a serious bug: when i’m not login, i have 610 mysql query, and there is a one query repeat:

    # 416 : 0.0004 seconds

    SELECT meta_key, meta_value FROM bb_meta WHERE object_type = 'bb_topic' AND object_id = 37 /* bb_append_meta */

    # 417 : 0.0005 seconds

    SELECT * FROM bb_topics WHERE topic_id = 37 AND topic_status = 0 AND forum_id NOT IN (10)

    # 418 : 0.0004 seconds

    SELECT meta_key, meta_value FROM bb_meta WHERE object_type = ‘bb_topic’ AND object_id = 37 /* bb_append_meta */

    # 419 : 0.0005 seconds

    SELECT * FROM bb_topics WHERE topic_id = 37 AND topic_status = 0 AND forum_id NOT IN (10)

    # 420 : 0.0005 seconds

    SELECT meta_key, meta_value FROM bb_meta WHERE object_type = ‘bb_topic’ AND object_id = 37 /* bb_append_meta */

    # 421 : 0.0005 seconds

    SELECT * FROM bb_topics WHERE topic_id = 37 AND topic_status = 0 AND forum_id NOT IN (10)

    # 422 : 0.0005 seconds

    SELECT meta_key, meta_value FROM bb_meta WHERE object_type = ‘bb_topic’ AND object_id = 37 /* bb_append_meta */

    # 423 : 0.0005 seconds

    SELECT * FROM bb_topics WHERE topic_id = 37 AND topic_status = 0 AND forum_id NOT IN (10)

    why?

    when i’m login at admin, i have no this!!

    i use mini track, bb_topic_wiews, bb_benchmark and topic_icons plugin

    please help me

    #60770

    In reply to: PHPBB3 Converstion

    bryan868
    Member

    So what was the outcome from the Summer of Code? Did we get a phpBB 3.0 converter?

    #3493

    Topic: bb benchmark question

    in forum Plugins
    meitershaker
    Member

    hi, how to give the possibility of all users to see the report in the source code, please?

    bye

    #58899
    Sonika
    Member

    Detective, thanks a lot!!!

    It solved my problem ( wp 2.5.1, bbpress 0.9.0.2)

    Bo Fiddlesticks, you should save code in set-default-role.php file, put it in bb-plugins and activate

    <?php
    /*
    Plugin Name: bbpress wpmu default role
    Plugin URI: https://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=5
    Description: Sets a default WPMU role for all new bbpress users.
    Author: Detective
    Author URI: http://www.ryuuko.cl/
    */

    function wpbb_add_user_role_rk($user_id) {
    $user = new WP_User($user_id);
    $user->set_role(get_option('default_role'));
    }
    add_action( 'bb_new_user', 'wpbb_add_user_role_rk');
    ?>

Viewing 25 results - 26,976 through 27,000 (of 32,522 total)
Skip to toolbar