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)

S@NL - BlackBik 02-03-2006 06:49 AM

I was patiently waiting for this to be ported to 3.5 :)
Installed.

But it only seems to work on NEW quotes.
Excisting quotes with images in it are unaffected.
Well, it's better than nothing, but it would be cool if this could be made.

Hellcat 02-03-2006 07:00 AM

Indeed, this only affects new quotes.

The old ones will vanish quite soon on the mysterious "page 2" anyway ;)

S@NL - BlackBik 02-03-2006 07:34 AM

Page 2? Who the f*ck reads page 2? :D
You're right. Thanks for your reply.

Snake 02-03-2006 06:42 PM

Double thanks!

Tralala 02-04-2006 05:44 AM

I just imported this product .XML, and tried it on my board (running 3.5.3.) Tried quoting an IMG and nothing changed, it kept it as an IMG and didn't convert it to a URL. Any ideas?

Tulsa 02-04-2006 07:25 AM

Quote:

Originally Posted by Tulsa
Maybe this was just some kind of fluke?? Someone on my sight just quoted a pic and it worked fine.


Update:
I'm not sure this is going to make any sense at all but it appears to only be happening when you are quoting a pic hosted from imageshack or photobucket??

Other sources of pics from other servers work fine?

Okay, I know what the issue is now. When people are using ImageShack or PhotoBucket to host pics, those services provide the links complete with the image tags to paste into a post, they are providing all caps [IMG] tags and this hack is replacing only [img] tags.

I went in and edited both locations in the plug-in manager as a test and copied the code and duplicated it, replacing only the [img] with [IMG] (all caps) and it's now working perfectly.

I'm no coder and I'm sure theres a cleaner way to do this but as a quick test to determine the issue this worked rather nicely.


PHP Code:

$pagetext str_replace"[IMG]""[url]"$pagetext );
$pagetext str_replace"[/IMG]""[/url]"$pagetext );
$pagetext str_replace"[img]""[url]"$pagetext );
$pagetext str_replace"[/img]""[/url]"$pagetext ); 


Hellcat 02-04-2006 07:38 AM

Whoops, you're right....

I'll post an updated version laster today that is not case sensitive!

lolo? 02-06-2006 09:15 AM

thanks clic install

dutchbb 02-06-2006 10:21 AM

this is a great idea, will be using this thanks!

Zia 02-06-2006 12:52 PM

a new upgrade is comming very soon...
that will works with
[IMG] , [img] , [iMG] , [Img] any way ..new release will work with all..

Thnx


All times are GMT. The time now is 03:11 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.01196 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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