Back to vBulletin 4.x Template Modifications

Who's Online Clickable Location Icon
Mod Version: 1.1, by Merjawy

vB Version: 4.2.x Rating: (2 votes - 5.00 average) Installs: 19
Released: 15 Jul 2012 Last Update: Never Downloads: 0
Not Supported Template Edits Code Changes Re-usable Code Translations  

This is a little mod that I use on my boards and wanted to share with the community.

What does it do?

This mod will make the "question mark" icon ( ) in Who's Online clickable so you can see the real location of the visitor on your forum.

Time= 1 minute
Files to edit= 0
Templates to edit=1

Install:

Edit template WHOSONLINE:

Find this code:
PHP Code:
 <vb:if condition="$userinfo['show']['reallocation']"><img src="{vb:stylevar imgdir_misc}/question_icon.gif" alt="{vb:raw userinfo.location}" /></vb:if> 
Replace it with this code:
PHP Code:
 <vb:if condition="$userinfo['show']['reallocation']"><a href="{vb:raw userinfo.location}" target="_"><img src="{vb:stylevar imgdir_misc}/question_icon.gif" alt="{vb:raw userinfo.location}" /></a></vb:if> 
This will open the link in a new page/tab.

If you want the link to open in same page:
Replace the original code above with this code:

PHP Code:
 <vb:if condition="$userinfo['show']['reallocation']"><a href="{vb:raw userinfo.location}"><img src="{vb:stylevar imgdir_misc}/question_icon.gif" alt="{vb:raw userinfo.location}" /></a></vb:if> 


I hope you find this mod of some use.
I tested this on vB 4.2.0 and 4.2.1 Alpha

7/17/12 Updated missing closing </a> tag

If you enjoy my mod, please consider marking it as "Installed". Any comments are welcome.

Download

No files for download.

Screenshots

Click image for larger version
Name:	2012-07-15_0637.jpg
Views:	488
Size:	82.0 KB
ID:	139827  

Similar Mods

Photopost "gallery" clickable icon in postbit(_legacy) and/or profiles. vBulletin 3.5 Add-ons
Show Thread Enhancements Clickable user location using google maps vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024