vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Online/Offline Text Status (https://vborg.vbsupport.ru/showthread.php?t=88379)

Tony G 02-05-2004 10:00 PM

Online/Offline Text Status
 
Mod once again updates from RC versions to vBulletin 3.0.0/3.0.1. Although it will work on both vBulletin 3 RC's and vBulletin 3.0.0/3.0.1.

This mod will remove the online/offline images, and instead replace them with text (much like how location, or age is displayed) displaying if the user is online or offline.

There are two versions of this modification. Once is for the posbit template, which if the infomation on top and the post below. The other version is for the postbit legacy template, which is the infomation on the side in a column. So download the instructions from the type of postbit that applies to you. :)

Screenshots are included. The first one is offline on the postbit legacy. The second is online on the normal postbit. The third is online on the postbit legacy.

Enjoy, and report any faults with this mod!

(Also, if you use this mod please click install. Just gives me an idea on how popular the modification is! Thank you.)

Brad 02-06-2004 08:24 AM

You know I always have to do this one, thanks for porting it. :)

Tony G 05-16-2004 06:00 AM

Updated this mod for vBulletin 3.0.0+
Also have included instructions for the postbit template as well as the postbit legacy template.

Enjoy. :)

neocorteqz 05-16-2004 06:28 AM

Thanks. :)

chrisvonc 05-16-2004 11:53 AM

Thank you! very easy and working good!

One question, how would one properly add this to the public profile? I tried a few things but none of them worked so I thought I would ask.

Thank you again :)

Tony G 05-17-2004 11:36 AM

Think it would require hacking in order to show online status in the profile.

oldfan 08-27-2004 01:06 AM

works great, thanks

Chadi 10-13-2004 12:59 AM

Strange but I don't have that column on the left side in thread viewing on my site.

www.talkjesus.com

How would I enable this in 3.03?

Tony G 10-13-2004 06:19 AM

There are instuctions there for the top column. Use the 'ootextpostbit.txt' instructions.

imported_TCB 01-03-2005 02:57 PM

So easy and so effective at the same time... Great one :D

G3MM4 08-07-2005 04:28 PM

This needs updating for 3.0.8.

Tony G 08-08-2005 03:10 AM

Hopefully I can get around to updating it soon. :) Sorry about the wait.

Blind Guardian 08-11-2005 03:54 PM

Installed, although I added in an if condition so it will only display on smod/admin posts (our server would probably keel over from enabling it on each of the 70,000 member's posts.)

Thanks.

Tony G 08-12-2005 05:15 AM

Did it work fine on 3.0.8, or did you have to change code around? And thanks for the comments. :)

Blind Guardian 08-12-2005 09:30 PM

Quote:

Originally Posted by Tony G
Did it work fine on 3.0.8, or did you have to change code around? And thanks for the comments. :)

I installed on 3.0.3, so I'm assuming that question wasn't directed at myself.

I also discovered a slight problem in the way you set up the code, since the forum-leaders list uses the same template (SHOWGROUPS), so you get "Status: Online" and so on in the left-most column.

I shifted the code around a bit, did a small edit to showgroups_usergroupbit and it's not as hideous as before.

showgroups_usergroupbit
Replace
Code:

<td class="$bgclass">$user[onlinestatus]</td>
With
Code:

<td align="center" class="$bgclass">$user[onlinestatus]</td>
postbit_onlinestatus
Replace everything with
Code:

<if condition="$onlinestatus==0"><font color="#999999"><b>Offline</b></font></if>
<if condition="$onlinestatus==1"><font color="#009000"><b>Online</b></font></if>
<if condition="$onlinestatus==2"><font color="#999999"><b>Invisible</b></font></if>

postbit_legacy
Replace
Code:

<div>$post[onlinestatus]</div>
With
Code:

<div>Status: $post[onlinestatus]</div>
Basically, I removed the "Status:" from the actual onlinestatus template and made that specific to the postbit, then aligned the status on the forum-leaders page to account for the cell-stretching caused by "Invisible" being so much longer than "Online" and "Offline".

Note: You have to make sure you remove all the <div> tags from the onlinestatus template, otherwise it'll break the actual status onto another line in the postbit.

Tony G 08-14-2005 05:58 AM

It was directed at you, I guess it still worked on 3.0.3.

I like the way you set up the mod, never thought of using that if condition.

snags204 08-26-2005 12:25 AM

works in 3.08 fine...although it dosnt have that glow effect like the screenshot....anyone know how to get it like that?

Tony G 08-26-2005 03:26 AM

XD that's no glow, just a bad quality JPEG file. :p

Thanks for letting me know, no need to make any changes to this now.

stan111 09-19-2005 10:07 AM

thanks a ton
click installed

with this mod, i have learned a lot on how to modify my postpit legacy

Tony G 09-19-2005 11:23 AM

Thanks. I'm glad you learnt something about the templates. :)

Toky0 09-22-2005 08:12 AM

Quote:

Originally Posted by Tony G
Thanks. I'm glad you learnt something about the templates. :)

Works fine for me on 3.5 RC3. Thanks Tony!

Quillz 10-04-2005 09:20 PM

Just installed! What a great hack.


All times are GMT. The time now is 04:43 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.01171 seconds
  • Memory Usage 1,753KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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