Log in

View Full Version : vb pager next to username on forums home and whoisonline


Q-v-n-s-Q
10-09-2006, 10:00 PM
Must have vbpager install on your forums

https://vborg.vbsupport.ru/showthread.php?t=104609&highlight=vb+pager

search for:
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow"> $loggedin[musername] </a>$loggedin[invisiblemark]$loggedin[buddymark]

replace with:

$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow"> $loggedin[musername] </a>$loggedin[invisiblemark]$loggedin[buddymark]
<if condition="$vboptions['vbpager_active'] AND $bbuserinfo[userid]">
<a href="#" onclick="window.open('pager.php?do=buddylist&amp;puserid=$logge din[userid]','pagerbuddylist','statusbar=no,menubar=no,toolba r=no,scrollbars=yes,resizable=yes,width=$vboptions[vbpager_width],height=$vboptions[vbpager_height]'); return false;"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/vbpager_icon.gif" alt="<phrase 1="$loggedin[musername]">$vbphrase[pager_send_pager_message_to_x]</phrase>" border="0" /></a> &nbsp;</if>




search for template : whosonlinebit

replace all with:


<tr>
<td class="alt1" width="35%">
<span class="smallfont" style="float:$stylevar[right]"><span class="time">$userinfo[time]</span></span>

<if condition="$show['loggedinuser']">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]" target="_blank"> $userinfo[musername] </a>$userinfo[hidden]<if condition="$show['buddy']">+</if>
<if condition="$vboptions['vbpager_active'] AND $bbuserinfo[userid]">
<a href="#" onclick="window.open('pager.php?do=buddylist&amp;puserid=$useri nfo[userid]','pagerbuddylist','statusbar=no,menubar=no,toolba r=no,scrollbars=yes,resizable=yes,width=$vboptions[vbpager_width],height=$vboptions[vbpager_height]'); return false;"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/vbpager_icon.gif" alt="<phrase 1="$userinfo[musername]">$vbphrase[pager_send_pager_message_to_x]</phrase>" border="0" /></a> &nbsp;</if>
<else />
<if condition="$show['spider']">$spidertype<else />$userinfo[musername]</if>

</if>
</td>

<td class="alt2" width="35%">
<div>
<span style="float:$stylevar[right]">
<if condition="$show['lockedout']"><img src="$stylevar[imgdir_statusicon]/wol_lockedout.gif" alt="$vbphrase[viewing_forum_closed]" /></if>
<if condition="$show['nopermission']"><img src="$stylevar[imgdir_statusicon]/wol_nopermission.gif" alt="$vbphrase[viewing_no_permission_message]" /></if>
<if condition="$show['errormessage']"><img src="$stylevar[imgdir_statusicon]/wol_error.gif" alt="$vbphrase[viewing_error_message]" /></if>
<if condition="$show['reallocation']"><img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$userinfo[location]" /></if>
</span>
$userinfo[action]
</div>
<if condition="$show['where']">
<div class="smallfont" style="margin-top:1px">
<if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if>
$userinfo[where]
</div>
</if>
</td>

<if condition="$show['ip']">
<td class="$ipclass"><div class="smallfont">$userinfo[host]<if condition="$show['useragent']"><br />$userinfo[useragent]</if></div></td>
</if>

<if condition="$vboptions['showimicons']">
<td class="alt2" align="center" nowrap="nowrap">
$userinfo[aimicon]
$userinfo[icqicon]
$userinfo[msnicon]
$userinfo[yahooicon]
</td>
</if>

</tr>


simple and easy

enjoy

Ziki
10-10-2006, 10:28 AM
Very nice hack though I have no use for it.

Gizmo5h1t3
10-10-2006, 11:38 AM
had this running a while back, installed this one again...nice work

BackSideSA
10-11-2006, 03:12 AM
the first code goes where? which template is that supposed to modify?

Q-v-n-s-Q
10-11-2006, 04:43 AM
the first code goes where? which template is that supposed to modify?

it's forumhome_loggedinuser template

Ascor
10-15-2006, 11:21 PM
i have installed to 3.6.2 and all work nice :)
Thank'you Q-v-n-s-Q

Chicago_VLNU_4s
10-16-2006, 03:04 PM
whenever i hover over the page button, it says, " send message to <span style=color: bla blah blah Username</span> , how can this be fixed?

Chicago_VLNU_4s
10-21-2006, 08:33 PM
Bump!

Chicago_VLNU_4s
10-24-2006, 04:49 PM
nvm, found out why. where it says

$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow"> $loggedin[musername] </a>$loggedin[invisiblemark]$loggedin[buddymark]

it should be "username" not "musername". musername gives the username a specific color as defined by there usergroup

rjmjr69
05-20-2007, 07:26 AM
Great mod. You should redo the directions there is no need to replace your whole Who's online template with this one. I have three other hacks installed that would have gotten deleted this way. Other than that Awesome

Oh and is there a way that wont add that bubble to Guest's and Non Registered users as well as spiders.....?