vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] Url'ed image hack (https://vborg.vbsupport.ru/showthread.php?t=5710)

12-18-2000 10:07 AM

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 "
ABOVE that add:

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);


12-18-2000 10:15 AM

All I can say is.... SWEET!

~Chris

12-18-2000 02:57 PM

i'm away for a few days and look at this.. great stuff .. 1.1.4 compatible ?

12-18-2000 04:08 PM

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

12-19-2000 12:08 AM

Quote:

Originally posted by Mas*Mind
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

Can you post the full hack's code and instructions please?

Thanks,

Bira

12-19-2000 01:09 AM

Menno 1000 thanks man!
Awesome job!

12-19-2000 02:47 AM

and I just added 4 custom VB codes to allow this to be done.

[imagelink] = <a href=
[/imagelink] = >
[linkedimage] = <img src=
[/linkedimage] = ></a>

12-19-2000 09:27 AM

Great HAck. good job.

12-19-2000 12:33 PM

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

12-19-2000 03:38 PM

In action:

http://beta.jelsoft.com/showthread.php?postid=678

:)


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