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)
-   -   Replace User's Online Status Image with Text Equivalent (https://vborg.vbsupport.ru/showthread.php?t=113279)

Alteran Ancient 04-17-2006 10:00 PM

Replace User's Online Status Image with Text Equivalent
 
This is a pretty basic template change while will remove the online/offline status pips, and replace them with a Text status bar instead.

Edit the postbit_onlinestatus Template and replace the whole thing with:
Code:

<if condition="$onlinestatus==0"><div class="smallfont">Status: <font color="#BBBBBB"><b>Offline</b></font></div></if>
<if condition="$onlinestatus==1"><div class="smallfont">Status: <font color="green"><b>Online</b></font></div></if>
<if condition="$onlinestatus==2"><div class="smallfont">Status: <i><b>Invisible</b></i></div></if>

Remember, if you know what you're doing, you can replace the colours with ones that suit your forum's style.

Save that, then open the postbit or postbit_legacy Template (Whichever one you use.)

Find this and delete it:
Code:

$post[onlinestatus]
Then find:
Code:

<if condition="$show['reputation']">$post[reputationdisplay]</if>
Then add below:
Code:

$post[onlinestatus]

That's it, folks! Enjoy it, and the original idea came from Tony's vB3.0 mod.

PennylessZ28 04-17-2006 10:29 PM

Nice, I like this!

PabloAM 04-17-2006 10:57 PM

This hack is very old...

puertoblack2003 04-18-2006 05:37 PM

can we get a screen shot to have a general idea of how it looks thanks...

SixteenOhNine 04-19-2006 05:36 AM

Quote:

Originally Posted by puertoblack2003
can we get a screen shot to have a general idea of how it looks thanks...

Well, given it is simply text, I'd imagine viewing text stating your online, offline or invisible :).

It simply replaces the online/offline images vBulletin uses by standard with that of basic text.

Konstantinos 05-06-2006 01:21 PM

<if condition="$show['reputation']">$post[reputationdisplay]</if>

this doesnt exist in 3.5.4 postbit templates

PennylessZ28 05-06-2006 06:59 PM

Quote:

Originally Posted by Konstantinos
<if condition="$show['reputation']">$post[reputationdisplay]</if>

this doesnt exist in 3.5.4 postbit templates

You can pretty much stick it where ever you want it to show up.

oldfan 09-21-2006 01:31 PM

thank you

Jarllax 09-26-2006 12:34 PM

Thanks! Exactly what I was looking for. :)

McCarroll21 09-28-2006 09:55 PM

Installed. This is exactly what I was looking for.

Kind of off-topic: Can you do the same thing with reputation?

Instead of showing the image, show the specific number.


All times are GMT. The time now is 06:11 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.01352 seconds
  • Memory Usage 1,730KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete