Mr saleki
03-04-2008, 10:00 PM
This hack can be used with vBulletin v3.6.x.
Description: This hack will show each user's browser in the Who's Online Box beside their name. It supports IE, Firefox, Opera, Camino, Safari, Konqueror, and Netscape. If the user is using a browser that is unsupported with this hack, it will show a Question mark icon, which means its an Unknown browser.
Installation :
1. Do the following File Edits:
OPEN: index.php
FIND:
session.userid, session.inforum, session.lastactivity,
IN LINE FIND:
session.userid,
AFTER ADD:
session.browser,
IN index.php FIND:
'username' =>& $vbulletin->userinfo['username'],
AFTER ADD:
'browser' =>& $vbulletin->session->vars['browser'],
CLOSE AND SAVE: index.php
2. Do the following Template Edit:
OPEN: forumhome_loggedinuser
AT THE BEGINNING OF THE TEMPLATE ADD:
<!-- Start: Browser on Who's Online by derekivey - Version 1.0.3 -->
<if condition="$loggedin == internet_explorer">
<img src="$stylevar[imgdir_misc]/ie.gif" alt="$vbphrase[browser_internet_explorer]" />
</if>
<if condition="$loggedin[browser] == opera">
<img src="$stylevar[imgdir_misc]/opera.gif" alt="$vbphrase[browser_opera]" />
</if>
<if condition="$loggedin[browser] == firefox">
<img src="$stylevar[imgdir_misc]/ff.gif" alt="$vbphrase[browser_firefox]" />
</if>
<if condition="$loggedin[browser] == camino">
<img src="$stylevar[imgdir_misc]/camino.gif" alt="$vbphrase[browser_camino]" />
</if>
<if condition="$loggedin[browser] == konqueror">
<img src="$stylevar[imgdir_misc]/konqueror.gif" alt="$vbphrase[browser_konqueror]" />
</if>
<if condition="$loggedin[browser] == safari">
<img src="$stylevar[imgdir_misc]/safari.gif" alt="$vbphrase[browser_safari]" />
</if>
<if condition="$loggedin[browser] == netscape">
<img src="$stylevar[imgdir_misc]/netscape.gif" alt="$vbphrase[browser_netscape]" />
</if>
<if condition="!$loggedin[browser] OR $loggedin[browser] == unknown">
<img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$vbphrase[browser_unknown]" />
</if>
<!-- End: Browser on Who's Online by derekivey - Version 1.0.3 -->
SAVE: forumhome_loggedinuser
3. Upload the files in the upload folder.
4. Import product-browser_on_wol Under PRODUCTS (not plugins).
[B]Finished!
Description: This hack will show each user's browser in the Who's Online Box beside their name. It supports IE, Firefox, Opera, Camino, Safari, Konqueror, and Netscape. If the user is using a browser that is unsupported with this hack, it will show a Question mark icon, which means its an Unknown browser.
Installation :
1. Do the following File Edits:
OPEN: index.php
FIND:
session.userid, session.inforum, session.lastactivity,
IN LINE FIND:
session.userid,
AFTER ADD:
session.browser,
IN index.php FIND:
'username' =>& $vbulletin->userinfo['username'],
AFTER ADD:
'browser' =>& $vbulletin->session->vars['browser'],
CLOSE AND SAVE: index.php
2. Do the following Template Edit:
OPEN: forumhome_loggedinuser
AT THE BEGINNING OF THE TEMPLATE ADD:
<!-- Start: Browser on Who's Online by derekivey - Version 1.0.3 -->
<if condition="$loggedin == internet_explorer">
<img src="$stylevar[imgdir_misc]/ie.gif" alt="$vbphrase[browser_internet_explorer]" />
</if>
<if condition="$loggedin[browser] == opera">
<img src="$stylevar[imgdir_misc]/opera.gif" alt="$vbphrase[browser_opera]" />
</if>
<if condition="$loggedin[browser] == firefox">
<img src="$stylevar[imgdir_misc]/ff.gif" alt="$vbphrase[browser_firefox]" />
</if>
<if condition="$loggedin[browser] == camino">
<img src="$stylevar[imgdir_misc]/camino.gif" alt="$vbphrase[browser_camino]" />
</if>
<if condition="$loggedin[browser] == konqueror">
<img src="$stylevar[imgdir_misc]/konqueror.gif" alt="$vbphrase[browser_konqueror]" />
</if>
<if condition="$loggedin[browser] == safari">
<img src="$stylevar[imgdir_misc]/safari.gif" alt="$vbphrase[browser_safari]" />
</if>
<if condition="$loggedin[browser] == netscape">
<img src="$stylevar[imgdir_misc]/netscape.gif" alt="$vbphrase[browser_netscape]" />
</if>
<if condition="!$loggedin[browser] OR $loggedin[browser] == unknown">
<img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$vbphrase[browser_unknown]" />
</if>
<!-- End: Browser on Who's Online by derekivey - Version 1.0.3 -->
SAVE: forumhome_loggedinuser
3. Upload the files in the upload folder.
4. Import product-browser_on_wol Under PRODUCTS (not plugins).
[B]Finished!