vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   vb pager next to username on forums home and whoisonline (https://vborg.vbsupport.ru/showthread.php?t=128718)

Q-v-n-s-Q 10-09-2006 10:00 PM

vb pager next to username on forums home and whoisonline
 
Must have vbpager install on your forums

https://vborg.vbsupport.ru/showthrea...light=vb+pager

search for:
Code:

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


$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=$loggedin[userid]','pagerbuddylist','statusbar=no,menubar=no,toolbar=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:

Code:


<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=$userinfo[userid]','pagerbuddylist','statusbar=no,menubar=no,toolbar=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

Quote:

Originally Posted by BackSideSA
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

Quote:

$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.....?


All times are GMT. The time now is 02:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00998 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete