Search Results for 'bbpress'
-
Search Results
-
I am upgrading an old .83 bbpress installation to Alpha 1.0r6.
I have about 6k posts in the .83 database.
After upgrading the database I’ve noticed the following problems. Several of the posts in the database were made by users no longer in the database. If a topic containing posts by these now ‘anonymous’ users is displayed, I get the following error at the top of the screen.
DB Error in wp_users::append_meta: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '32) /* WP_Users::append_meta */' at line 1
SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1,,32) /* WP_Users::append_meta */If I delete the anonymous posts in the thread, the problem goes away. Using PHPAdmin I checked the user ID’s assigned to the posts and there are no users with those user ID’s in wp_users. (I have an integrated installation).
I thought the problem was a result of an upgrade, so I created a new user, made some posts, and then deleted that user. The problem still exists. I have not tried this on a clean install and it would be useful if someone could try that.
I am running the default Kak. Blue theme.
I believe I tracked the problem request to a backpress file.
bb-includes/backpress/class.wp-users.php:
if ( $metas = $this->db->get_results("SELECT $meta_field, meta_key, meta_value FROM {$this->db->$meta_table} WHERE $meta_field IN ($ids) /* WP_Users::append_meta */") ) {
I am not a SQL sleuth but I believe the $ids field is being populated with nulls associated with deleted users.
Topic: Redirect Login target parent
Hi I am integrated with wordpress and am using the bb_press login to handle the users login and registration. The login is housed under the wordpress roof, meaning I want to blogs look but with the bbpress login. So I placed an iframe between header and footer for when they click login.
Well, My problem is that from this iframe I don’t know how to get bb-login.php to target the parent when its done and not stay within the iframe. And yes, I need the iframe, how else could I use the bbpress login while still making the users feel they are within the confines of the blog?
Help please! Did I post in the right forum. If not help me know where to post so I get help quick!
Thanks a million in advance!
Hello,
I would like to have bbPress in two languages, using the same forum DB. So when viewing in language 1, the forum’s interface would be in language 1 with all the postings listed, and in language 2, the interface would be in language 2 with the same postings listed.
I plan on achieving this with bbPress theme switcher ( http://bbpress.org/plugins/topic/bbpress-theme-switcher/ ) and the link to switch between the themes/languages would be /bbpress/?bbtheme=lang1 and /bbpress/?bbtheme=lang2
I would also like to set up a php page at the root of the web domain to auto-detect and forward to the appropriate mediawiki language page based on
1) user’s browser language preferences if this is a first time visit
2) last connection’s languages preferences, which would be saved in the form of bbPress’s theme preference cookie.
with a file structure of
/blog
/blog/bbpress
/blog/wiki
/langdetect.php
My code so far is:
?php
/* langdetect.php */
$defaultlang = ‘en’
$lang = $defaultlang;
/* bbPress theme cookie detection */
if cookie exists {
(read cookie and set $lang to either en or ko.. bla bla)
}
/* WordPress and/or MediaWiki last visit language detection */
elseif previous visit info exists {
(i’ll figure this out later)
}
/* detect in-browser lang pref … modified from http://kaldung.com/en/php_detectbrowserlanguage.html */
else {
$langlist = explode(‘,’, $_SERVER);
foreach($langlist as $curLang) {
$curLang = explode(‘;’, $curLang);
/* use regular expression for language detection */
if (preg_match(‘/(ko|en)-?.*/’, $curLang[0], $reg)) {
$lang = $reg[1];
break;
}
}
}
/* redirect */
if ( $lang==’ko’ ) { header( ‘Location: http://ENGLISHPAGE’ ) ; }
else { header( ‘Location: http://ENGLISHPAGE’ ) ; }
?>
How can I read the bbPress cookie that contains the Theme Switcher theme preference?
On my installation logout does not appear when the user is logged in (http://www.fallforthebook.org/bbpress). When the user isn’t logged in, login appears but only when they try to reply to a topic. Did I break something in the installation or is there a way to make logout/login appear on every page? (a plugin, maybe?). Thanks!
There are a couple place where bbPress uses the word “wanna” as in “are you sure you wanna do that”. I’d like to change that to something more professional, like “want to” but I don’t want to change the core. How can I accomplish that with a plugin?
Using bbPress Alpha trunk (but this “wanna” wording has existed for a long time, maybe back to 0.73). The word wanna can be found in these files:
./bb-includes/js/topic.js
./bb-includes/functions.bb-script-loader.php
./bb-includes/functions.bb-script-loader.php
./bb-includes/functions.bb-template.php
./bb-includes/functions.bb-template.phpThank you.
I thought I only needed to use CSS to STYLE a theme, but just found out SMF require a fair bit of php just to style a theme! I wasn’t wanting to PROGRAM the thing, just style a pre-existing template.
Can I just ask, and I could be totally mad here, if there’s a way to create a basic html bbpress template “thingy” that could sit in Dreamweaver and let me do all the CSS in DW, and then just copy & paste that CSS into the right spots in bbpress?
Topic: Changing/Editing Error Page
The error page that comes up if a post no longer exists, or in my case if a user is logged out but is trying to do certain things… it comes up and is a big green box with the bbpress logo…
Well, I found where to edit the page… in install.css. But, does anyone know where I can edit the page title.
UPDATE: I figured it out. It is in the functions.php file in the bb-includes directory.
Hi all,
I just found out that SMF can have ADMINS hit a few buttons and over-ride all user preferences regarding for “reply to thread” email notifications. I personally love email notification, and think that systems that rely on RSS are just creating far too much work. Can BBpress set up something like this so that all users receive email notification re: replies? SMF can set it up so that each current user and all future guests and future users will receive email notification on any thread that is replied to.
You might not think it’s a good idea, but personally I think it’s so important it’s something I would remove from BBpress’s plugins and have straight in the core.