The Arcive of vBulletin Modifications Site. |
|
Same Window For Local Links Details »»
|
|||||||||||||||||||||||||
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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
CHANGELOG:
|
|
#3
|
||||
|
||||
|
Thanks buddy!
|
|
#4
|
|||
|
|||
|
/me clicks install!
Thanks! |
|
#5
|
|||
|
|||
|
how this plugin know which links are local? Or this plugin use own bb-code? Also, can you do option like: not display local links for specific usergropus (for example: unregistering users) ?
|
|
#6
|
||||
|
||||
|
Quote:
Nice and simple plugin ![]() This really need to be a standard vbulletin option (local links not use "_blank" target; local links open in the same window) |
|
#7
|
|||
|
|||
|
Finally, ... this works great just remember it does'nt take effect on posts before the installation unless you edit them. Sweet little plugin, thanks.
|
|
#8
|
||||
|
||||
|
Quote:
![]() This modifies the output of the BBCode parser (after the BBCode is applied) but that output gets cached by vB. |
|
#9
|
|||
|
|||
|
<font color="Lime">*install*</font>
Thanks!! :laugh: |
|
#10
|
|||
|
|||
|
good but its going to open the attachment images in the same window too so this is not good :/
|
![]() |
|
|