zaerl (@zaerl)

You are now logged out.

Forum Replies Created

Viewing 25 replies - 51 through 75 (of 762 total)

  • zaerl
    Participant

    @zaerl

    Hi there anointed. I assume that you are using bbPress 1.*. Let’s see what we got:

    In bbPress the topic permalink is builded against site and not forum.

    If I have a topic named ‘foo’ in forum ‘bar’ and then I create another ‘foo’ topic in forum ‘pub’ then the permalink will be automagically named foo-2 by the bb_slug_increment function.

    You want:

    /forum-name/sub-forum-name/post-name.html

    You can’t achieve this behaviour with just an .htaccess tweaking. You need also to intercept the get_topic_link filter and change the link. Maybe also you will need to do something in the bb_repermalink function.

    It can be quite challenging.


    zaerl
    Participant

    @zaerl

    There isn’t. Why you don’t make private forums/posts? You can use my plugin: zaerl Visibility.


    zaerl
    Participant

    @zaerl

    Link please.


    zaerl
    Participant

    @zaerl

    No. Gravatar(s) are square. You can force the size of the surrounding div (adding an overflow:hidden to the CSS) but nothing more.


    zaerl
    Participant

    @zaerl

    Hi there,

    but still any help on why the [ ] tags aren’t working

    my plugin uses html tags and not BBCode.


    zaerl
    Participant

    @zaerl

    <VirtualHost *:80>
    DocumentRoot "your-htdocs/forums.example.com"
    ServerName forums.example.com
    </VirtualHost>

    <VirtualHost *:80>
    DocumentRoot "your-htdocs/example.com"
    ServerName example.com
    ServerAlias www.example.com
    </VirtualHost>

    on *apache-config-dir*/sites-available/default (*apache-config-dir*extrahttpd-vhosts.conf on windows) (or somewhere else)


    zaerl
    Participant

    @zaerl

    Check the doc page:

    http://bbpress.org/documentation/installation/

    have a nice day.


    zaerl
    Participant

    @zaerl

    File forum/bb-templates/blog_theme/style.css

    Line 405 (rule .infobox) add: float: left;

    Line 511 (rule #thread) add: float: left;

    or something like that. Have a nice day.


    zaerl
    Participant

    @zaerl

    I’m sorry, no. The plugins have been build for the standalone version.


    zaerl
    Participant

    @zaerl

    Contact me za-AT-zaerl-DOT-com


    zaerl
    Participant

    @zaerl

    Hi softinfo. What you’re trying to achieve can be very challenging cause bbPress developers haven’t included such feature in the software. On index.php topics are obtained with get_latest_topics, forums with bb_get_forums.

    The current page (for topics) is collected from a $_GET variable called page which have its own rule in the .htaccess which in turn is parsed by bb_get_uri_page (functions.bb-core.php) called from BB_Query::fill_query_vars (yargh).

    Now you must do the same thing with forums but in order to do this you must change too many core files and we don’t want our soul damned for eternity.

    I don’t have much time at the moment but I can give you some hints.

    You need a new page variable that should be different from the default (which is used for posts’ page) together with its own .htaccess rule: RewriteRule ^forum-page/([0-9]+)/?$ /forum/index.php?forum-page=$1 [L,QSA]

    You should create a new fake paginate function bb_latest_topics_pages for forums bb_latest_forums_pages, a fake get_page_number_links with /forum-page/%#% instead of /page/%#% and other things here and there.

    And last but not least you need a custom query (with a LIMIT) on the $bbdb forum query.

    As I said it can be very challenging and there’s room for a very interesting plugin but I don’t write plugins anymore because of the current fragile status of bbPress standalone.

    If you will try to write a plugin I will be happy to debug and/or code (a portion of) it.


    zaerl
    Participant

    @zaerl


    zaerl
    Participant

    @zaerl


    zaerl
    Participant

    @zaerl

    Probably your host is set in safe mode which is a very bad things. You should ask your host to deactivate it.


    zaerl
    Participant

    @zaerl

    Probably your host is set in safe mode which is a very bad things. You should ask your host to deactivate it.


    zaerl
    Participant

    @zaerl

    Hi Alex,

    at line 21 you use: SHOW TABLES FROM db_name in order to retrieve bbPress tables. This is a wrong approach cause you assume that in the database there are only bbPress tables which is not guaranteed.

    You should only backup the tables with the bbPress prefix. Check the $bb_table_prefix global variable.


    zaerl
    Participant

    @zaerl

    Hi Alex,

    at line 21 you use: SHOW TABLES FROM db_name in order to retrieve bbPress tables. This is a wrong approach cause you assume that in the database there are only bbPress tables which is not guaranteed.

    You should only backup the tables with the bbPress prefix. Check the $bb_table_prefix global variable.


    zaerl
    Participant

    @zaerl

    Does anyone know if there is a plugin for this?

    There isn’t.


    zaerl
    Participant

    @zaerl

    Does anyone know if there is a plugin for this?

    There isn’t.


    zaerl
    Participant

    @zaerl

    Locate the function bb_insert_post in file functions.bb-posts.php, then find the line:

    $ip_address = $_SERVER['REMOTE_ADDR'];

    The real (*cough*) IP of the user can be retrieved with this function:

    function get_real_ip()
    {
    $ip = '';
    $u = 'unknown';

    if(($ip = getenv('HTTP_CLIENT_IP')) && strcasecmp($ip, $u)) {}
    elseif(($ip = getenv('REMOTE_ADDR')) && strcasecmp($ip, $u)) {}
    elseif(($ip = getenv('HTTP_X_FORWARDED_FOR')) && strcasecmp($ip, $u)) {}
    elseif(isset($_SERVER['REMOTE_ADDR']) && ($ip = $_SERVER['REMOTE_ADDR']) && strcasecmp($ip, $u)) {}
    else return $u;

    return $ip;
    }


    zaerl
    Participant

    @zaerl

    Locate the function bb_insert_post in file functions.bb-posts.php, then find the line:

    $ip_address = $_SERVER['REMOTE_ADDR'];

    The real (*cough*) IP of the user can be retrieved with this function:

    function get_real_ip()
    {
    $ip = '';
    $u = 'unknown';

    if(($ip = getenv('HTTP_CLIENT_IP')) && strcasecmp($ip, $u)) {}
    elseif(($ip = getenv('REMOTE_ADDR')) && strcasecmp($ip, $u)) {}
    elseif(($ip = getenv('HTTP_X_FORWARDED_FOR')) && strcasecmp($ip, $u)) {}
    elseif(isset($_SERVER['REMOTE_ADDR']) && ($ip = $_SERVER['REMOTE_ADDR']) && strcasecmp($ip, $u)) {}
    else return $u;

    return $ip;
    }


    zaerl
    Participant

    @zaerl


    zaerl
    Participant

    @zaerl


    zaerl
    Participant

    @zaerl


    zaerl
    Participant

    @zaerl

Viewing 25 replies - 51 through 75 (of 762 total)