vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Using Online Status Images (https://vborg.vbsupport.ru/showthread.php?t=129097)

ga2000gt 10-14-2006 08:29 PM

Using Online Status Images
 
I installed a new skin, and uploaded the online status gifs but they don't show up. Instead, it just says Username is online or offline or invisible. How can I change it to just show the image?

ChavMagnet 10-14-2006 10:57 PM

i think the problem is your new images arnt named correctly try right clicking on the text and click view image you will find its a invaild path. Simply copy the image name -- rename your images -- reupload them

ga2000gt 10-14-2006 11:23 PM

I looked in the default vb images and they are user_offline.gif , user_online.gif, and user_invisible.gif , those are the same names as the ones I uploaded, but I just have text saying the users status.

Here was my postbit_onlinestatus template:
Code:

<span class="smallfont">
<if condition="$onlinestatus==0">
<phrase 1="$user[username]">$vbphrase[x_is_offline]</phrase>
</if>

<if condition="$onlinestatus==1">
<font color="#FF7800"><strong><phrase 1="$user[username]">$vbphrase[x_is_online_now]</phrase></strong></font>
</if>

<if condition="$onlinestatus==2">
<phrase 1="$user[username]">$vbphrase[x_is_invisible]</phrase>
</if>
</span>

I changed it to this and it works great:

Code:

<span class="smallfont">
<if condition="$onlinestatus==0">
<font color="#2073b4"><strong><img src="$stylevar[imgdir_statusicon]/user_online.gif"</img>Currently Offline.</strong></font>
</if>

<if condition="$onlinestatus==1">
<font color="#00ff00"><strong><img src="$stylevar[imgdir_statusicon]/user_online.gif"</img>Now Online.</strong></font>
</if>

<if condition="$onlinestatus==2"><font color="#727177"><strong><img src="$stylevar[imgdir_statusicon]/user_invisible.gif"</img>Invisible.</strong></font>
</if>
</span>



All times are GMT. The time now is 11:48 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.01609 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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