Search Results for 'code'
-
Search Results
-
Any chance you’ll switch to the new wider template here?
Narrow templates require too much up/down action and look kinda 1990’s-ish – might be turning off some potential new <s>victims</s> users.
Also, did the overflow:auto get removed for posts? I am noticing this week that posts with wide code seem to be overflow:hidden and the text gets cut off. Didn’t do that before… used to get scroll arrows…
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!
Hi, all…
I’ve looked around and haven’t been able to find a solution to my problem…
My forum, elephantwords.co.uk/forum, has a “last poster” bit at the bottom of each page, that, on thread and forum pages, shows the last poster to have posted… I’ve used the Get_User_Profile_Link to make the name of the poster link to the last poster’s profile.
The thing is, it doesn’t work. Go to the site to see what I mean, but when you mouseover the link, a message across the bottom of the browser says “Missing Argument 1 for Get_User_Profile_Link”
I don’t know any php, and I’ll admit to having nabbed most of the code from other templates. However, I’m convinced that this worked when I first put it in, and I’ve no idea how to fix it now. The Latest Discussions bit, which is next to it in the bottom page navigation, works fine.
Does anyone have a clue what’s up here? My flabber is totally gasted…
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