[Release v2.0.1] ColoredOnlineUserHack

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Afterburner
    Senior Member
    • Jun 2001
    • 163

    [Release v2.0.1] ColoredOnlineUserHack

    Deutsch:
    Ich bin zurück mit meinem ersten Hack fürs VB (in der Vergangenheit habe ich nur die Hacks fürs UB2K geschrieben)
    Dieser Hack zeigt die Usernamen von Administratoren (ID:6) Supermoderatoren (ID:5) Moderatoren (ID:7) und registrierten Membern (ID:2) in der Onlineliste farbig an.

    English:
    I am back with my first VB Hack. (I wrote only hacks for the UB2K in the past )
    If you use this hack you have colored usernames of Administrators (ID:6) Supermoderators (ID:5) Moderators (ID:7) and Members (ID:2) in your Onlinelist.
    Last edited by Afterburner; Tue 21 Aug '01, 12:05pm.
  • RobAC
    Senior Member
    • Jan 2001
    • 1414
    • 3.8.x

    #2
    Is it possible to see an example of this so we can get a better idea of what it is/looks like? Thanks.
    Rob

    Comment

    • Afterburner
      Senior Member
      • Jun 2001
      • 163

      #3
      yes of course

      go to my homepage:

      Comment

      • GameCrash
        Senior Member
        • Oct 2000
        • 422
        • 3.6.x

        #4
        Please post releases in the forum 'Releases: Version 2.x'
        GameCrash

        Project Tools Importer for forum threads
        Current Version: 1.0.0 Beta 3

        Comment

        • Afterburner
          Senior Member
          • Jun 2001
          • 163

          #5
          @ Ed Sullivan, wluke

          please move the topic to the correct forum

          Comment

          • Sarge
            Senior Member
            • Oct 2000
            • 312

            #6
            worked great!

            Comment

            • Afterburner
              Senior Member
              • Jun 2001
              • 163

              #7
              @ Sarge

              wow 110393 posts in your board

              Comment

              • DeusDeorum
                New Member
                • Mar 2001
                • 1

                #8
                Netter Hack Hab ihn bei meinem Board gleich mal einbegaut!

                Comment

                • Maverick1236
                  Senior Member
                  • Apr 2001
                  • 346

                  #9
                  how?

                  how do you know what a certain usergroups-usergroup ID is?

                  Comment

                  • Steve Machol
                    Former Customer Support Manager
                    • Jul 2000
                    • 154488

                    #10
                    Re: how?

                    Originally posted by Maverick1236
                    how do you know what a certain usergroups-usergroup ID is?
                    If you go into:

                    Admin CP -> User Groups and Permissions -> Modify

                    ...and place your cursor over 'edit' you'll see the userid in the link window.
                    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                    Change CKEditor Colors to Match Style (for 4.1.4 and above)

                    Steve Machol Photography


                    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                    Comment

                    • Maverick1236
                      Senior Member
                      • Apr 2001
                      • 346

                      #11
                      Thank you!!

                      You just saved me a lot of work!!
                      TX for the swift response!!!!!!!!

                      Comment

                      • TWTCommish
                        Senior Member
                        • Jul 2000
                        • 664

                        #12
                        This can be made more efficient. Example: change this code...

                        Code:
                         if ($farbe == 2 ) {
                        	 $username = "<font color=blue>".$username."</font>"; // Color for Member
                         }
                         if ($farbe == 5 ) {
                        	 $username = "<font color=darkred>".$username."</font>"; // Color for Supermoderator
                         } 
                         if ($farbe == 6 ) {
                        	 $username = "<font color=red>".$username."</font>"; // Color for Administrator
                         }
                         if ($farbe == 7 ) {
                        	 $username = "<font color=green>".$username."</font>"; // Color for Moderator
                         }
                        ...into this...

                        Code:
                          switch ($farbe) {
                            case 2:
                              $color = "blue";
                              break;
                            case 5:
                              $color = "darkred";
                              break;
                            case 6:
                              $color = "red";
                              break;
                            case 7:
                              $color = "green";
                              break;
                          }
                        
                          $username = "<font color=\"$color\">$username</font>";
                        I didn't look at the code in significant detail, but I think this can be used in both instances...both times you use that if/else code above, that is. At the very least, you can put it in a function to save some space.
                        Movie Forums - Now With 28% More Bruce Willis

                        Comment

                        • Rune1027
                          New Member
                          • Jun 2001
                          • 13

                          #13
                          Thats great, but How did you get the hypercells? That was a cool hack from UBB that I have missed

                          Comment

                          • Afterburner
                            Senior Member
                            • Jun 2001
                            • 163

                            #14
                            Originally posted by Rune1027
                            Thats great, but How did you get the hypercells? That was a cool hack from UBB that I have missed
                            what do you mean with hypercells ?

                            Comment

                            • mojotim
                              Member
                              • May 2001
                              • 86

                              #15
                              I think

                              he means how do you get your cells to highlight when the cursor is over them. Prob DHTML, right?

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...