Search Results for 'code'
-
Search Results
-
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
(
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 !!!
Topic: Change Permalinks
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
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!
Topic: some installation problems
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.
If I do this:
<a href="http://thisis.my/link">This is my link</a>I get this:
<a href="//thisis.my/link"">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.
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?
Hi
I’m puzzled again

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?
