#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Convert bbPress Quo...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Convert bbPress Quotes to wpForo Quotes

    Last Post
RSS

OMTesla
Posts: 209
 OMTesla
Topic starter
February 14, 2022 3:34 pm
(@omtesla)
Active Member
Joined: 6 years ago

Hello

I m trying to convert the old bbPress Quotes to the wpForo ones, by doing search replace in the database, this how it is bbPress code and wpForo one.

Check my attachment because it seems wpForo is damaging what I write with codes.

 wpForo-Quotes.png
Forum Page URL
https://itesla.org/forums/
wpForo Version
1.9.9.1
WordPress Version
5.9
PHP Version
7.3.32
MySQL version
8.0.23-0ubuntu0.20.04.1
Topic Tags
bbpress quotes bbpress to wpforo
16 Replies
Chris
Posts: 1449
 Chris
Admin
February 16, 2022 11:26 am
(@chris)
Support Team
Joined: 12 months ago

Hi @itesla,

What you are doing won't fix your problem. You need  a PHP script to fix the issue with regular expressions, and this is not an easy work with which I could help you here, you will need a Developer for such a work.

And I want to let you know that we have Go2wpForo free tool, which can help to migrate from several forums to wpForo. I would recommend you to check the information about the tool: https://wpforo.com/docs/root/migrate-to-wpforo/

 

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
15 Replies
OMTesla
 OMTesla
(@omtesla)
Joined: 6 years ago

Active Member
Posts: 209
February 17, 2022 12:41 pm
Reply toChrisChris
Posted by: @chris

Hi @itesla,

What you are doing won't fix your problem. You need  a PHP script to fix the issue with regular expressions, and this is not an easy work with which I could help you here, you will need a Developer for such a work.

And I want to let you know that we have Go2wpForo free tool, which can help to migrate from several forums to wpForo. I would recommend you to check the information about the tool: https://wpforo.com/docs/root/migrate-to-wpforo/

 

 

Hello

My forum is already migrated to wpForo, the developers helped long time ago.

Not sure why Robert did not find a solution for this problem yet, because those quotes are displayed as ordinary text and it's confusing when reading the old replies. I want to keep my website as an archive for the future generations and everything must be proper.

Thank you.

Reply
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
February 17, 2022 2:22 pm
Reply toOMTeslaOMTesla
Chris

@itesla 

ask for a code on > Stack Overflow
I think you need a code like this > BBCODE, preg_replace and double quotes

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
OMTesla
 OMTesla
(@omtesla)
Joined: 6 years ago

Active Member
Posts: 209
February 18, 2022 9:47 am
Reply toTutrixTutrix
OMTesla
Chris

@tutrix 

Where should I add this code?

<?php
$out = '[quote=user1;1] [quote=user0;0]some content here[/quote]this is my reply to user0 post[/quote]';
$cnt = 1;
while($cnt != 0){
    $out = preg_replace('/\[quote\=(.*?);(.*?)\](.*?)\[\/quote\]/ms', '<blockquote>Posted by: \1 at \2.<br/>\3</blockquote>', $out, -1, $cnt);
}
echo $out;

I m sure it's not in functions php.

Thank you for good idea.

Reply
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
February 18, 2022 1:55 pm
Reply toOMTeslaOMTesla
Tutrix
OMTesla
Chris

@itesla 

This is only an example, this code does not work for your problem.
You must ask there for the correct code.

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
OMTesla
 OMTesla
(@omtesla)
Joined: 6 years ago

Active Member
Posts: 209
February 18, 2022 5:08 pm
Reply toTutrixTutrix
OMTesla
Tutrix
OMTesla
Chris

@tutrix 

I think it does the same thing I need, I have read that topic, please tell me where it must be added so I test, if it will not work then I will ask them on my problem, thank you.

Reply
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
February 18, 2022 5:46 pm
Reply toOMTeslaOMTesla
Tutrix
OMTesla
Tutrix
Chris

@itesla 

again

the code above is not complete, and has nothing to do with wpForo, BBPress or Wordpress
if you apply in it will crash the forum

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
OMTesla
 OMTesla
(@omtesla)
Joined: 6 years ago

Active Member
Posts: 209
February 19, 2022 12:30 pm
Reply toTutrixTutrix
OMTesla
Tutrix
OMTesla
Chris

@tutrix 

Ok I will ask them, but I doubt they will help, I try to solve other plugin problem and they deleted my topic, because that plugin was paid but it was no longer supported.

Thanks.

Reply
OMTesla
 OMTesla
(@omtesla)
Joined: 6 years ago

Active Member
Posts: 209
April 30, 2022 11:14 am
Reply toTutrixTutrix
OMTesla
Tutrix
OMTesla
Chris

@tutrix 

Hello
I asked for help but there is zero reply, it's like people just ignore me, same thing on wordpress,org.
Well i will show them soon who is the daddy.

Reply
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
April 30, 2022 12:09 pm
Reply toOMTeslaOMTesla
Tutrix
OMTesla
Tutrix
Chris

@itesla 

try this simple code, is without the user ID

<?php
while(preg_match('#\[quote\](.*)\[\/quote\]#isU', $tmpText))
$tmpText = preg_replace('#\[quote\](.*)\[\/quote\]#isU', '<blockquote>$1</blockquote>', $tmpText);
?>

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
OMTesla liked
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
April 30, 2022 8:45 pm
Reply toTutrixTutrix
OMTesla
Tutrix
OMTesla
Chris

maybe Benjamin has the right code for you 😉 

https://regexland.com/bbcode/

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
OMTesla
 OMTesla
(@omtesla)
Joined: 6 years ago

Active Member
Posts: 209
May 1, 2022 12:23 pm
Reply toTutrixTutrix
OMTesla
Tutrix
OMTesla
Chris

@tutrix 

Where it must be added?
Thank you.

Reply
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
May 1, 2022 2:14 pm
Reply toOMTeslaOMTesla
Tutrix
OMTesla
Tutrix
Chris

@omtesla 

I use for code snippets the Code Snippets Plugin

but have you already tested WP BBCodes to HTML Parser

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
OMTesla liked
OMTesla
 OMTesla
(@omtesla)
Joined: 6 years ago

Active Member
Posts: 209
May 2, 2022 11:36 am
Reply toTutrixTutrix
OMTesla
Tutrix
OMTesla
Chris

@tutrix 
I have try your code, then I installed the plugin but does not work, i even edited the plugin file to include a specific number from a reply and it still did not convert it, might be because the plugin is very old and abandoned.
Anyway I will ask some coder for help.

Thanks for all your help, God bless you.

Reply
Tutrix liked
Tutrix
 Tutrix
Beta Tester
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 631
May 3, 2022 6:42 pm
Reply toOMTeslaOMTesla
Tutrix
OMTesla
Tutrix
Chris

@omtesla 

I have tested this now with 2 quotes from this > topic

you can see it here and also edit >  https://regex101.com/r/sRSOfp/1

but unfortunately do not know how to apply this now via wordpress 😕 

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
OMTesla liked
OMTesla
 OMTesla
(@omtesla)
Joined: 6 years ago

Active Member
Posts: 209
May 5, 2022 11:46 am
Reply toTutrixTutrix
OMTesla
Tutrix
OMTesla
Chris

@tutrix 

I will have a look, maybe learn coding myself, thank you!

Reply
Tutrix liked
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • How to use bbPress and wpForo?
    11 months ago
  • Extremely slow migration from BBPress to WPforo using the migration tool
    3 years ago
  • Re-Sync bbPress to wpForo
    3 years ago
Topic Tags:  bbpress (6), quotes (1), bbpress to wpforo (3),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • New Feature About Plugin Customization and Integration

    By z14165899, 6 hours ago

  • WordPress Email sending function wp_mail() doesn't work!

    By feassistant, 13 hours ago

  • Import users from IPBoard

    By jesusdlg, 1 day ago

  • Intruder signing in to wpforo without approval

    By plaurits, 1 day ago

  • How to make new user to get approve manually before creating post and profile.

    By Adhyansh21, 2 days ago

  • Posts deleted in database still show up on front-end

    By nylex, 3 days ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • spam33
  • editor33
  • menu33
  • shortcode32
  • forum accesses30
  • widget29
View all tags (2194)

Recent Posts

  • RE: HT Access file advice

    Guys, thank you very much for your advice that helped m...

    By Tergaros, 5 hours ago

  • RE: User banned for using icons?

    I know they are banned for outright spam and links. But...

    By Tergaros, 5 hours ago

  • About Plugin Customization and Integration

    Hello gVectors Support Team: I...

    By z14165899, 6 hours ago

  • RE: WordPress Email sending function wp_mail() doesn't work!

    @dimalifragis thanks for the enlightenment there. It...

    By feassistant, 7 hours ago

  • RE: Intruder signing in to wpforo without approval

    Maybe at Wordpress.org ?

    By dimalifragis, 15 hours ago

  • Import users from IPBoard

    Hello, Is it possible to import users from ipboard? (...

    By jesusdlg, 1 day ago

  • RE: Description for each topic?

    Why is this such a hard question to answer? You have ...

    By Christine, 1 day ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,938 Topics
50.3 K Posts
12 Online
48.4 K Members

Latest Post: HT Access file advice Our newest member: 3 Life Saving Techniques For A... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation