Online Text?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snyx
    Senior Member
    • Aug 2000
    • 1070
    • 3.5.x

    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
  • Freddie Bingham
    Former vBulletin Developer
    • May 2000
    • 14057
    • 1.1.x

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

    Comment

    • almighty one
      Senior Member
      • Feb 2001
      • 392

      #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

      • snyx
        Senior Member
        • Aug 2000
        • 1070
        • 3.5.x

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

        Comment

        • mjames
          Senior Member
          • Nov 2000
          • 1076
          • 3.8.x

          #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

          • Goddess Washu
            New Member
            • Jun 2001
            • 29

            #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

            • Pie'oh'pah
              Senior Member
              • Jul 2001
              • 157

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

              • Pie'oh'pah
                Senior Member
                • Jul 2001
                • 157

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

                • Goddess Washu
                  New Member
                  • Jun 2001
                  • 29

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

                  Comment

                  • Goddess Washu
                    New Member
                    • Jun 2001
                    • 29

                    #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

                    • Pie'oh'pah
                      Senior Member
                      • Jul 2001
                      • 157

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

                      • Goddess Washu
                        New Member
                        • Jun 2001
                        • 29

                        #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

                        • Pie'oh'pah
                          Senior Member
                          • Jul 2001
                          • 157

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

                          • Goddess Washu
                            New Member
                            • Jun 2001
                            • 29

                            #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

                            • Pie'oh'pah
                              Senior Member
                              • Jul 2001
                              • 157

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