The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I: Have Links From a Specific Domain Open in Same Window
I asked this on vb.com and got no response.
As some of you know, my vB and php/html site are tightly integrated. I want links I provide in my forums to content within the same domain to open in the same window. External links should still open a new window. How do I do this? Thanks, r |
#2
|
||||
|
||||
since only your provided links should open in the same window, why not add the target tag to each link?
target=_self |
#3
|
|||
|
|||
Quote:
If a user wanted to post an in-domain link and I don't allow them to embed html in threads/replys are those stuck opening in a new window, or is there perhaps some automatic way have those parsed with a target=_self ? Thanks, rob |
#4
|
|||
|
|||
If I do believe there should be a way to do that :-/ not that expirenced with vB myself though ... I'll look into it and see if I can figure it out, although you would probably be better off just waiting for someone else to tell you cause they probably know off the top of their heads... I'll let you know if I find anything though.
|
#5
|
||||
|
||||
This could be done with client-side javascript and the DOM...
I've seen this request over and over - I'll take a look at it once I have some time. |
#6
|
||||
|
||||
Then again you could also hack the handle_bbcode_url function in functions_bbcodeparse.php
I'll do it tomorrow when i wake up. I'm going to bed now. |
#7
|
||||
|
||||
in the functions_bbcodeparse.php file
replace PHP Code:
with PHP Code:
i haven't really tested it, but it should work. You can edit the domains array and make it, for example, open pages in the same window based on keywords... |
#8
|
||||
|
||||
I always prefer tempalte edits myself ... but you are right.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|