vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - BT - Displays users avatar online.php (https://vborg.vbsupport.ru/showthread.php?t=239222)

sadiq6210 10-01-2010 09:41 AM

Quote:

Originally Posted by sulasno (Post 2100105)
working in 4.0.7

Not working perfect with 4.0.7

I updated the template, for 4.0.7 you can use this template =)

PHP Code:

<tr>
  <
td class="whoinfo" width="32%"><vb:if condition="$show['loggedinuser']">
<
a href="member.php?{vb:raw session.sessionurl}u=$userinfo[userid]">  
<
vb:if condition="$userinfo[avatarurl]">  
<
a href="member.php?u={vb:raw userinfo.userid}">  
<
img src="{vb:raw userinfo.avatarurl}" border="0" alt="{vb:raw userinfo.username}" height="60" width="60" /></vb:if></a>  
  <
br />       
      <
a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$show['buddy']">+</vb:if>
      <
vb:else />
      <
vb:if condition="$show['spider']">{vb:raw spidertype}<vb:else />{vb:raw userinfo.musername}</vb:if>
  </
vb:if></td>
<
td class="whoinfo" width="8%" align="{vb:stylevar right}"><span class="smallfont time">{vb:raw userinfo.time}</span></td>
  <
td class="whoinfo wholocation" width="35%"><span style="float:{vb:stylevar right}">
      <
vb:if condition="$show['lockedout']"><img src="{vb:stylevar imgdir_statusicon}/wol_lockedout.png" alt="{vb:rawphrase viewing_forum_closed}" /></vb:if>
      <
vb:if condition="$show['nopermission']"><img src="{vb:stylevar imgdir_statusicon}/wol_nopermission.png" alt="{vb:rawphrase viewing_no_permission_message}" /></vb:if>
      <
vb:if condition="$show['errormessage']"><img src="{vb:stylevar imgdir_statusicon}/wol_error.png" alt="{vb:rawphrase viewing_error_message}" /></vb:if>
      <
vb:if condition="$show['reallocation']"><img src="{vb:stylevar imgdir_misc}/question_icon.gif" alt="{vb:raw userinfo.location}" /></vb:if>
    </
span> {vb:raw userinfo.action}
    <
vb:if condition="$show['where']">
      <
div class="smallfont" style="margin-top:1px">
        <
vb:if condition="$show['subscribed']"><img class="inlineimg" src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" /></vb:if>
        {
vb:raw userinfo.where}
      </
div>
    </
vb:if>
  </
td>
  <
vb:if condition="$show['ip']"><td class="whoinfo"><vb:if condition="$show['ajax_resolve']">
        <
a href="online.php?{vb:raw session.sessionurl}do=resolveip&amp;ipaddress={vb:raw userinfo.host_encoded}" id="resolveip_{vb:raw count}" title="{vb:rawphrase resolve_ip_address}">{vb:raw userinfo.host}</a>
        <
vb:else />
        {
vb:raw userinfo.host}
      </
vb:if>
  <
vb:if condition="$show['useragent']"><br />{vb:raw userinfo.useragent}</vb:if></td></vb:if>
  <
vb:if condition="$vboptions[showimicons]"><td class="whoinfo">
      {
vb:raw userinfo.aimicon}
      {
vb:raw userinfo.icqicon}
      {
vb:raw userinfo.msnicon}
      {
vb:raw userinfo.yahooicon}
      {
vb:raw userinfo.skypeicon}
  </
td></vb:if>
</
tr


Xeyn 10-01-2010 12:56 PM

Thx for this..yes works perfect in 4.0.7 now:-)

DirtRider 02-15-2011 12:15 PM

I would like to get this working but I cannot understand the install instructions at all. How am I supposed to install this one

Wordplay 03-31-2011 05:28 PM

anybody tried this on 4.1.2?

orsiris 04-03-2011 09:56 PM

yes wordplay and works fine on 4.1.2

S@NL - BlackBik 12-08-2011 07:39 PM

Works in 4.1.8 :)

But the template edit can be a lot smaller.

In template whosonlinebit find:

Code:

      <a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$show['buddy']">+</vb:if>
and replace by:

Code:

<!-- Hack avatar on who's online -->
      <a href="{vb:link member, {vb:raw userinfo}}"><vb:if condition="$userinfo[avatarurl]"><img src="{vb:raw userinfo.avatarurl}" border="0" alt="{vb:raw userinfo.username}" height="60" width="60" /></vb:if><br />{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$show['buddy']">&nbsp;+</vb:if>
<!-- End hack avatar on who's online -->



All times are GMT. The time now is 04:56 AM.

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.01080 seconds
  • Memory Usage 1,767KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete