Search Results for 'phpbb'
-
Search Results
-
no experience with wordpress or bbpress but it looked great so i installed it… next up was an attempt to “import” my phpbb data to bbpress using the dashboard import tool but, sadly, a phpbb install plugin was not among those listed in the dashboard so i had to search the plugins directory… not knowing which one was best, i blindly chose the “CMS2CMS: phpBB to bbPress Forum Convertor” and began the migration process.. well surprise, surprise, shortly after the program began the migration a popup window reared its ugly head asking for $38 in order to complete a full migration… what the f is that all about? so is the wordpress life? wordpress plugin life? plugins are listed with no indication that they cost x amount of dollars until after you install the thing and try to use it? what sort of nonsense is that? how does this practice fly with wordpress? it’s enough to send a prospective wordpress user running in the direction of other alternatives, good grief…
i’m having a bit of a tough time understanding the wordpress flow and my exact needs in order to setup a standalone wordpress-based forum…..
– do i need both bbpress and buddypress?
– assuming i don’t “need” both, is it advantageous to have both?
– do i need a wordpress page? i thought this was the case, so i registered and signed up for an annual wordpress account.. now that i’ve installed bbpress, it appears that i don’t actually need a wordpress page or an annual account, is this correct?
– how do i import a phpbb 3.1 forum into wordpress? i read the tutorial but a phpbb import tool isn’t included among the other import tools…my goal is to set up a phpbb-type forum/discussion, i’m not interested a wordpress blog or the like, just a discussion board. is this something i can achieve with bbpress, bbbuddy, the combo of both? or for a standalone forum is phpbb actually recommended over a wordpress-based option? thank you for your time.
Topic: Urgent: Performance issues
Hi everybody,
I’ve just finalised the migration from PhpBB to BBpress.
I’have noticed that when I open a read a topic for the first time, there’s some processing happening in the background the takes time depending on the number of replies in that topic.– hundred of replies can take more than 10 seconds. Once I am in the topic, if I open it again with another user, it’s fast.
– thousand of replies can end up in a ” PHP Fatal error: Maximum execution time of 30 seconds exceeded”
– also, a test I did on a topic with about 40K replies ended up in an “Allowed memory size of XXXX bytes exhausted (tried to allocate 4096 bytes) in Unknown on line 0” error.I am on a dedicated server and I can change all the memory and execution time limits parameters, but I have the feeling this should not be the solution.
I don’t understand why there0s so much processing happening.After a second look, I’ve noticed that the replies are not paginated. So the system tries to return all the replies in one shot.
I’ve tried to change the pagination settings and also to deactivate/reactivate the plugin but it didn’t fix the issue.Even when I move a topic in the thrash, there’s some php logic that eliminates the replies one by one and can take a minute when the topic has 40 replies.
Is this normal?
Anyone who can help?
Thanks,
Gio
Hi, our worpress site uses twenty fifteen theme and we want to add a forum to it. I am wondering if bbpress would be a good idea and will fit in the main content div without any problems. I read somewhere that bbpress has a strnage bahviour using this theme due to the big sidebar. Any experiences? Should we go with bbpress if we use this theme or better a separate forum script like phpbb? The site is this one Bellefem adelgazar. Thanks!!
I recently migrated a phpBB forum to bbPress. I currently use 2.6 alpha version. The participants count of all topic is 0. When I try to run the fixing tool it reset all the topics to 1. Even if there are several participants and it happen also for a new topics on the forum after the migration. I think that it doesn’t count the gusets, the participants who don’t have account on the forum. It should also count the guest participants because for a forum that allow to guests to post topics there is no point to show the count of participants if all topics shows 0.
Topic: phpbb Import Question
I’m trying to import a phpbb forum with about 50,000 posts into a local dev site.
It continually stalls at “Converting topics (4900-4999)”
I’m trying to follow the instructions here:
which say to make a copy of the db and drop all records except within the offending range and try the import again to isolate the problematic row.Should I go into phpbb_topics or phpbb_topics_posted to try and look for the offending problem?
Once I have the right table, do I then delete the first 4899 rows that appear in the db?
I’m using the latest WordPress and have tried both bbpress 2.5.9 and 2.6alpha.
Thanks for any help you can give me.
[Warning]: DO NOT DO THIS ON A PRODUCTION DATABASE!
My apologies for the caps, but this is really important 😉[Assumptions]: Debian/Ubuntu developmachine with phpMyAdmin.
[Note]: Obviously I haven’t tested all Apache/MySql versions. This was done on SolydK (Debian Jessie). It is also not perfect. So, if somebody can improve on the code. Please, let me know.
After you’ve setup a development machine, imported the phpBB data and checked that everything is working fine, you still need to convert the phpBB internal links like “viewtopic.php?p=####” or “viewtopic.php?t=####” to the slugs that are being used by bbPress.
Let’s start!
1) First you’ll need to install and compile lib_mysqludf_preg.
Create a bash file install_preg.sh with this content:#!/bin/bash apt-get update apt-get install libpcre3-dev libmysqlclient-dev build-essential libmysqld-dev libpcre3-dev wget https://github.com/mysqludf/lib_mysqludf_preg/archive/testing.zip unzip testing.zip cd lib_mysqludf_preg-testing ./configure make install make MYSQL="mysql -p" installdb service mysql restartMake it executable:
chmod +x install_preg.shAnd run it:
./install_preg.sh2) Install the stored procedures.
In phpMyAdmin, select the database and the SQL tab.
Paste the following codes separately, creating three stored procedures on your database:DELIMITER $$ CREATE PROCEDURE sp_cleanup_replies() BEGIN -- declare cursor for reply url change DECLARE reply_cursor CURSOR FOR SELECT DISTINCT old_post_id, REPLACE(<code>xkcom_posts</code>.<code>guid</code>, 'http://yoursite.com', '') AS new_url FROM (SELECT CAST(CONVERT(PREG_CAPTURE('/#p([0-9]+)/i', <code>post_content</code>, 1) USING UTF8) AS UNSIGNED) AS old_post_id FROM <code>xkcom_posts</code>) AS t1 INNER JOIN <code>xkcom_postmeta</code> ON <code>xkcom_postmeta</code>.<code>meta_value</code> = old_post_id INNER JOIN <code>xkcom_posts</code> ON <code>xkcom_posts</code>.<code>ID</code> = <code>xkcom_postmeta</code>.<code>post_id</code> WHERE <code>xkcom_postmeta</code>.<code>meta_key</code> = '_bbp_old_reply_id' AND old_post_id IS NOT NULL ORDER BY old_post_id DESC; SELECT 'sp_cleanup_replies: START'; -- Change posts OPEN reply_cursor; BEGIN DECLARE old_reply_id MEDIUMINT; DECLARE new_url VARCHAR(255); DECLARE search_string VARCHAR(255); DECLARE done INT DEFAULT FALSE; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; read_loop: LOOP FETCH reply_cursor INTO old_reply_id, new_url; IF done THEN LEAVE read_loop; END IF; SET search_string = CONCAT('|[a-z0-9\.\-:\/&=\?\+]+#p', old_reply_id, '|i'); SELECT CONCAT('sp_cleanup_replies: replace ', search_string, CONCAT(' with ', new_url)); -- Uncomment the following line if you want to test the regexp -- SELECT CONVERT(PREG_REPLACE(search_string, new_url, <code>post_content</code>) USING UTF8) FROM <code>xkcom_posts</code> WHERE INSTR(<code>post_content</code>, CONCAT('#p', old_reply_id)) > 0; LEAVE read_loop; UPDATE <code>xkcom_posts</code> SET <code>post_content</code>= CONVERT(PREG_REPLACE(search_string, new_url, <code>post_content</code>) USING UTF8) WHERE INSTR(<code>post_content</code>, CONCAT('#p', old_reply_id)) > 0; END LOOP; END; CLOSE reply_cursor; SELECT 'sp_cleanup_replies: DONE'; END$$ DELIMITER ;DELIMITER $$ CREATE PROCEDURE sp_cleanup_topics() BEGIN -- declare cursor for topic url change DECLARE topic_cursor CURSOR FOR SELECT DISTINCT old_topic_id, REPLACE(<code>xkcom_posts</code>.<code>guid</code>, 'http://yoursite.com', '') AS new_url FROM (SELECT CAST(CONVERT(PREG_CAPTURE('/t=([0-9]+)/i', <code>post_content</code>, 1) USING UTF8) AS UNSIGNED) AS old_topic_id FROM <code>xkcom_posts</code>) AS t1 INNER JOIN <code>xkcom_postmeta</code> ON <code>xkcom_postmeta</code>.<code>meta_value</code> = old_topic_id INNER JOIN <code>xkcom_posts</code> ON <code>xkcom_posts</code>.<code>ID</code> = <code>xkcom_postmeta</code>.<code>post_id</code> WHERE <code>xkcom_postmeta</code>.<code>meta_key</code> = '_bbp_old_topic_id' AND old_topic_id IS NOT NULL ORDER BY old_topic_id DESC; SELECT 'sp_cleanup_topics: START'; -- Change topics OPEN topic_cursor; BEGIN DECLARE old_topic_id MEDIUMINT; DECLARE new_url VARCHAR(255); DECLARE search_string VARCHAR(255); DECLARE done INT DEFAULT FALSE; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; read_loop: LOOP FETCH topic_cursor INTO old_topic_id, new_url; IF done THEN LEAVE read_loop; END IF; SET search_string = CONCAT('|[a-z0-9\.\-:\/&=\?\+]+t=', old_topic_id, '|i'); SELECT CONCAT('sp_cleanup_topics: replace ', search_string, CONCAT(' with ', new_url)); -- Uncomment the following line if you want to test the regexp -- SELECT CONVERT(PREG_REPLACE(search_string, new_url, <code>post_content</code>) USING UTF8) FROM <code>xkcom_posts</code> WHERE INSTR(<code>post_content</code>, CONCAT('t=', old_topic_id)) > 0; LEAVE read_loop; UPDATE <code>xkcom_posts</code> SET <code>post_content</code>= CONVERT(PREG_REPLACE(search_string, new_url, <code>post_content</code>) USING UTF8) WHERE INSTR(<code>post_content</code>, CONCAT('t=', old_topic_id)) > 0; END LOOP; END; CLOSE topic_cursor; SELECT 'sp_cleanup_topics: DONE'; END$$ DELIMITER ;DELIMITER $$ CREATE PROCEDURE sp_cleanup_missing() BEGIN -- declare cursor for reply url change DECLARE missing_cursor CURSOR FOR SELECT DISTINCT old_post_id FROM (SELECT CAST(CONVERT(PREG_CAPTURE('|/&[a-z0-9=\+]+#p([0-9]+)|i', <code>post_content</code>, 1) USING UTF8) AS UNSIGNED) AS old_post_id FROM <code>xkcom_posts</code>) AS t1 WHERE old_post_id IS NOT NULL ORDER BY old_post_id DESC; SELECT 'sp_cleanup_missing: START'; -- Change posts OPEN missing_cursor; BEGIN DECLARE missing_reply_id MEDIUMINT; DECLARE search_string VARCHAR(255); DECLARE done INT DEFAULT FALSE; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; read_loop: LOOP FETCH missing_cursor INTO missing_reply_id; IF done THEN LEAVE read_loop; END IF; SET search_string = CONCAT('|[a-z0-9&=\+]+#p', missing_reply_id, '|i'); SELECT CONCAT('sp_cleanup_missing: remove ', search_string); -- Uncomment the following line if you want to test the regexp -- SELECT CONVERT(PREG_REPLACE(search_string, '#', <code>post_content</code>) USING UTF8) FROM <code>xkcom_posts</code> WHERE INSTR(<code>post_content</code>, CONCAT('#p', missing_reply_id)) > 0; LEAVE read_loop; UPDATE <code>xkcom_posts</code> SET <code>post_content</code>= CONVERT(PREG_REPLACE(search_string, '#', <code>post_content</code>) USING UTF8) WHERE INSTR(<code>post_content</code>, CONCAT('#p', missing_reply_id)) > 0; END LOOP; END; CLOSE missing_cursor; SELECT 'sp_cleanup_missing: DONE'; END$$ DELIMITER ;3) Run the stored procedures from terminal.
It is important that you check some example posts with links that need to change. First the post links like “viewtopic.php?some_parameters#p#####”, then topic links like “viewtopic.php?some_parameters&t=#####” and lastly the links to missing posts are removed.mysql -u root -p -e 'CALL sp_cleanup_replies()' my_databasemysql -u root -p -e 'CALL sp_cleanup_topics()' my_databasemysql -u root -p -e 'CALL sp_cleanup_missing()' my_databaseNow, check your posts and when you’re happy you can drop the stored procedures:
DROP PROCEDURE IF EXISTS sp_cleanup_replies; DROP PROCEDURE IF EXISTS sp_cleanup_topics; DROP PROCEDURE IF EXISTS sp_cleanup_missing;Mod note: edited and changed dev site from contributer to yoursite.com
Topic: Wrong last topic
Hi all,
On my forum, the latest Topic / freshest Topic sometimes shows the wrong topic as you can see here:
http://imgur.com/E1Y9Bu9 newest post is about 1 day, 18 hours old.It always reverts back to the same thread, which was comverted from a phpbb forum.
I have tried recounting using the integrated tools, but that does not seem to work, however when i post a new topic it will work as intended showing the right post for about a day or two, and then go back.
[I am just creating a new topic about this]
I’ve finally completed the conversion (took only 8 hours against the 2 days of the previous versions).
Nevertheless, big problem here: I can see no forum after the conversion.
I’ve been checking the database schema in which wordpress is installed and nothing….
I can only find an empty wp_bbp_converter_translator table and for the rest: no users converted, no posts, no forum and topics tables.Does someone has any idea why this happened?
It actually looked like it was converting something and the number of interactions I’ve seen in the log during the conversion matches the actual numbers in PhpBB.I would appreciate if someone can help.
Thanks,
Gio