View Full Version : Mini Mods - Quote Improvements
tdev1
03-13-2011, 10:00 PM
What is this
this product should help you remove the clutter when users quote long posts and their images. It simply replaces all quoted images with links
New in version 1.2
Now with admin options so you can change the regular expressions easily. (see attached screenshot)
Installation
simply import the attached file as new product:
AdminCP > Plugin System > Manage Products > [Add/Import Product]
What it does
when a user replies with quotes, the plugins replace the [IMG] and [VIDEO] in the quoted text with using regular expressions:
$pagetext = preg_replace('/\[img\]([^\[]*)\[\/img\]/i','[url]$1', $pagetext);
The regular expression that are used can be configured in the admin options.
Compatibility
Since this product only uses two hooks (newreply_post_quote and newreply_quote) it should work on any VB version that supports those hooks. Be aware that other plugins that also rewrite quotes with those hooks might conflict with this product. (Simply test yourself)
How to add more replacements
Go to Admin -> Options -> Quote Improvements and add this as new line in the regular expression field:
/BLA/i || BLUB
This will replace any "BLA" with "BLUB" in quotes.
History
1.3 - 22nd of September 2013: fixed validation of the regular expression settings, improved plugin execution order, added link to online regexp testers in description.
1.2 - 22nd of September 2013: added option in admin -> options -> Quote Improvements
1.1 - added [video] support
1.0 - first version: updated (and cleaned/rewrote) the old mod from vb 3.5 : https://vborg.vbsupport.ru/showthread.php?t=107022
v123shine
03-14-2011, 07:26 AM
nice mod
Installs
Schoelle
03-14-2011, 05:01 PM
nice one! thank you!
zelnik
03-14-2011, 05:10 PM
is there anyway to incorporate [video] tags in this mod too?
Annoys the hell out of me when people keep quoting youtube videos! :)
Skyrider
03-14-2011, 07:55 PM
Is this any different over:
https://vborg.vbsupport.ru/showthread.php?t=252043
?
tdev1
03-14-2011, 08:40 PM
Is this any different over:
https://vborg.vbsupport.ru/showthread.php?t=252043
?
its basically the same, thanks for linking it :)
karabaja3
03-15-2011, 01:15 AM
Great!
Can you make same thing for this:
http://www.vbulletin.com/forum/showthread.php/199304-How-To-Make-a-YouTube-BB-Code
I would try it, but I do not want to mess something up. :(
OldSchoolDSL
03-15-2011, 01:44 AM
1) Will this affect smiles?
--- Think it would be best if it did not.
2) Can you apply this to videos?
tdev1
03-15-2011, 11:04 AM
Great!
Can you make same thing for this:
http://www.vbulletin.com/forum/showthread.php/199304-How-To-Make-a-YouTube-BB-Code
I would try it, but I do not want to mess something up. :(
uhm, there is already a video bbcode?
http://www.vbulletin.com/forum/misc.php?do=bbcode#videocode
1) Will this affect smiles?
--- Think it would be best if it did not.
2) Can you apply this to videos?
it does not affect anything except images right now.
is there anyway to incorporate [video] tags in this mod too?
Annoys the hell out of me when people keep quoting youtube videos! :)
i will add [video] to [URL] replacement later on :)
Cyamia
03-15-2011, 01:59 PM
This is a must-have mod! Thank you for the idea and the release!
karabaja3
03-15-2011, 02:17 PM
uhm, there is already a video bbcode?
http://www.vbulletin.com/forum/misc.php?do=bbcode#videocode
I ment a auto replacment in reply. From embed to url. Like this mod for IMG
Eg. eOUq4Z6R7xI to http://www.youtube.com/watch?v=eOUq4Z6R7xI
tdev1
03-16-2011, 12:11 AM
I ment a auto replacment in reply. From embed to url. Like this mod for IMG
Eg. eOUq4Z6R7xI to http://www.youtube.com/watch?v=eOUq4Z6R7xI
just added support for replacing [video] to [url] as well as requested :)
sticky
03-16-2011, 09:09 AM
I already have url's implemented from another mod, could I use this just with video?
Dr.osamA
03-17-2011, 12:15 AM
Excellent
installed + 5 stars
thank you bro keep it up
karabaja3
03-17-2011, 05:06 PM
just added support for replacing [video] to [url] as well as requested :)
Thank you so much! :up:
sticky
03-30-2011, 11:46 AM
I already have url's implemented from another mod, could I use this just with video?
Please answer?
tdev1
04-07-2011, 09:37 AM
Please answer?
sorry, overlooked.
Should be very possible to install and use both.
farahi
04-11-2011, 08:31 PM
nice mod
Bulent Tekcan
04-30-2011, 08:44 AM
not work on 3.8.4 ? Any solution ?
tdev1
05-01-2011, 09:50 AM
not work on 3.8.4 ? Any solution ?
the mod is intended to work on any 4.x installations. We never said its 3.x compatible :-\
maybe you could change the hooks and it could work again?
i have no 3.x installation for testing atm
zelnik
06-28-2011, 03:51 PM
This mod is not compatible with the youtube automatic parser, is there a way of fixing it?
Thanks!
cstreater
09-20-2011, 04:07 PM
the mod is intended to work on any 4.x installations. We never said its 3.x compatible :-\
maybe you could change the hooks and it could work again?
i have no 3.x installation for testing atm
Why did you post this (https://vborg.vbsupport.ru/showpost.php?p=2173156&postcount=84) then? :confused:
AutoMinded
09-25-2011, 07:54 PM
I've edited this mod so the quoted pictures will display as thumbnails rather than links. Hopefully this is no problem for you. Personal use only.
14DH01
01-19-2012, 12:21 PM
Hello,
How to existing topics quote?
the hacks works for future citation image and video how to put the quote in url links?
how to update for all post? It only work from now on.
Thank you
__________________________________________________ ____________
Bonjour,
Comment faire pour les sujets existant en citation ?
le hacks fonctionne pour les futur citation image et video comment faire pour mettre les liens de citation en url ?
comment mettre à jour pour tous les messages? Il ne fonctionne qu' à partir de maintenant.
merci
sticky
01-21-2012, 03:03 AM
No longer works with 4.1.10, anyone have a fix?
14DH01
01-21-2012, 11:36 AM
Is this any different over:
https://vborg.vbsupport.ru/showthread.php?t=252043
?
tries that the
I have the 4.1.10 works well with Mod Version: 1.1
_________________________________________
essaye celui la
Moi j'ai la 4.1.10 fonctionne bien avec Mod Version: 1.1
A+
sticky
01-21-2012, 11:19 PM
tries that the
I have the 4.1.10 works well with Mod Version: 1.1
_________________________________________
essaye celui la
Moi j'ai la 4.1.10 fonctionne bien avec Mod Version: 1.1
A+
Thanks, I'll try it.
sticky
01-30-2012, 06:37 AM
Anyone else having trouble with attached images not displaying as links in 4.1.10?
hazem_aliraqi
01-30-2012, 11:15 AM
thank you ,, installed
Bulent Tekcan
03-06-2012, 07:44 AM
Images not displayed with 4.1.11
tdev1
09-22-2013, 10:10 AM
New version 1.2 featuring some admin options Admin -> Options -> "Quote Improvements"
Tested and working with VB 4.2.1
UPDATE: v 1.3 now with some fixes, see first post :)
Marcin1
11-29-2014, 03:33 PM
This mod works perfectly but after small improvements in code!
ozzy47
11-29-2014, 03:38 PM
Well it would be nice if you described what the small improvements did, and share what you changed, so others can benefit from it. :)
Marcin1
11-30-2014, 06:53 PM
Try this uploaded file :)
ozzy47
11-30-2014, 09:08 PM
I don't use this mod, so it is best to describe what the changes do, and provide screenshots so users can see. :)
dknelson
09-08-2016, 11:32 AM
Doesn't seem to work in 4.2.4 beta 1. No errors but images still show up in quoted text. Any ideas?
Bulent Tekcan
02-11-2020, 10:42 AM
It didn't work with 4.2.x
sticky
05-10-2020, 09:39 PM
Works for me 4.2.5
How do I add a line to hide [attach] ?
sticky
05-10-2020, 09:40 PM
Works for me 4.2.5
How do I add a line to hide [attach] ?
Actually, not working with [video] tags
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.