Search Results for 'bbpress'
-
Search Results
-
Topic: Punbb -> BBPress
I took Bruno Torres’ converter script as a foundation, and re-wrote it to work with the Punbb database architecture. Also, added in a tiny bit of string clean up, since Punbb allows foreign characters in the username field, and BBPress does not.
Here’s the code to look at:
http://utopian.net/code/punbb-importer.phps
And in a handy .zip for download:
http://utopian.net/code/punbb-importer.zip
A few important notes, since this is NOT at all pretty –
1) It uses a lot of memory, so make sure PHP has access to at least 16mb in php.ini. If I had more than 20 minutes to devote to this, I’d look into that and try to improve it, but hey.
2) If you’re importing a lot of data, you may need to split up the resultant sql file into smaller files less than 2mb in size. Add this to the list of things I would automate if I needed to use this script more than once.
3) I am using BBPress integrated with WPMU and included lines for importing into the WordPress user tables. After I noted and fixed the problem converting Punbb’s lax, apostrophe-laden usernames to nice and sanitary WP-friendly ones, the script ran like a charm. Seriously, if I’d known it would be this easy I would have done this six months ago.
4) The forum-parent to forum relationship imported correctly into the database, but displayed a little funny, so I manually re-ordered the forum items in the database and massaged the template a little bit to recognize forum parents a little bit differently, more PunBB style.
5) A clean WPMU and BBPress install is ideal, but I already had ten existing WP users, half of whom had a user account in the PunBB data I was merging. For such a small data set, it was very easy to manually correct this by deleting the PunBB users and making sure that the imported topics and posts for those users pointed to their current id.
Hopefully this will be a good start for those of us looking to move existing PunBB forums to BBPress & WordPress. Good luck, and let me know if you use it!
I am new to this forum.
I had a corrupted bbPress forum install.
I have to drop the bb_ tables and do a reinstall.
Hopefully, it is ok if I post this.
My web hosting servers are Unix.
The servers have php v 4.4.0 installed
phpMyAdmin isn’t installed
Apparently, I have to download phpMyAdmin 2.10.2.tar.tz
It is unclear from my web hosting service support if I should
place phpMyAdmin 2.10.2.tar.tz in the public_html directory.
Should I create a directory phpAdmin?
I am running Windows 2000 Professional on my computer.
Then I should download and use PuTTY: A Free Telnet/SSH Client to telnet to my server.
Then use a command to unbundle the phpMyAdmin 2.10.2.tar.gz file
Then access my php database
issue the command show tables
then the command drop bb_ tables which are the bbPress tables
then try a reinstall of bbPress forum software
Topic: Attchment Uploader
Hey guys,
wordpress already has an attchment uploader, doesn’t it? is there a chance to build a plug-in for bbpress using that code?
grz,
jaithn
I did an install.
The link to my site wasn’t correct.
The next portion of the install didn’t look like
There wasn’t a clean Adminstrator login and the web page was barren with links.
How do I clean out my orginal terrible install, then install again?
I decided to delete all the files from my server.
I edited the config.php again.
I FTPed the directory again.
I entered http://www.mysite.com/forum/bb-admin/install.php in my browser
I received a message that I had already installed do you mean upgrade?
If anyone is having problems with RSS feeds in firefox and other browsers, like e.g. like below:
XML Parsing Error: xml declaration not at start of external entity
Location: http://mysite/rss.php?profile=1
Line Number 2, Column 1:<?xml version=”1.0″?><!– generator=”bbPress” –>
It might have to do with the plugin MoveIT. Disable it and your back in business. See this post for more info:
Can anyone tell me how to begin to address this problem? After installing on web server getting this error:
bbPress database error: [You have an error in your SQL syntax near ‘FROM bb_topics WHERE topic_status = 0 AND topic_sticky <> 2 ORDER BY topic_time’ at line 1]
SELECT SQL_CALC_FOUND_ROWS * FROM bb_topics WHERE topic_status = 0 AND topic_sticky <> 2 ORDER BY topic_time DESC LIMIT 30
I don’t even know where to begin to fix this. I’ve run bbpress on local environment and other hosts flawlessly, but on this company I’m getting these errors. I’m a SQL novice so if anyone can babystep this for me I’d appreciate it.
Thanks
Topic: Plugin: Admin Post Anything
Been meaning to do this for awhile, didn’t realise how easy it was. This makes bbPress behave more like WordPress in that admin (keymasters/administrators) can post any content regardless of tag restrictions for the rest of members. This includes images, javascript, objects like flash video player, etc.
<?php
/*
Plugin Name: Admin Post Anything
Plugin URI:
Description: allows keymaster/administrators to post any content regardless of tag restrictions
Author: _ck_
Author URI: http://CKon.wordpress.com
Version: 0.02
*/
function bb_admin_post_anything($text) {
if (bb_current_user_can('administrate') ) {
remove_filter( 'pre_post', 'encode_bad' );
remove_filter( 'pre_post', 'bb_encode_bad' );
remove_filter('pre_post', 'bb_filter_kses', 50);
$text=addslashes($text);
$text=bb_autop($text);
}
return $text;
}
add_filter('pre_post', 'bb_admin_post_anything',9);
?>
/?</loc>