Search Results for '+.+default+.+'
-
Search Results
-
Topic: Favorites script bug
Got this error script url right under my “add this topic to your favorites” option:
(/(false|true|and|or|xor|__FILE__|exception|__LINE__|
array|as|break|case|class|const|continue|declare|default|die|do|echo|else|elseif|empty|
enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|for|foreach|
function|global|if|include|include_once|isset|list|new|print|require|require_once|
return|static|switch|unset|use|var|while|__FUNCTION__|__CLASS__|__METHOD__
|final|php_user_filter|interface|implements|extends|public|private|protected|
abstract|clone|try|catch|throw|this)([ .”‘{(;&<])/g)
It links to this URL: /forums/profile.php?id=3&tab=favorites
When I click on this: “Subscribe to your favorites’ RSS feed.” which links to this: /forums/rss.php?profile=3
It is just a blank screen.
This just started showing after I removed a signature from my profile. No idea if they are related…
Using BBpress 1.0-alpha-6
I just setup v0.9 and the default URL structure works. However if I try to select another permalink option and save settings, it saves the settings but then breaks all external URLs = page not found. All I have right now is 1 category and the 1 sample post. Both break, and become functional again when I revert back to default permalink.
Any idea how to make this work?
I successfully integrated WP and BB and mapped the user roles and everything was going swimmingly. A user went in today (roughly 24 hrs later) and noticed that the forum was asking him to login to post a reply even though he was showing as logged in on the WP and BB sites. I went into the CMS (was recognizing me as being logged in as admin obv) and noticed that the User Roles had been reset to default, as if they had never been mapped.
So, I remapped the User Roles between WP and BB and now everything works as it is supposed to on the front end, but on the back end BB is now telling me that I have “No Users Matching That Request” under the Users page and no matter what search I run there are no Users listed anywhere on the back end.
Thoughts? I have integrated bbPress within the framework of WP, so maybe that is the issue, but it seems to be a DB disconnect.
I’m a not-quite-noob on WP/WPmu, and a total noob here on bbPress. I’m attempting my first integrated install, from scratch. WPmu latest (2.7 trunk as of a couple weeks ago) and bb 1.0 alpha 6. I thought I’d share a new-user experience… knowing that this kind of stuff is hard to remember later.
I’m wanting integration of users and logins, and went through the install with that in mind.
Anomalies, strangeness and bugs found:
1) It asks for both the site URL and blog URL. WPmu doesn’t have both items, so that’s confusing. Should mention that the same value can be copied in.
2) It doesn’t suggest the URL needs “http://” attached until after you save settings and get an error.
3) [suggestion] why not ask for the location of the WP/WPmu install, and pull the keys etc from wp-config.php??? That would save a ton of typing and confusion.
4) Once I got everything entered, it let me login ok… HOWEVER:
5) It quickly LOST all my settings and the database appeared broken. Here’s how:
* I clicked on “Admin” to go to the admin panel
* Went to Settings->WordPress Integration
* Set up role mappings and saved
* Either at that point, or with one more click (Save in User Integration), I was suddenly locked out and getting mysql connect errors in the header.
* Examining the page I was on showed the “advanced database settings” had defaulted to different info: apparently it used my admin login (user admin) rather than the WP db user/pass I had provided.
* It was impossible to reset this info on that page due to the DB connect error. [suggestion: maintain ‘admin’ login/pw in a bb_* table for emergency admin use of the WP connection breaks!]
* Confusingly, the DB info in bb-config.php is correct and I could not find the (wrong) wp DB info in any text file. Presumably it is stored in the bb-* database?!
My workaround, which is now in use: hand code the settings (
$bb->user_bbdb_user
etc) intobb-config.php
. That works.Bottom line: either the integrated installation process, or perhaps the settings->Integration page, is busted.
Hope that helps!
[PS: I’m the author of the wptuner performance analysis/debugging plugin for WP/WPmu. Would a BB version be helpful?]
Super noobie to bbpress, and currently setting up an install for a client at: http://brainwave.org.au/forum
Got most things working to a point where I am semi happy with to start with, but having a couple of problems that need help with.
- When logging out of a topic or forum page, I get taken to a default page. Would like to get back to the forum landing page – any ideas how to do that?
- Same as point 1 when using Terms of Service plugin and tick box not ticked. Looks like all error pages use the same template – can this be changed?
- Client wants a private, locked down forum, and needs to ask more questions at registration time. Is it just a process of adding fields to the form and database? Which file should I be editing?
These would set me well on the way to appeasing the client.
Thanks in advance for any help!
Cheers,
Paul
When editing a profile (your own or others) the ‘website’ field does not update.
First name, Last name, Location, Occupation, Interests, work fine.
If I put in a website during registration it is added. However, if I try and edit this after registration the field goes blank again.
This in version 1.06a
I’ve also tried it in the latest version (using subversion), with default themes and my own, but no joy.
I would like to modify the bb_list_tags to show who the author of that tag was (to moderators)
So I created a functions.php in my theme and have copied function bb_list_tags from functions.bb-templates.php file. And done the following (note the changes to the function have not yet been made)
<?php
// to override bb_list_tags to show tag author
remove_filter('bb_list_tags', 'bb_list_tag');
function bb_list_tag( $args = null ) {
$defaults = array(
'tags' => false,
'format' => 'list',
'topic' => 0,
'list_id' => 'tags-list'
);
$args = wp_parse_args( $args, $defaults );
extract( $args, EXTR_SKIP );
if ( !$topic = get_topic( get_topic_id( $topic ) ) )
return false;
if ( !is_array($tags) )
$tags = bb_get_topic_tags( $topic->topic_id );
if ( !$tags )
return false;
$list_id = attribute_escape( $list_id );
$r = '';
switch ( strtolower($format) ) :
case 'table' :
break;
case 'list' :
default :
$args['format'] = 'list';
$r .= "<ul id='$list_id' class='tags-list list:tag'>n";
foreach ( $tags as $tag )
$r .= _bb_list_tag_item( $tag, $args );
$r .= "</ul>";
endswitch;
echo $r;
}
add_filter('bb_list_tags', 'bb_list_tag');
?>Is this the correct way to change a core function? Changing anything within it doesn’t appear to override the original function.
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.
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?
Hi,
I’m trying to setup a demo forum of bbPress (Version 1.0-alpha-6 ) to allow users to create their own bbPress themes. The template generator itself is powered by WordPress, and bar the occasional bug seems to work fine. The bbPress themes it exports seem to be working okay too bar a few code gremlins which I intend to iron out once I get the system up and running.
What should happen, is that you should be able to go to the following URL, make as many modifications as you want, click submit and bam! a new design for your bbPress forum should be shown. However for some reason, whenever the bbPress forum loads it kills the session variables which store all of the data relating to the current design
http://pixopoint.com/demo/bbpress/?generator=on
When you go back to the WordPress version (http://pixopoint.com/?generator=on) the original design is gone and it reverts back to the default
Any ideas?
As a temporary measure I plan to create a WordPress Page with the same HTML as would be in the bbPress forum so that users can see their design as they’re modifying it. But it would make a lot more sense if they could modify it within a real live bbPress forum.