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)

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. :)


All times are GMT. The time now is 06:51 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.01161 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
  • (5)bbcode_code_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
  • (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