![]() |
|
Mod Options |
![]() |
|||||||||||
Same Window For Local Links
![]() Developer Last Online: Dec 2017 ![]() ![]() ![]() This modification is in the archives.
Another really simple plugin from me.
I wanted local links (i.e. ones to other parts of the forum) to not open in a new tab. So, I wrote a little modifier to make that happen and decided to share the code. Tested on my forum, but let me know if you encounter any issues. ![]() How it works: It hooks in at the end of the BBCode parser, after the parser has transformed the BBCode into HTML. My plugin then removes the target="_blank" off of links that start with your forum base URL. Upgrading from version 1.0.1 or 1.0.0: Delete the plugin and then install the new product. It doesn't seem to be working on old posts! The output of the BBCode parser and such is cached by vB. Just rebuilt your post cache (it's under "Update Counters") and all will be good. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Replace Local Links With Title | Jafo232 | vBulletin 3.5 Add-ons | 90 | 22 Aug 2007 05:10 |
Local links to titles | JohnWoo | vBulletin 3.0 Full Releases | 23 | 18 Oct 2005 16:55 |
#16
|
|||
|
|||
Anyway, works great (on my new posts) - thanks. No members have liked this post.
|
#17
|
||||
|
||||
Originally Posted by funkmeister
No, the "Rebuild Post Cache" one. 6th one down.
![]() No members have liked this post.
|
#18
|
|||
|
|||
Originally Posted by Viper007Bond
Ummm, I don't have that one as an option - the 6th one down on my list is "Empty Signature Cache" - I'm on 3.6.2 - is this a new option only in 3.6.3 or is it reliant on someother setting in order for it to be made available as an option?
Also, can you add a feature to take into a count those "showthread" posts that include the syntax "showthread.php?p=22946#post22946" - these "normally" open in a new window and include a "Close Window" button on the bottom of the displayed page. Of course, when a user clicks it and with this add-on installed, it will prompt them to close it and in turn close down the whole browser, since it actually now opens in the same page. So can you make it so that these type of URL's continue to open in a new window. Thanks. No members have liked this post.
Last edited by funkmeister; 12 Nov 2006 at 16:55. |
#19
|
||||
|
||||
Originally Posted by funkmeister
No, I had the option in 3.6.2. Odd. *shrugs*![]()
Originally Posted by funkmeister
showpost.php you mean? And good point. Thanks.
![]()
No members have liked this post.
Last edited by Viper007Bond; 13 Nov 2006 at 01:29. |
#20
|
|||
|
|||
Originally Posted by Viper007Bond
Yeah, I'm doing the same thing *shrug* and scratching my head ![]()
![]() Yes, "showpost.php" is what I meant to say! No members have liked this post.
|
#21
|
||||
|
||||
I just remembered -- upgrade to 3.6.3. That page doesn't show the "Close Window" button anymore unless it really is a pop-up.
![]() No members have liked this post.
|
#22
|
|||
|
|||
Originally Posted by Viper007Bond
OK, thanks. If I see an issue after I upgrade I'll get back to you, but it sounds like it's sorted ![]()
![]() Thanks. No members have liked this post.
|
#23
|
||||
|
||||
Small update. Cached versions of posts were still having their links open in new windows, this is now hopefully fixed.
No members have liked this post.
|
#24
|
||||
|
||||
![]()
Originally Posted by Viper007Bond
Thank you for the update Viper007Bond![]()
All is working well ![]() No members have liked this post.
|
#25
|
||||
|
||||
Oh, I also moved it from a plugin to a product to make things easier. Best to remove the old plugin (it won't hurt, but it'll just execute more code otherwise).
No members have liked this post.
|
#26
|
||||
|
||||
I've installed this mo; do you think there's anyway to make it work http://mydomain.com the same way it currently works for http://www.mydomain.com?
__________________
No members have liked this post.
|
#27
|
||||
|
||||
Im not sure what this does that you can't do with BBcode?
No members have liked this post.
|
#28
|
||||
|
||||
Originally Posted by XFSImperial
Yeah, there is. I'll get to work on it. ![]()
![]() No members have liked this post.
|
#29
|
||||
|
||||
Do this on your forum:
If you click that link, it opens in a new window. This makes it open in the same window. You cannot do that with vB fresh outta the box as far as I'm aware. No members have liked this post.
|
#30
|
||||
|
||||
Originally Posted by XFSImperial
Updated. Should work fine now for this. ![]()
![]() No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 08:02.