![]() |
Open Local links in same window, External in new window
1 Attachment(s)
I did search for a easy solution to simply open a local link in the same window, and external links in a new window.
Did not find it, so I did make this. My first PHP script. In the file: includes/class_bbcode.php Search for: standard URL hyperlink 3.1.5 (maybe 3.1.6?) And before: Replace: Code:
return "<a href=\"$rightlink\" target=\"_top\"" . ($is_external ? ' rel="nofollow"' : '') . ">$text</a>"; Replace: Code:
return "<a href=\"$rightlink\" target=\"_blank\"" . ($is_external ? ' rel="nofollow"' : '') . ">$text</a>"; Code:
It didn?t work for me anyway. Maybe because of vbulletin cutting down long texts? I dont really now. And then update the CMS Cache. AdminCP - vBulletin CMS - Clean CMS-Cache However this works perfect for me. // Daniel |
It didnĀ“t work for me
|
I have several parked domains. I would like this if I could use multiple domains.
Ex: utahraves.com and utrave.org = same site, I would need to be able to put both domains in that for my site to work. |
ander test
thank you bro |
work whit attachments? i have on my site Bug Whit attacment. i need open in new windows
|
Some update is done. Maybe it works now.
|
It doesn't work in 4.0.x...
|
Quote:
I works just fine in 4.1.1 so I guess thats what you need. If you don?t want to customize it. // D |
Doesn't work for me, either :(
|
Works out perfect with version 4.1.5. Thanx for having resolved this issue!
|
All times are GMT. The time now is 09:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|