Latest profilevisitors - a better look
This modification is in the archives.
Hi there!
First of all i'd like to tell you that im not the best coder and you will have to edit your templates on your on risk ! (Better save your template if you're not sure about this...) What does this modification do? It'll make your "latest profilevisitors block" in the profile look better and it adds online/offline buttons if you've uploaded them. http://your-vb.com/index.php?t=114 If you want to show avatars (small) aswell click here Spoiler (click to open)
From the beginning.
Please revert your file includes/class_profile.php first Revert and open your memberinfo_visitorbit template: search for: HTML Code:
<li class="smallfont">
HTML Code:
<li class="smallfont" style="margin-top: 4px">$user[onlinestatus] <img style="position: relative; top: 3px" src="$user[avatarurl]" height="15px" width="12px" alt="<phrase 1="$user[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> Open template memberinfo_block_recentvisitors: Change ol and /ol in ul and /ul Open file includes/class_profileblock.php: search for: PHP Code:
$visitors_db = $this->registry->db->query_read_slave("
PHP Code:
$visitors_db = $this->registry->db->query_read_slave("
PHP Code:
$visitors["$user[username]"] = $user;
PHP Code:
fetch_online_status($user, true);
Regards, Stoebi Close
open your memberinfo_visitorbit template: search for: HTML Code:
<li class="smallfont">
HTML Code:
<li class="smallfont" style="margin-top: 4px">$user[onlinestatus]
Change ol and /ol in ul and /ul Open file includes/class_profileblock.php: search for: PHP Code:
SELECT user.userid, user.username, user.usergroupid, user.displaygroupid, profilevisitor.visible
PHP Code:
SELECT user.userid, user.username, user.usergroupid, user.displaygroupid, user.lastactivity, (user.options & " . $this->registry->bf_misc_useroptions['invisible'] . ") as invisible, profilevisitor.visible
PHP Code:
$visitors["$user[username]"] = $user;
PHP Code:
fetch_online_status($user, true);
Spoiler (click to open)
Revert and open your memberinfo_visitorbit template: search for: HTML Code:
<li class="smallfont">
HTML Code:
<li class="smallfont" style="margin-top: 4px">$user[onlinestatus]
Change ol and /ol in ul and /ul Open file includes/class_profileblock.php: search for: PHP Code:
SELECT user.userid, user.username, user.usergroupid, user.displaygroupid, profilevisitor.visible
PHP Code:
SELECT user.userid, user.username, user.usergroupid, user.displaygroupid, user.lastactivity, (user.options & " . $this->registry->bf_misc_useroptions['invisible'] . ") as invisible, profilevisitor.visible
PHP Code:
$visitors["$user[username]"] = $user;
PHP Code:
fetch_online_status($user, true);
Regards, Stoebi Close
Excuse my english, im german. HF with this mod. Greez Download No files for download. Supporters / CoAuthors
Screenshots |