Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,901 through 25,925 (of 32,481 total)
  • Author
    Search Results
  • christopherh
    Member

    Hi all,

    I want to create one bbPress forum using 2 different languages. Without using any plugin I think I can achieve this by these steps:

    (1) Prepare the directories <WebRoot>/bbpress/US and <WebRoot>/bbpress/FR

    (2) put the files in the US directory first.

    (3) Start the installation using http://localhost/bbpress/US

    (4) All tables are installed as usual. Forum can operate in full

    (5) copy all the files under /US directory to /FR directory

    (6) change the /FR/bb-config.php

    define(‘BB_LANG’, ”); to become define(‘BB_LANG’, ‘fr’);

    (7) clone the database table bb_topicmeta to bb_topicmeta2

    (8) change the uri value in bb_topicmeta2 to http://localhost/bbpress/FR

    (9) change the table name reference for table bb_topicmeta to bb_topicmeta2 under /FR

    Under this installation any user can go to http://localhost/bbpress/US for forum in English; or http://localhost/bbpress/FR in French. However, all the post content, tag, user profile are the same.

    Okay…I’m looking up and down and still unable to do step (9). I cna only figure out the table names are defined in file /bb-includes/db.php. I made the change

    var $tables = array( ….’topicmeta’…) to var $tables = array( ….’topicmeta2’…)

    but it did not really change the table name reference.

    So all bbPress guru…is my approach incorrect or I actually go the wrong way ? Any help is welcome. Thanks !!!

    #4668
    domstie
    Member

    Hi, I would like to change the Permalinks to German. I can change the rewrite_rules in /bb-admin/rewrite_rules.php

    Code:
    Options -MultiViews

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase <?php bb_option( ‘path’ ); ?>

    RewriteRule ^page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>index.php?page=$1 [L,QSA]
    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>forum.php?id=$1 [L,QSA]
    RewriteRule ^forum/?$ <?php bb_option( ‘path’ ); ?> [R=302,L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>topic.php?id=$1 [L,QSA]
    RewriteRule ^topic/?$ <?php bb_option( ‘path’ ); ?> [R=302,L,QSA]
    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>tags.php?tag=$1&page=$2 [L,QSA]
    RewriteRule ^tags/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>tags.php?tag=$1 [L,QSA]
    RewriteRule ^tags/?$ <?php bb_option( ‘path’ ); ?>tags.php [L,QSA]
    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>profile.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>profile.php?id=$1&tab=$2&page=$3 [L,QSA]
    RewriteRule ^profile/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>profile.php?id=$1 [L,QSA]
    RewriteRule ^profile/?$ <?php bb_option( ‘path’ ); ?>profile.php [L,QSA]
    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>view.php?view=$1 [L,QSA]
    RewriteRule ^rss/?$ <?php bb_option( ‘path’ ); ?>rss.php [L,QSA]
    RewriteRule ^rss/topics/?$ <?php bb_option( ‘path’ ); ?>rss.php?topics=1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/topics/?$ <?php bb_option( ‘path’ ); ?>rss.php?forum=$1&topics=1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?profile=$1 [L,QSA]
    RewriteRule ^rss/view/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?view=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ <?php bb_option( ‘path’ ); ?>index.php [L]
    </IfModule>

    bute where, in which files can I change the links? Is there a central function generating the links.

    e.g. old: http://www.forum.com/forum/topic/post-name

    new: http://www.forum.com/forum/thema/postname

    Thank you so much! dom

    ilo
    Member

    Hello I have installed bbpress and gone for full integration however had some issues, first the wp-config files had some lines changed and all of a sudden some code appeared on the home page. I have fixed that however my home page is no longer being used and it just directs to the blog straight away. another more important problem i am having is that i have completely lost access to the wp-admin area. i can view the login page and after that all disappears!

    #4664
    dixyantar
    Member

    This is the error log that i am getting :

    >>> WordPress cookie keys not set.
    >>>>>> Your "bb-config.php" file was not writable.
    >>>>>> You will need to manually re-define "BB_AUTH_KEY", "BB_SECURE_AUTH_KEY" and "BB_LOGGED_IN_KEY" in your "bb-config.php" file.
    >>> WordPress "auth" cookie salt not set.
    >>>>>> Could not fetch "auth" cookie salt from the WordPress options table.
    >>>>>> You will need to manually define the "auth" cookie salt in your database.
    >>> WordPress "logged in" cookie salt not set.
    >>>>>> Could not fetch "logged in" cookie salt from the WordPress options table.
    >>>>>> You will need to manually define the "logged in" cookie salt in your database.

    What did I do wrong? How can I get it right now?

    Please someone help me.

    #4662

    If I do this:

    <a href="http://thisis.my/link">This is my link</a>

    I get this:

    <a href="//thisis.my/link&quot;">This is my lin</a>

    If I do this:

    <a href=http://thisis.my/link>This is my link</a>

    It works.

    I’m totally dumbfounded.

    #69431

    In reply to: tag remove fail

    ganzua
    Member

    Thanks Ipstenu :)

    I do not catch the first line; remove_filter(‘bb_topic_labels’, ‘bb_closed_label’);

    bb_closed_label is the function that you are going to replace, but what is bb_topic_labels and where do you get it?

    I want to replace post_form, bb_tag_heat_map and bb_paginate_links functions

    #69430

    In reply to: tag remove fail

    Create functions.php in your theme folder.

    Then … well, you use remove and add :) Example:

    // This sets closed lable to read as 'read only' instead of 'closed'
    remove_filter('bb_topic_labels', 'bb_closed_label');
    function my_closed_label( $label ) {
    global $topic;
    if ( '0' === $topic->topic_open )
    return sprintf(__('[Read Only] %s'), $label);
    return $label;
    }
    add_filter('bb_topic_labels', 'my_closed_label');

    #70181
    Burt Adsit
    Member

    This is to clear up this issue. Frankly I had forgotten about this post after solving the problem. Whoops. Sorry.

    I was trying to fire up xmlrpc access from wpmu to bbpress. Your bbpress_live plugin wasn’t working. buddypress’s group forums weren’t working. Surprise, it uses the bbpress_live classes.

    Turns out the wp http api lib uses the curl lib as the default transport mechanism. It goes out and gets the requested url using curl by default if it’s installed. It’s installed everywhere and on everything except my kitchen toaster. So, curl resolves ip addresses by first looking at your /etc/hosts file. Then it goes to dns for resolution.

    The /etc/hosts file and linux are happy with hosts defaulting to 127.0.0.1 for mysite.org. I live in apache all day long and don’t care what’s in my hosts file. I should have. :)

    Changed /etc/hosts to have the actual ip address to my domain and xmlrpc, bbpress_live, buddypress and the rest of the universe are happy.

    Thanks for the quick response Sam!

    #71254
    buddhapax
    Member

    Just upgrading PHP to version 5. Many thanks!

    #71253
    chrishajer
    Participant

    I think this is because the server is using PHP4. I believe you need PHP5 for that to work in that release. It’s been fixed in the latest trunk.

    https://bbpress.org/forums/topic/wp-function-error/

    https://bbpress.org/forums/topic/bbpress-0904-and-10-alpha-5-released/page/2#post-22557

    https://bbpress.org/forums/tags/mbcs

    #71194

    @Sam

    Please correct me if I’m wrong, but if you check out http://www.delsolownersclub.com/forums/, the links for the feeds from WordPress seem to point exactly where they should.

    The only problem that I had personally was using wp_enqueue_script('jquery'); in my wordpress functions.php file. I replaced it with

    if (!defined('BB_PATH')) {
    wp_enqueue_script('jquery');
    }

    And all is well again.

    #71205

    In reply to: List all Tags?

    circuit
    Member

    i would also like to know the answer to this :)

    buddhapax
    Member

    When I try to install bbPress 0.9.0.4 I see infinite times this message

    Warning: cannot yet handle MBCS in html_entity_decode()! in /web/htdocs/www.XXX.com/home/forum_/bb-includes/wp-functions.php on line 113

    Anyway, I completed my installation. But what I try to get my forum, I see again the first page to install it…

    Any ideas?

    #71245

    That only works for FireFox, fernandot :)

    Basically the urls are (assuming your bbpress is in a folder called ‘forums’ and you’re using pretty permalinks)

    http://domain.net/forums/rss/ – All posts

    http://domain.net/forums/rss/topics – All topics

    #71244
    Fernando Tellado
    Participant

    That RSS you demand is integrated in bbPress. In your browser navigation bar, if you click to the RSS icon it shows you the list with the two RSS feeds availables. One is for latest topics and other one is for latest messages in all topics. If you see my forum ( http://forowordpress.es/ ) I’ve added two links to both in the sidebar (redirected to feedburner as you can see). ;)

    #69423

    In reply to: tag remove fail

    ganzua
    Member

    BTW, I just tried to remove a tag and it says that I can’t because the topic “is closed” when it actually is not :s

    #69422

    In reply to: tag remove fail

    ganzua
    Member

    Thanks for the fix :)

    I have functions.bb-template.php and functions.bb-core.php modified because there are some stuff that is related with the template; h2 tag, tag cloud size, « Previous and a &hellip for pagination…

    Could it be possible to move this stuff to the template folder? perhaps in a functions.php file?

    #69420

    In reply to: tag remove fail

    deadlyhifi
    Participant

    having same problems here on 1 alpha 6. Would love to see this fixed asap. No pressure or anything! ;) Thanks.

    #70086
    gmvini
    Member

    Same is happening on my board that I just recently installed. It is a fresh install of WP 2.7 and bbPress 1.0-alpha-6.

    Its all running on:

    Win XP SP3 (please dont kick me ;) )

    Apache – 2.2.4 (Win32)

    PHP – 5.2.3

    MySQL – 5.0.37

    #71184

    But why would you ever do such a thing?! :)

    #71183
    mpttt
    Member

    Thank you ganzua. I appreciate your help! :)

    #70415
    _ck_
    Participant

    To make it always link the past post change line 105

    from

    if ($up_key!=false && $up_last_posts[$up_key]!=$topic->topic_last_post_id) {$link = get_post_link($up_last_posts[$up_key]);}

    to

    if (!empty($up_key)) {$link = get_post_link($up_last_posts[$up_key]);}

    I might make that a feature.

    I suspect it’s going to make your queries per page go up much higher though.

    #70414
    circuit
    Member

    apologies. its working like this (we think):

    1. If you click on a thread you have not read since the upgrade, you’ll go to first post.

    2. If you click on a thread you have read since the upgrade, and there are new posts, you’ll go to new posts.

    3. If you click on a thread you have read since the upgrade, and there are no new posts, you’ll go to first post.

    ideally we want #3 to take us to the LAST post instead. is there a quick code change for this?

    #4649
    ganzua
    Member

    Hi

    I’m puzzled again :s

    Quicktacks are working ok in post-form.php but not in edit-form.php. The only tag that works in edit-form.php is the “link” tag.

    I’m not using any plugin, I’m calling the script to the header and then I place it next to the form textarea.

    Why is not working in edit-form.php?

    #67839

    In reply to: Get Current Forum ID?

    Ben L.
    Member

    The problem is quite simple, really.

    <li<?php if ($current_forum_id=get_forum_id()) {echo " class='on'";} ?>> just needs to be changed to <li<?php if ($current_forum_id==get_forum_id()) {echo " class='on'";} ?>>

    (Can you spot the difference?)

Viewing 25 results - 25,901 through 25,925 (of 32,481 total)
Skip to toolbar