The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Link not open new window in certain forum
I'm looking for a way to make it so links posted in a certain forum don't open a new window, but instead open in the same window. Maybe somehow setup a new template to display the link - that way one can preserve the header and not just open the link by itself.
Would this work? I'm specifically referring to links such as images (similiar to the "attachment editor", but not using attachments and only working in a specified forum(s)). But I suppose this could work with other websites as well - you know when you click a link from an email in hotmail it will display a hotmail header and the page below? That's kinda what I'm looking for. Anyone interested in helping out, making, or pointing me in the right direction? It'd be awfully handy. |
#2
|
||||
|
||||
edit functions.php, find:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Enjoy.. |
#3
|
||||
|
||||
Wow! Thanks, Logician. I'm unable to find the very first set of instructions, though, in my functions.php. I have the line:
PHP Code:
PHP Code:
|
#4
|
||||
|
||||
[edit] correction for your vb version:
STEP 2: find PHP Code:
PHP Code:
|
#5
|
||||
|
||||
If I just apply the changes you mention in Post #4, I get the following parse error.
[parse]Parse error: parse error, unexpected ',' in /home/xxxx/public_html/forums/admin/functions.php on line 920 Fatal error: Call to undefined function: vbdate() in /home/xxxx/public_html/forums/admin/sessions.php on line 399[/parse] If I apply the changes in Post #4, combined with the third step in post #2, here's the parse error I get. [parse]Parse error: parse error, unexpected ',' in /home/xxx/public_html/forums/admin/functions.php on line 939 Fatal error: Call to undefined function: vbdate() in /home/xxx/public_html/forums/admin/sessions.php on line 399[/parse] Line 939 of Functions.php is the newly inserted PHP Code:
|
#6
|
||||
|
||||
the code in post 2 is tested in 2.2.6 and working ok.
If you have a different line all you have to do is to apply the hack like this: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#7
|
||||
|
||||
All the errors are cleared up and the code is in without problem. Thank you, Logician. But it still doesn't open links inside forumid==27 in the same page. I'm thinking I might need to go with the hack that allows links on the same server to open in a page, other links open in new window.
|
#8
|
||||
|
||||
if hack works for you, yep go ahead..
If it does not do the trick, come back here and we can figure out what's wrong. I know my code works because I tested it before posting here.. |
#9
|
||||
|
||||
Quote:
Logician, could you let me know which version of vB that your original instructs were for? (I'm looking for a simple hack that opens any and all clicked links on my board onto the same window from where the link was clicked at (in other words I don't want links to open in a new window). Thanks. :nervous: |
#10
|
||||
|
||||
It has been over a year but I guess I gave it for 2.2.6 and I believe it should work in all 2.x
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|