How can I make it say if a user is online or not? Like the icon under there post, but in text. Here is an example (taken from sitepointforums)
Online Text?
Collapse
X
-
Tags: None
-
-
hey yeah that was pretty simple and looks nicer too add the glow effect to onlien users nameComment
-
well duh, I was all in the postbit temp. but I couldnt realize how to change it from the icon to text. arg, there has got to be somthing so simple im missing, and then I looked a bit closer and saw postbit_offline and postbit_online wow, I really hate the way the temp. are sorted, and how I can't seem to find simple things. thanks boys.Last edited by snyx; Sat 11 Aug '01, 6:48pm.MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.comComment
-
Re: Online Text?
Originally posted by snyx
http://www.vbulletin.com/forum/attachment.php?s=&postid=153055Comment
-
Oy, I must be slow... how would I go about doing that... I see the templates and what not, but what would I do from there...Comment
-
Postbit Templates
online template
***remove all
***insert
& nbsp;Online!
or if you want to have it with glow effect:
***insert
<div style="width:100%; font-size:7pt; color:white; filter:Glow(color=lightgreen, strength=2)"> Online!</div>
<nobr>
offline template
***remove all
***insert
& nbsp;Offline!
or if you want to have it with glow effect:
***insert
<div style="width:100%; font-size:8pt; color:white; filter:Glow(color=darkgreen, strength=2)"> Offline!</div>
<nobr>
Make sure to remove the space between '&' and 'nbsp;'
And play around with the colors and glow amount
Hope that helps....
-AlexLast edited by Pie'oh'pah; Wed 15 Aug '01, 4:09am.I want to express my deepest compassion to all who have lost their loved ones in the latest terroristic attack
>> Nuke Bin Laden yourself here <<
Webmaster NÐE | Webmaster UA Forums | ArtworX ECL | Admin DiGL | Hosted at RWH | Portfolio
My Stylez
Red Darkness | Velvet Night | Dreadful Cyan
Goodiez
Table bgcolor change on hover | Onlinestatus modifications | German Templates
\\\ ///
(ô ô)
-------------------ooO-(_)-Ooo-----------------Comment
-
Another way
I have done it a different way also. Check out the attachement.
To do that, edit the same templates as above, but replace all with
postbit_online template
<table align="center" width="80%" border="0">
<tr>
<td><div align="right" style="width:100%; font-size:8pt; color:white; filter:Glow(color=lightgreen, strength=2)"> Online </div></td>
<td><div style="width:100%; font-size:8pt; color:grey; filter:none"> | Offline</div></td>
</tr>
</table>
postbit_offline template
<table align="center" width="80%" border="0">
<tr>
<td><div align="right" style="width:100%; font-size:8pt; color:{textcolor}; filter:none"> Online | </div></td>
<td><div style="width:100%; font-size:8pt; color:white; filter:Glow(color=lightgreen, strength=2)"> Offline</div></td>
</tr>
</table>
Ahh and make sure, you enable this option in your admin cp !
- AlexLast edited by Pie'oh'pah; Wed 15 Aug '01, 6:17am.I want to express my deepest compassion to all who have lost their loved ones in the latest terroristic attack
>> Nuke Bin Laden yourself here <<
Webmaster NÐE | Webmaster UA Forums | ArtworX ECL | Admin DiGL | Hosted at RWH | Portfolio
My Stylez
Red Darkness | Velvet Night | Dreadful Cyan
Goodiez
Table bgcolor change on hover | Onlinestatus modifications | German Templates
\\\ ///
(ô ô)
-------------------ooO-(_)-Ooo-----------------Comment
-
-
But is it possible for me to get that Online | Offline to appear in the area that has the username and the avatar and all that data?Comment
-
Sure.
In your Postbit Template find $onlinestatus. Take it away
and put that variable whereever you want it to appear.
That's it
-AlexLast edited by Pie'oh'pah; Wed 15 Aug '01, 8:00am.I want to express my deepest compassion to all who have lost their loved ones in the latest terroristic attack
>> Nuke Bin Laden yourself here <<
Webmaster NÐE | Webmaster UA Forums | ArtworX ECL | Admin DiGL | Hosted at RWH | Portfolio
My Stylez
Red Darkness | Velvet Night | Dreadful Cyan
Goodiez
Table bgcolor change on hover | Onlinestatus modifications | German Templates
\\\ ///
(ô ô)
-------------------ooO-(_)-Ooo-----------------Comment
-
Originally posted by Pie'oh'pah
Sure.
In your Postbit Template find $onlinestatus. Take it away
and put that variable whereever you want it to appear.
That's it
-AlexComment
-
Grrrrrrr
Well, i guess that would require a little code stripping.
Something like $onlinestatus and $onlinestatus1 and additional templates.
Try to find the declaration of the $onlinestatus variable in the php file, shouldn't be too hard to copy the part and create the same with the $onlinestatus1
I'm not much into php (mostly glad to be able to add the hacks )
I'll try to find it though.
-AlexI want to express my deepest compassion to all who have lost their loved ones in the latest terroristic attack
>> Nuke Bin Laden yourself here <<
Webmaster NÐE | Webmaster UA Forums | ArtworX ECL | Admin DiGL | Hosted at RWH | Portfolio
My Stylez
Red Darkness | Velvet Night | Dreadful Cyan
Goodiez
Table bgcolor change on hover | Onlinestatus modifications | German Templates
\\\ ///
(ô ô)
-------------------ooO-(_)-Ooo-----------------Comment
-
Originally posted by Pie'oh'pah
Grrrrrrr
Well, i guess that would require a little code stripping.
Something like $onlinestatus and $onlinestatus1 and additional templates.
Try to find the declaration of the $onlinestatus variable in the php file, shouldn't be too hard to copy the part and create the same with the $onlinestatus1
I'm not much into php (mostly glad to be able to add the hacks )
I'll try to find it though.
-AlexComment
-
LOL
We make a couple hehe
Well, i dont know anything about php, but here is the solution
in your admin/functions.php
***find
PHP Code:eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";");
PHP Code:eval("\$onlinestatus1 = \"".gettemplate("postbit_online1")."\";");
***find
PHP Code:eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
PHP Code:eval("\$onlinestatus1 = \"".gettemplate("postbit_offline1")."\";");
Thats for the php!
Now, just create 2 new Templates:
postbit_offline1
postbit_online1
in those templates put the code from the former postings
now revert the postbit_online and postbit_offline to orignial (then you got that icon back right in front of the posting date)
now place the new variable $onlinestatus1 whereever you like.
Puuuh. Done.
Is this cosidered a hack?? I just did a hack, didn't I?! Yeeehaw my first hack
-AlexLast edited by Pie'oh'pah; Wed 15 Aug '01, 8:56am.I want to express my deepest compassion to all who have lost their loved ones in the latest terroristic attack
>> Nuke Bin Laden yourself here <<
Webmaster NÐE | Webmaster UA Forums | ArtworX ECL | Admin DiGL | Hosted at RWH | Portfolio
My Stylez
Red Darkness | Velvet Night | Dreadful Cyan
Goodiez
Table bgcolor change on hover | Onlinestatus modifications | German Templates
\\\ ///
(ô ô)
-------------------ooO-(_)-Ooo-----------------Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment