Search Results for 'code'
-
Search Results
-
Hi there!
We’re trying to move our forums from a custom Q&A platform to bbPress… very glad there is now an importer! 🙂
So I copied example.php to myimport.php, changed the class name, and updated the tables/columns that apply (the ones that exist in the old database).
And ran the import…
But I keep running into import errors for fields that don’t apply as they don’t exist in the other database, like forums_table.the_reply_count
So for a field that just does not exist in the old database, what’s the proper syntax for “ignore this”? 🙂
For example, this one…
// Forum topic count (Stored in postmeta) $this->field_map[] = array( 'from_tablename' => 'forums_table', 'from_fieldname' => 'the_topic_count', 'to_type' => 'forum', 'to_fieldname' => '_bbp_topic_count' );I looked for this on the importer codex page, but just don’t see it. 🙂
Thanks!
DanTopic: locked out of admin
I recently moved our bbPress installation from one folder to another. Everything seemed to go well, accept when I loggged in, my admin account lost all admin privileges.
Fortunately, I have another second test bbPress installation and could see what admin status looks like in phpmyadmin.
So, in the first installation, using phpmyadmin, in the metavalue of the wp_usermeta table, I changed:
a:2:{s:10:"subscriber";i:1;s:15:"bbp_participant";b:1;}to…
a:2:{s:13:"administrator";b:1;s:13:"bbp_keymaster";b:1;}It seems to work. My admin account has admin privileges.
Now I understand the administrator and bbp_keymaster in the string, but what about the rest of the characters? For example, I changed s:10 to s:13.
Is this OK?
I’m just not sure what these other characters mean and what they need to be.
Thanks for any help.
I already coded a private bbPress Plugin, that extends it to something like Mailman.
It just periodically catches mails to @forum.domain.tld via IMAP and adds a new reply to the topic with the Mail content (quotation skipped).
The notification is tweaked: the Reply-To header is replaced by reply-[topic-id]@forum.domain.tld, so the user can easily reply to the topic. But this is currently done by completely replacing thebbp_notify_topic_subscribersfunction with my own one (including the original content, just replacing the Reply-To).
All calls tobbp_subscription_mail_headersandbbp_subscription_from_emailorbbp_subscription_to_emailare just called with$headersor the address itself. As of 1.5.6 the Reply-To is no longer set by bbPress.Will there be a way to include the topic-id (preferred in header altering) in upcoming releases? Or maybe a solution by bbPress itself to respond to notification Mails?