Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quote Improvements Details »»
Quote Improvements
Version: 1.3, by tdev1 tdev1 is offline
Developer Last Online: Apr 2016 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 03-13-2011 Last Update: 09-21-2013 Installs: 83
Uses Plugins
Re-useable Code Translations  
No support by the author.

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

Download Now

File Type: xml product-quote_improvements.xml (3.5 KB, 85 views)

Screenshots

File Type: png quote_improvements.png (24.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
AusPhotography

Comments
  #12  
Old 03-15-2011, 02:17 PM
karabaja3's Avatar
karabaja3 karabaja3 is offline
 
Join Date: Jan 2008
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tdev1 View Post
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]
Reply With Quote
  #13  
Old 03-16-2011, 12:11 AM
tdev1 tdev1 is offline
 
Join Date: Jul 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by karabaja3 View Post
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
Reply With Quote
  #14  
Old 03-16-2011, 09:09 AM
sticky sticky is offline
 
Join Date: Sep 2003
Posts: 934
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already have url's implemented from another mod, could I use this just with video?
Reply With Quote
  #15  
Old 03-17-2011, 12:15 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent

installed + 5 stars

thank you bro keep it up
Reply With Quote
  #16  
Old 03-17-2011, 05:06 PM
karabaja3's Avatar
karabaja3 karabaja3 is offline
 
Join Date: Jan 2008
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tdev1 View Post
just added support for replacing [video] to [url] as well as requested
Thank you so much! :up:
Reply With Quote
  #17  
Old 03-30-2011, 11:46 AM
sticky sticky is offline
 
Join Date: Sep 2003
Posts: 934
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sticky View Post
I already have url's implemented from another mod, could I use this just with video?
Please answer?
Reply With Quote
  #18  
Old 04-07-2011, 09:37 AM
tdev1 tdev1 is offline
 
Join Date: Jul 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sticky View Post
Please answer?
sorry, overlooked.

Should be very possible to install and use both.
Reply With Quote
  #19  
Old 04-11-2011, 08:31 PM
farahi farahi is offline
 
Join Date: Dec 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod
Reply With Quote
  #20  
Old 04-30-2011, 08:44 AM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not work on 3.8.4 ? Any solution ?
Reply With Quote
  #21  
Old 05-01-2011, 09:50 AM
tdev1 tdev1 is offline
 
Join Date: Jul 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bulent Tekcan View Post
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
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 03:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05027 seconds
  • Memory Usage 2,341KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete