![]() |
Same Window For Local Links
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. ============================== DON'T FORGET TO CLICK INSTALL! https://vborg.vbsupport.ru/ ============================== |
CHANGELOG:
|
Thanks buddy! :)
|
/me clicks install!
Thanks! |
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) ?
|
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) |
Finally, ... this works great just remember it does'nt take effect on posts before the installation unless you edit them. Sweet little plugin, thanks.
|
Quote:
This modifies the output of the BBCode parser (after the BBCode is applied) but that output gets cached by vB. |
<font color="Lime">*install*</font>
Thanks!! :laugh: |
good but its going to open the attachment images in the same window too so this is not good :/
|
All times are GMT. The time now is 09:43 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:
|