Ganzua, I haven’t tested it, but the TRAC ticket (development and testing site) shows that this issue with translating dates from the .mo file should work now. Test it out would be the only way to find out for sure.
Trent
I cannot test your permalinks because you turned them off. If you get this, maybe turn them back on so we can test it. As well, your blog took more like 8 seconds to load and your forum was really quick for me. Maybe a coincidence….?
Trent
For error: “Cannot redeclare class streamreader …”, read this…
https://wordpress.org/support/topic/111411?replies=9
has anyone got this patch to work on the latest release? when i apply the patch i get a lot of failed chunks and then when i try and view the site i get
Fatal error: Call to undefined function bb_get_categories();
eek!
It’s there! I’m looking at it right now. In the code you copied it is line 10.
The bb_posts table is what we’re looking for, not wp_posts (also a table), and it tells you the databasename.tablename so it’s actually trying to look for a table called “posts”. I don’t think the wpbb_prefix option exists in your tables, I suspect that’s a Latest Discussions plugin thing (ah, hindsight). If it did, it would read bb_. The . is used to join two strings together, so what it should be doing is joining 'bb_' and 'posts' together into the table name 'bb_posts', but since that option doesn’t exist in your tables it just join together '' (a blank) and 'posts', leaving us with the incorrect table name of just 'posts'. I suspect.
“But after what I’ve integrated both of api’s: the wordpress and bbpress; this resulted in the following error:
Fatal error: Cannot redeclare class streamreader in /var/www/pm/forum/bb-includes/streams.php on line 26″
-> same error here
Sorry, forgot about this 😮 Looked at it, can’t figure out where it might go wrong, so here’s some slightly alternative code that will use a different function to do it’s thing and we’ll see if that works. Replace function fel_addlatestlink() with
function fel_addlatestlink($title)
{
global $topic;
//$felgtlpl = get_topic_last_post_link($topic->topic_id);
$felgtlpl = get_post_link( $topic->topic_last_post_id );
$title = $title . ' <a href="' . $felgtlpl . '"> » </a>';
return $title;
}
This seems to happen any time I choose a localization file
I get a series of fatal errors saying ‘Cannot redeclare class CachedFileReader’ in bb/inlcudes/streams.php.
I’ve searched the forums, and it hasn’t yielded any solutions, is anyone experiencing the same issue?
I am running the latest bbPress 0.8.2, with WordPress config included.
First off, I have to say, bbPress rules! loved it right from install.
And because I love it so much, I decided to mod it into a clean gallery, still needs much testing, but I have one problem.
Doing masses of search/replaces on words such as ‘forums’, ‘posts’, etc. is time consuming. I read through some documentation to find out that you can use an .MO dictionary file, to display alternate words that are called with the _() function!
So I want to ask, how do I go about generating an MO file and using it within bbPress!
Any help will be much appreciated.
It is going to be released here……really quickly! Just coming out of some quick testing.
Trent
fel: Disabling the “Do you want me to load bbPress whenever to …” checkbox worked! I’m now getting the replies from the forum topics on indie pages. Just a few quick questions:
How do you keep it from posting the entire original entry in the forums? (I know the “How much of your blog post do you want shown on the forums? Set it to 0 to get the full post.” option is there, but I don’t quite understand how to use it – for example, make it stop at the <!--more--> tag.)
What are the rest of the tags (other than <?php felbbreplies(); ?> ) that we can use? I can go ahead and test them out, to make sure that the rest of them are working as well.
Sneaky: Don’t worry!
Nop but I think I got it;
global $current_user and then $current_user->ID
let me test with several users…
Sorry – no, not running this on wordpress.com, it is on my own server, however (unless I have not read the headers properly) the e mails don’t appear to originate from my server. I created two test accounts last night – 10 hours later the e mails still haven’t arrived!
Thank you for details of the fix. It worked (after fixing another @ strpos problem in the functions.php script) however I see that setting is bozo to zero in the admin pages removes the table row, rather than restting it to zero (i.e. setting to one creates the table row with the value 1, resetting it to zero deletes the row, rather than just resetting the value!) which seems strange behaviour – but hey – it works! No doubt it will be swept up in future versions!
That’s a special version I made for Sneaky who had problems finding out what the error was
This is the currently latest version; I was planning to upload properly to the plugins section when there’s no outstanding problems here. This version is the same as the one you downloaded, though, just without the messages.
Try changing the “global $bbdb;” to this:
global $bbdb, $bb_cache;
fel64,
Thanks for all the hard work you put in on this. I just installed the latest (I assume) version of bbsync on my site, and I’m getting the following error message when I try to save a post in WP:
“got opshuns
got bb
got currentuserinfo
Fatal error: Call to a member function on a non-object in /path/to/my/forums/bb-includes/functions.php on line 607″
I added “global $bbdb;” to my bbpress config.php like you suggest, and it didn’t seem to make any difference. As well, when I use the “<?php felbbreplies(); ?>” call on my indie pages I get the following:
“doin’ felwptobb
pre-query in felwptobb. bb_topicmeta = bb_topicmeta
felwptobb post-query, topic_id = 2
~ 21:36 15th Jun 07 admin
blah blah blah this is a test reply
Fatal error: Call to undefined function: get_topic() in /home/.reactor/starrett/lifthill.com/wp/wp-content/plugins/bbsync.php on line 432″
So it is bringing in and displaying the replies, but then it gives the error.
I’m running WP 2.2 and BB 0.8.1.
Thanks!
Hi fel64, thanks for the explanation.
I tested and the function works but there are two errors in the code.
First, the id user line displays “21” for every user
global $id; $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $id . '">' . __('Profile') . '</a>' . $after;
Next, if( current_user_can('administrate') doesn’t seem to work because it display a link to bbpress profile instead to /wp-admin/
This is the whole function so far;
function wp_registro( $before = '<li>', $after = '</li>' ) {
if ( ! is_user_logged_in() ) {
if ( get_option('users_can_register') )
$link = $before . '<a href="' . get_option('siteurl') . '/wp-login.php?action=register">' . __('Register') . '</a>' . $after;
else
$link = '';
} else { if( current_user_can('administrate') ) {
$link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;}
else {global $id; $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $id . '">' . __('Profile') . '</a>' . $after;
}
}
echo apply_filters('register', $link);
}
did I made a mistake in the second “else” ?
This worked for me:
add_action('bb_admin_menu_generator', 'contestsmenue');
function contestsmenue () {
global $bb_submenu;
$bb_submenu['content.php'][] = array(__('Contests'), 'moderate', 'contestinnerface');
}
As best as I can tell this does not work on 0.8.1. The code appears to have changed quite a bit between then and now. Thinking that the latest replies are not getting responses because the status on this thread is set to “resolved”, I created a new thread at https://bbpress.org/forums/topic/1256 however after 5 days there is still no response. It looks like sourceforge users are too small a minority.
Hi, bbPress appears to run well on the popular http://sourceforge.net/, with the notable and problematic exception of emailing users passwords, both on registration and for password resets.
A thread from last year posted a workaround for new users, bypass email and show users their generated password in the browser. http://bbpress.org/forums/topic/82?replies=14#post-349
However the patch no longer applies, or at least I couldn’t see how and where to apply it. There seems to have been quite a bit of code change in the last 7 months, and the fellow who posted that patch seems to have chosen a different route as the forums are no longer there on his site.
Even if this patch could be updated to apply to the current bbPress code base however it would not deal (I think) with the also much needed function of resetting passwords.
Sourceforge has posted a workaround for projects who need to use email registration, basically queue the messages up and fire them off in a cron job. http://sourceforge.net/docman/display_doc.php?docid=4297&group_id=1#email
I personally would be happy to see that implemented in bbPress, as a plugin since it’s SF specific, however I’ve seen a number of other threads which indicate a more generic solution would be useful:
http://bbpress.org/forums/topic/807?replies=6#post-4906
http://bbpress.org/forums/topic/1213?replies=2
http://bbpress.org/forums/topic/1089?replies=2#post-6870
Will someone please help? I can’t write the code to make it so, but am willing to trade time with someone who can. Or perhaps you’d like a nice map or poster from the Yukon? Just let me know what you’d like.
Thank you for your time and reading this far,
-matt
—
For what it’s worth, the scenario that got me started on this was being locked out of my own forum while testing, exactly like this fellow:
http://bbpress.org/forums/topic/770?replies=3#post-4650
thank you Trent for the workaround posted there!
I should have tested everything. >_< A new problem’s come up somewhere down the line and new topics are not created. On the one hand it’s not working for me … on the other hand I’m too tired to fix it now.
I don’t advise download until I’ve fixed it.
Crowspeaker, started working on that but it’s been a little disrupted.
Sorry >_<
bbPress database error: [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 ' '', , '', '2007-06-08 00:25:43'' at line 4]
INSERT INTO bb_topics (topic_title, topic_slug, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id) VALUES ('Lorem, err, what was it again?', 'lorem-err-what-was-it-again', , '', , '', '2007-06-08 00:25:43', '2007-06-08 00:25:43', 5)
Exactly, this is scheduled for the next release and is working in the latest TRAC version. Be warned prior to downloading, that it is a developmental version of bbPress and may not work 100%. I run it on my site, but I am comfortable working with errors! It is better to ask yourself that question prior to testing out the TRAC version.
Trent
Jnewing, it is possible to give forums subforums in the latest development version. Grab a copy of 1.0-alpha off trac or wait for release.