Announcement

Collapse
No announcement yet.

Online Text?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Online Text?

    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)
    MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

  • #2
    Doh, you just edit the postbit online/offline templates.

    Comment


    • #3
      hey yeah that was pretty simple and looks nicer too add the glow effect to onlien users name
      http://www.danasoft.com/vipersig.jpg

      Comment


      • #4
        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 11th Aug '01, 7:48pm.
        MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

        Comment


        • #5
          Re: Online Text?

          Originally posted by snyx
          http://www.vbulletin.com/forum/attachment.php?s=&postid=153055
          Hey, that's me!
          Marc James
          Sports Central Beyond the Scores
          Sports Central Message Boards

          Comment


          • #6
            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


            • #7
              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....

              -Alex
              Last edited by Pie'oh'pah; Wed 15th Aug '01, 5: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 NE | 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


              • #8
                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 !

                - Alex
                Last edited by Pie'oh'pah; Wed 15th Aug '01, 7: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 NE | 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


                • #9
                  Thanks a lot, that second way is really cool.

                  Comment


                  • #10
                    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


                    • #11
                      Sure.

                      In your Postbit Template find $onlinestatus. Take it away
                      and put that variable whereever you want it to appear.

                      That's it

                      -Alex
                      Last edited by Pie'oh'pah; Wed 15th Aug '01, 9: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 NE | 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


                      • #12
                        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

                        -Alex
                        Ohh ok, thanks again... but is it possible for me to keep that little icon in the toolbar aswell, perhaps I could add some php code to the template to add that decision making...

                        Comment


                        • #13
                          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.

                          -Alex
                          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 NE | 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


                          • #14
                            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.

                            -Alex
                            Yeah that's what I am thinking... I'm the exact opposite, I understand the php side, but for some reason these templates baffle me... -_- Thanks again for the help. I'll look into that when I get home (at work now) can't get FTP access to my file from here... -_-;; Thanks again.

                            Comment


                            • #15
                              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")."\";"); 
                              ***right below add

                              PHP Code:
                              eval("\$onlinestatus1 = \"".gettemplate("postbit_online1")."\";"); 

                              ***find

                              PHP Code:
                              eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";"); 
                              ***right below add

                              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


                              -Alex
                              Last edited by Pie'oh'pah; Wed 15th Aug '01, 9: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 NE | 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.
                              Working...
                              X