vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Only External Links Open in New Windows (https://vborg.vbsupport.ru/showthread.php?t=51262)

filburt1 04-05-2003 10:00 PM

Only External Links Open in New Windows
 
This hack modifies the [url] tag such that links that point outside of your forums' URL open in new windows. Links that point to anything in your domain open in the same window.

Screenshot not applicable.

ULTIMATESSJ 04-06-2003 04:32 PM

heh i never realised that they opened in the same window anyways, lol anyways nice hack

/me clicks install

filburt1 04-06-2003 04:33 PM

Quote:

Today at 12:32 PM ULTIMATESSJ said this in Post #2
heh i never realised that they opened in the same window anyways, lol anyways nice hack

* ULTIMATESSJ clicks install

They don't; by default all [url] links open in new windows, regardless of the URL.

NuclioN 04-06-2003 05:01 PM

Nice, but when you have a shoutbox/vbchat on the index it opens links in the chat and not as a new page. :confused:

filburt1 04-06-2003 05:46 PM

That's because it's an iframe...

Boofo 04-06-2003 06:08 PM

Your code is wrong in the instructions file.

This:

return "<a href=\"$righturl\" target=\"blank\">".str_replace('\"', '"', $hyperlink)."</a>";

should be this:

return "<a href=\"$righturl\" target=\"_blank\">".str_replace('\"', '"', $hyperlink)."</a>";

You missed the underscore. ;)

filburt1 04-06-2003 06:17 PM

Gah, fixed :)

Aaron1 04-08-2003 06:56 AM

Excellent hack!
I was waiting for a long time for that.
Clicks install!

etraak 04-13-2003 04:39 PM

Do you know if this hack will also work with VbPortal? Do you know if I need to change anything else in VbPortal or just this hack in VBulletin? Any help on this would be greatly apreciated.

Thanks.

Best regards,
Bob :confused:

filburt1 04-13-2003 04:40 PM

If vBPortal uses vB's code parsing functions then it will work.


All times are GMT. The time now is 07:52 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.00988 seconds
  • Memory Usage 1,728KB
  • 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_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