View Full Version : Online/Offline In Forums
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:
<b>Offline!</b>
Second, change postbit_online to the following:
<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:
<smallfont>Registered: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts]</smallfont>
Replace that code with the following:
<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 :)
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
<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.
<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 :
<img src="url to the image">
in both cases...
Satan
XFLBret
07-01-2002, 10:00 PM
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
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
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 :)
<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
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:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="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!!
damn, my $onlinestatus
isnt working ...
any ideas what i can be ???
Dan Flynn
09-22-2002, 04:55 AM
Can someone check this postbit template I installed the online/offline as said in the first post and all I get is Offline! even if im on? Maybe I messed something up here. I might have other things I changed in here and I did want to go back to the original.
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="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>
$age
Location: $post[field2]<br>
Posts: $post[posts]</smallfont>
</td>
<td bgcolor="$post[backcolor]" width="100%" valign="top">
<smallfont>$post[icon] <b>$post[title]</b></smallfont>
<p><normalfont>$post[message]</normalfont></p>
$post[attachment]
<p>$post[signature]</p>
<p>$post[editedby]</p>
<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$post[foldericon]
$post[postdate] <font color="{timecolor}">$post[posttime]</font></smallfont></td>
<td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td><smallfont>
$post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]
<!-- $ post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] -->
</smallfont></td>
<td align="right" nowrap><smallfont>
<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a>
<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a>
</smallfont></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>
<!-- spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>
a43079
09-22-2002, 10:56 AM
nice
maestrosdelweb
09-26-2002, 09:40 PM
Thanks. That's exactly what I was looking for.
MuSuL
03-29-2003, 09:02 AM
Thanks
Dean C
03-29-2003, 11:52 AM
*moved an old post to correct forum* ;)
- miSt
AaahhNuts
05-20-2003, 09:55 PM
Kewl hack...But I still get that extra space when using the glow online....hack to the hack, make the offline glow...LOL
Oo Well, it will do for now.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.