MobileHacks
New Member
* Version: 2.0
* VBulletin Version: 3.7.x
* File Edits: 2
* Template Edits: 1
* New Phrases: 8
* Use Plugins: Yes
Install
1: Upload folder upload to forumroot
2: Import Product
3: Edit File
Open file root forum/index.php find
Add user.browser, is the code:
[/align]
Find
Add under:
,
4: Edit Template
[/align]
Open template forumhome_loggedinuser find
[/align]
* VBulletin Version: 3.7.x
* File Edits: 2
* Template Edits: 1
* New Phrases: 8
* Use Plugins: Yes
Install
1: Upload folder upload to forumroot
2: Import Product
3: Edit File
Open file root forum/index.php find
[align=left]
PHP:
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
Add user.browser, is the code:
PHP:
user.username, user.browser, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
[/align]
Find
[align=left]
PHP:
'username' => $vbulletin->userinfo['username'],
Add under:
PHP:
'browser' => $vbulletin->userinfo['browser']
4: Edit Template
[/align]
Open template forumhome_loggedinuser find
[align=left]
Add above:
PHP:
$loggedin[invisiblemark]$loggedin[buddymark]
[/align]
PHP:
<!-- Start: Browser on Who's Online by Sinister - Version 2.0.0 -->
<if condition="$loggedin[browser] == 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] == unknown">
<img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$vbphrase[browser_unknown]" />
</if>
<!-- End: Browser on Who's Online by Sinister - Version 2.0.0 -->