vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Convert [IMG] to [URL] in quoted text (https://vborg.vbsupport.ru/showthread.php?t=107022)

Tralala 02-09-2006 10:48 PM

Quote:

Originally Posted by Hellcat
This has no affect on the forum's server, except when most of the images are hosted on the forum server itself, wich usually isn't the case.

Yeah, that's what I thought. Thanks for the confirmation.

Quote:

Originally Posted by Hellcat
Adding an user option would be possible, yes.

Cool. Well, count me in as someone who'd really appreciate that feature for a future version. Got PayPal? I'd even send a few bones your way to enjoy some beers on me.

/subscribes to thread

Parham 02-10-2006 09:21 AM

Great [ Installed ]

Hellcat 02-10-2006 06:27 PM

Quote:

Originally Posted by Tralala
Cool. Well, count me in as someone who'd really appreciate that feature for a future version. Got PayPal? I'd even send a few bones your way to enjoy some beers on me.

[high]* Hellcat smells beer?!?!
[/high]

OK, you sold me :D
Here you go -> Update 1.20 now adds the user option :)

Tralala 02-10-2006 10:33 PM

Mod installed, beer money sent.

Thanks, Hellcat!

Hellcat 02-11-2006 05:04 PM

To make it the default behaviour to display the images in quoted text and only convert them to URLs if so choosen, in the Plugin-Manager find the Plugin:
"Replace [IMG] with in quotes (Apply Userchoice)http://"<br /> <br /> Open it and ...</div> </div>
PHP Code:

", $text );
} else {
  
$text = preg_replace( "/\[[qQ][iI][mM][gG]\]/", "[img]", $text );
  
$text = preg_replace( "/\[\/[qQ][iI][mM][gG]\]/", "[/img]", $text );


If the user didn't make any choice so far the images will be left intact now.

IMPORTANT: Please remove the "*" from the "[*URL]" in the IF clause.
I had to put that in there, or else the threaddisplay would mess up this post ;)

Zia 02-13-2006 08:14 AM

Nice.....we r implimenting it

Julie 03-19-2006 11:23 PM

Quote:

Originally Posted by Hellcat
[high]* Hellcat smells beer?!?!
[/high]

OK, you sold me :D
Here you go -> Update 1.20 now adds the user option :)

Wicked, thanks :D

*updates*

EdQ 03-27-2006 05:26 PM

Can you make it change to thumb instead of url?

EdQ 03-27-2006 06:37 PM

Quote:

Originally Posted by EdQ
Can you make it change to thumb instead of url?

I just changed the code to thumb. Seems to work great. Thanks for the plugin. :)

Tralala 03-27-2006 07:37 PM

Quote:

Originally Posted by EdQ
I just changed the code to thumb. Seems to work great. Thanks for the plugin. :)

Oooh, care to share? That'd be a really nice new option.


All times are GMT. The time now is 09:37 AM.

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.01511 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete