vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Online/Offline In Forums (https://vborg.vbsupport.ru/showthread.php?t=33751)

Stretchr 01-03-2002 02:43 AM

I've searched this board for several hours and now I guess I have to ask for some help. On the left side of this board, beside the posts, what hack was used to show whether the user is Online or Offline? I love the feature but can't find how to implement it. Thanks in advance and I hope I'm asking in the right place. :confused:

Sinecure 01-03-2002 04:14 PM

Its actually just a simple templae modificiation.

Go to your admin panel, then go to the templates section.
You are going to need to modify the following templates.
Postbit
Postbit_offline
Postbit_online

First off change the postbit_offline template to the following:
Code:

<b>Offline!</b>
Second, change postbit_online to the following:
Code:

<b>Online!</b>
Now comes the tricky part. Open up the postbit template.
About 3 quarters of the way down you will see a variable called $onlinestatus. Cut it from there. Then scroll up until you see the following:
Code:

<smallfont>Registered: $post[joindate]<br>
        Location: $post[field2]<br>
        Posts: $post[posts]</smallfont>

Replace that code with the following:
Code:

<smallfont>$onlinestatus<br>Registered: $post[joindate]<br>
        Location: $post[field2]<br>
        Posts: $post[posts]</smallfont>

That should work perfectly, if you have any troubles let me know.

Stretchr 01-03-2002 04:37 PM

You're right that it was simple to do but you sure saved me a lot of time by letting me know where to change things. I appreciate your quick response and help. Thank you!!

Sinecure 01-03-2002 04:39 PM

Your welcome :)

TurboFC3S 01-30-2002 04:32 PM

Cool! Just what I was looking for ...

dezoris 01-31-2002 10:31 PM

so do you just delete
the default script in the postbit_offline/online?
Or do you just place that
line that you mentioned in there?

dezoris 01-31-2002 11:21 PM

forget it I figured it out :)

KISS 02-04-2002 02:42 AM

how do you make it glow? btw it works great :)

Airwaves 02-04-2002 10:13 AM

and to get them to glow I must...

PLEASE reply

ace 02-04-2002 10:22 AM

<font color="#FFFFFF"><table style="filter:glow(color=yellow, strength=2)">Online</table></font>

there ya go ;)

Stretchr 02-04-2002 01:19 PM

I'm sure if you search you can find this in another post, but here's an example for Online.
PHP Code:

<td><div align="right" style="width:100%; font-size:8pt; color:white; filter:Glow(color=#e111a8, strength=2)">Online </div></td
<
td><div style="width:100%; font-size:8pt; color:grey; filter:none"> | Offline</div></td

I think I may have found the full code at vB.com

HTH
:D

Floris 02-08-2002 11:30 AM

Thank you guys :) I applied this template hack too now :P And am very pleased with it. Fnx.

mondaynightmike 02-11-2002 11:04 AM

So we have a long way to go then :)

*edit*Sorry, i posted in the wrong thread*edit*

ZiRu$ 02-28-2002 02:05 AM

worked like a charm!

I used the Glow.....

InnerSelf 06-14-2002 01:15 PM

the userstatus won't show up at my board ???

anybody who can help me out?

maybe i made an error in a php file or something

Ryan McBain 06-16-2002 07:07 PM

instead of online and offline, how do I put an image there?

KrisP 06-20-2002 07:06 PM

Thanks! Works like a charm :-)

- Kris (Glow is the key...)

Sinecure 06-21-2002 06:46 PM

I'm going to move this to the template modifications..

Chris M 06-21-2002 08:54 PM

Ryan...

Replace it with :

Code:

<img src="url to the image">
in both cases...

Satan

XFLBret 07-01-2002 10:00 PM

Quote:

Originally posted by ace
<font color="#FFFFFF"><table style="filter:glow(color=yellow, strength=2)">Online</table></font>

there ya go ;)

I gotta problem with this code...

when the user is off line, it works exactly as it should. however, when the user is on line, there is a inexplicable space between the word on line, and the registered line.

i've tried working on htis, but could not get that space outta there.

any suggestions?

exodus 07-02-2002 03:56 AM

t

Dade 07-02-2002 04:28 AM

Lyle you saint :D

asweetdeal 07-11-2002 04:38 AM

I installed this, however for some reason everyone is showing up as online... why is that?

Thanks!
ASweetDeal

SaintDog 07-11-2002 05:17 AM

Postbit
Postbit_offline
Postbit_online

As long as you just modified the above templates, you should not be having any problems.

- SaintDog

deFunx 07-15-2002 08:24 AM

thanks man it works realwell

PET 07-15-2002 07:47 PM

very simple & very cool TEMPLATE MOD.

Massiel 07-17-2002 01:45 PM

I have the same problem as XFLBret, any ideas?

Massiel 07-18-2002 05:38 AM

Any ideas why I get an extra space below Online in my forums?

Massiel 07-19-2002 08:21 AM

bump

SaintDog 07-19-2002 01:42 PM

He is not using a complete table, use the following instead (just replace it with the color(s) you want :)

Code:

<table>
<tr>
<td style="filter:glow(color=orange, strength=3,400)">
Online!
</td>
</tr>
</table>

The above should work fine,

- SaintDog

Massiel 07-27-2002 10:52 PM

Thank you!!! :)

nghiasi 07-29-2002 03:13 PM

Thank You for this hints. Really nic eone!

NexDog 08-12-2002 09:28 AM

Damn, been looking for this for weeks. Going to attempt it as soon as the server comes back to life from it's memory upgrade. :)

NexDog 08-12-2002 10:51 AM

1 Attachment(s)
Installed ok but have a weird problem. Check out the attached image. The message box seems to have expanded for some reasons. Plus the pages are taking ages to load.

[D]Vincent 08-12-2002 12:47 PM

Maybe make table width="100%" in it... i.e. <table width="100%"> this may not be it though.

NexDog 08-12-2002 12:59 PM

My hacked code looks like:

PHP Code:

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%">
<
tr>
    <
td bgcolor="$post[backcolor]width="175" valign="top" nowrap>
    <
a name="post$post[postid]"></a>
    
$post[firstnewinsert]
    <
normalfont><b>$post[username]</b></normalfont><br>
    <
smallfont>$post[usertitle]</smallfont><br>
    
$post[avatar]<p>
    <
smallfont>$onlinestatus<br>Registered$post[joindate]<br>
    
Location$post[field2]<br>
    
Posts$post[posts]<br><br>
                <
b>Server:</b$post[field4]<br></smallfont></td 

That second table tag is 100% but isn't obeying it's master before it. :(

NexDog 08-13-2002 03:42 AM

Anyone?

NexDog 08-13-2002 01:39 PM

Figured it out. ;)

exTracT 08-30-2002 10:20 AM

I was looking for this as well

thanks!!

Rock 08-31-2002 01:58 PM

damn, my $onlinestatus
isnt working ...
any ideas what i can be ???


All times are GMT. The time now is 06:09 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.02872 seconds
  • Memory Usage 1,799KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)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
  • (40)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