The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
IMAGE URL HACK
ok conan, here it is ![]() you can use it as follow: [imgurl=linked url here]url to image here[/imgurl] In global.php find: Code:
// change neccessary " back to " Code:
// URL'ED IMAGE HACK
$text=eregi_replace("\\[imgurl=\"([^\"]*)\"\\]([^\\[]*)\\[\\/imgurl\\]","<a href=\"\\1\" target=_blank><img src=\"\\2\" border=\"0\"></a>",$text);
$text=eregi_replace("\\[imgurl=([^\"]*)\\]([^\\[]*)\\[\\/imgurl\\]","<a href=\"\\1\" target=_blank><img src=\"\\2\" border=\"0\"></a>",$text);
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
All I can say is.... SWEET!
~Chris |
|
#3
|
|||
|
|||
|
i'm away for a few days and look at this.. great stuff .. 1.1.4 compatible ?
|
|
#4
|
|||
|
|||
|
I've 'hacked' global.php to work it like this:
[url=... ][img ]...[ /img][ /url] I think this is a more clean and logical solution and it was not really a hack but moreless a matter of replacing some lines |
|
#5
|
|||
|
|||
|
Quote:
Thanks, Bira |
|
#6
|
|||
|
|||
|
Menno 1000 thanks man!
Awesome job! |
|
#7
|
|||
|
|||
|
and I just added 4 custom VB codes to allow this to be done.
[imagelink] = <a href= [/imagelink] = > [linkedimage] = <img src= [/linkedimage] = ></a> |
|
#8
|
|||
|
|||
|
Great HAck. good job.
|
|
#9
|
|||
|
|||
|
Thanks guys
Mas*Mind: Sure, you could, using that construction actually means typing more, and mose BB'ers are *very* lazy ![]() Ofcourse it would be cleaner, but hey, I supply instead of inovate ![]() eva2000: yeah, this stuff is so standart is should work on all vB versions |
|
#10
|
|||
|
|||
|
|
![]() |
|
|