Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Validate matching quote BBCode tags. Details »
Validate matching quote BBCode tags.
Mod Version: 1.3.0, by raywjohnson (Coder) raywjohnson is offline
Developer Last Online: Jan 2020 I like it Show Printable Version Email this Page

vB Version: 3.8.0 Rating: (7 votes - 5.00 average) Installs: 34
Released: 15 May 2009 Last Update: 18 Sep 2013 Downloads: 169
Supported Uses Plugins Additional Files Re-usable Code Translations  

Quotes Validation

I created this modification to help alleviate the need to edit posts that have invalid/mismatched QUOTE tags. For a busy forum, correcting bad QUOTE tags can become a big problem for your moderators.

Messages (new or edited) rejected by this mod will return the member to the post submission form with the phrase: "One or more of [quote] tags are missing or mismatched. All posts are required to have proper matching quotes."

I have been running it on my board for a month or so without problems. It may run on versions older then 3.8, but I have not tested that.

I have created a number of mods for my board, this is the first one I have released!

--RayJ

NOTE: Plugin works on vBulletin version 4

Description
Check new and edited posts for valid/matching open and close [quote] BBCode tags.
*Should* work with any number of nested or included quote tags.

Details
1 Product XML with 3 Plugins, 2 Phrases, 5 Settings, and 0 Queries
1 File/Class
No template modifications.

Files
class_verifyquotes.php
install.txt
license.txt
license-vqbc_rayj2009.txt
v1.3 = product-vqbc_rayj2009_1-3.xml
v1.2 = product-vqbc_rayj2009_1-2.xml
v1.1 = product-vqbc_rayj2009_1-1.xml
v1.0 = product-vqbc_rayj2009.xml

Upgrading
v1.0-v1.1 :
Upload class_verifyquotes.php file to the /includes/ directory
import product-vqbc_rayj2009_v1-1.xml (Allow Overwrite)
v1.(0/1)-v1.2 :
Upload class_verifyquotes.php file to the /includes/ directory
import product-vqbc_rayj2009_v1-2.xml (Allow Overwrite)
v1.(0/1/2)-v1.3 :
Upload class_verifyquotes.php file to the /includes/ directory
import product-vqbc_rayj2009_v1-3.xml (Allow Overwrite)

History
1.0
Initial Version
1.1
Added plugin: newpost_preview
Added setting: Auto Preview Mode.
If active, the system will automatically put you in preview mode, and display the error message in the post area, when QUOTE mismatches are found.
Added phrase: To display CSS around "in post" error message.
Bug Fix: versions v1.0 and v1.1 (Note: fix already applied to all versions)
Memory leak causes download dialog for all browsers (for large posts). Download quotes_validation_bugfix.zip (contains: class_verifyquotes.php) and upload it. Fixes all previously installed versions.
1.2
Added Option: Style (CSS) for error message
Added Option: Bad Quotes Error Message
This will let you edit the Error Message and CSS that controls the output without having to edit the phrase directly. I left the original phrase code in place so that it will not get wiped out when you upgrade. You will have to search for the phrase (vqbc_bad_quotes_error) and copy it to the new setting.
Changed the phrase that displays the "in post" error message to work with the new options.
1.3
Bug Fix: Removed recursion and complex regular expressions. These were causing issues with large posts.
Added Option: Ignored Tags (allows you to add tags to be ignored during validation, note: noparse is always ignored)

Notes
PHP 5.0+ required.
If you are still using PHP 4 (you should upgrade). Or you can edit the class_verifyquotes.php file and remove all public and private keywords (before each function). Then edit the product-vqbc_rayj2009_v1-1.xml file and remove the PHP 5.0 dependency line.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Disable [IMG] In [QUOTE] Tags Zero Tolerance vBulletin 3.0 Full Releases 47 18 Feb 2009 11:10

Comments
  #2  
Old 15 May 2009, 00:03
raywjohnson's Avatar
raywjohnson raywjohnson is offline
 
Join Date: Feb 2007
Real name: RayJ
My first mod release.

Enjoy!

--RayJ
Reply With Quote
  #3  
Old 15 May 2009, 01:11
Sofia Sofia is offline
 
Join Date: Oct 2006
Real name: Sofia
Yeah ! Not bad.

I will test it later. Thank you for this mod.
Reply With Quote
  #4  
Old 15 May 2009, 13:59
meissenation meissenation is offline
 
Join Date: Apr 2005
Great idea! I'm always fixing mismatched quotes. Thanks!
Reply With Quote
  #5  
Old 15 May 2009, 16:17
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Good idea, I'm tagging this to test it in a few days.

Thanks.
Reply With Quote
  #6  
Old 15 May 2009, 16:30
Tim Skellett Tim Skellett is offline
 
Join Date: Sep 2005
A great idea, many thanks, RayJ!
Reply With Quote
  #7  
Old 16 May 2009, 13:41
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Thumbs up

Great, great, GREAT idea!!!

Thank you so very much.
Reply With Quote
  #8  
Old 16 May 2009, 18:28
Supramania's Avatar
Supramania Supramania is offline
 
Join Date: Mar 2006
Real name: Michael Donohue
I get:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /path/to/forums/includes/class_verifyquotes.php on line 35

When it's active. Any ideas?
__________________
Reply With Quote
  #9  
Old 16 May 2009, 22:37
raywjohnson's Avatar
raywjohnson raywjohnson is offline
 
Join Date: Feb 2007
Real name: RayJ
Originally Posted by Supramania View Post
I get:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /path/to/forums/includes/class_verifyquotes.php on line 35

When it's active. Any ideas?
Yes! Are you running PHP version 4?

If so, open the file /includes/class_verifyquotes.php and remove the "public" and "private" before both function keywords.

--RayJ
Reply With Quote
  #10  
Old 16 May 2009, 23:08
Supramania's Avatar
Supramania Supramania is offline
 
Join Date: Mar 2006
Real name: Michael Donohue
Yes PHP 4.4.6 (cli)

That fixed it - works great now!
__________________
Reply With Quote
  #11  
Old 17 May 2009, 15:14
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Great mod, going to install this one, thank you!
__________________
Greetings, Black Tiger
Reply With Quote
  #12  
Old 17 May 2009, 15:37
Mark.B Mark.B is offline
 
Join Date: Feb 2004
Works great...

I do find on Quick reply it just takes you to a preview of the post if there's a mismatch, I think it could do with an error message here like on the full reply so people know what's wrong.
__________________
MARK.B (Member of the vB Support Team)
Reply With Quote
  #13  
Old 17 May 2009, 22:11
raywjohnson's Avatar
raywjohnson raywjohnson is offline
 
Join Date: Feb 2007
Real name: RayJ
Originally Posted by Mark.B View Post
Works great...

I do find on Quick reply it just takes you to a preview of the post if there's a mismatch, I think it could do with an error message here like on the full reply so people know what's wrong.
I tried to do this. But after several attempts, I could not get an acceptable system in place. The Quick reply is AJAX based and I need to take the time to learn how it works in vB. I may try to get the done at some point.

--RayJ
Reply With Quote
  #14  
Old 23 May 2009, 15:09
TCB's Avatar
TCB TCB is offline
 
Join Date: Jun 2004
sounds handy. Thanks
Reply With Quote
  #15  
Old 24 May 2009, 06:38
lm3a.net's Avatar
lm3a.net lm3a.net is offline
 
Join Date: May 2009
good mod

thanks,
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:40.

Layout Options | Width: Wide Color: