vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Quote Improvements (https://vborg.vbsupport.ru/showthread.php?t=260337)

tdev1 03-13-2011 10:00 PM

Quote Improvements
 
1 Attachment(s)
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 [url] using regular expressions:

PHP Code:

$pagetext preg_replace('/\[img\]([^\[]*)\[\/img\]/i','[url]$1[/url]'$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:
Code:

/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

Quote:

Originally Posted by FF|Skyrider (Post 2173371)

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/showt...ouTube-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

Quote:

Originally Posted by karabaja3 (Post 2173450)
Great!

Can you make same thing for this:
http://www.vbulletin.com/forum/showt...ouTube-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....code#videocode

Quote:

Originally Posted by OldSchoolDSL (Post 2173459)
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.

Quote:

Originally Posted by zelnik (Post 2173318)
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

Quote:

Originally Posted by tdev1 (Post 2173572)
uhm, there is already a video bbcode?
http://www.vbulletin.com/forum/misc....code#videocode

I ment a auto replacment in reply. From embed to url. Like this mod for IMG

Eg. [YouTUBE]eOUq4Z6R7xI[/YouTUBE] to [url]http://www.youtube.com/watch?v=eOUq4Z6R7xI[/url]

tdev1 03-16-2011 12:11 AM

Quote:

Originally Posted by karabaja3 (Post 2173616)
I ment a auto replacment in reply. From embed to url. Like this mod for IMG

Eg. [YouTUBE]eOUq4Z6R7xI[/YouTUBE] to [url]http://www.youtube.com/watch?v=eOUq4Z6R7xI[/url]

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

Quote:

Originally Posted by tdev1 (Post 2173812)
just added support for replacing [video] to [url] as well as requested :)

Thank you so much! :up:

sticky 03-30-2011 11:46 AM

Quote:

Originally Posted by sticky (Post 2173914)
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

Quote:

Originally Posted by sticky (Post 2179073)
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

Quote:

Originally Posted by Bulent Tekcan (Post 2190261)
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

Quote:

Originally Posted by tdev1 (Post 2190606)
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 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

Quote:

Originally Posted by FF|Skyrider (Post 2173371)

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

Quote:

Originally Posted by 14DH01 (Post 2290522)
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

1 Attachment(s)
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

Quote:

Originally Posted by sticky (Post 2602888)
Works for me 4.2.5

How do I add a line to hide [attach] ?

Actually, not working with [video] tags


All times are GMT. The time now is 11:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01298 seconds
  • Memory Usage 1,814KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete