Announcement

Collapse
No announcement yet.

[release a minihack---personal glamour for vb2]

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

  • [release a minihack---personal glamour for vb2]

    This hack is get info on user statu.
    when view user's profile a "personal glamour"will be display.
    here is a demo:

    It's a Chinese Version.
    but in my zipfile ,It's a english Version.
    file to be edit: member.php
    template to be edit:getinfo
    updated on 05-19-2001 04:32 AM
    here's the hack:
    Last edited by ztsky; Thu 17 May '01, 9:37pm.

  • #2
    Who said what to who?

    What does this hack do?

    Comment


    • #3
      Next time make the image a JPG first.. that BMP takes hours to load !!!

      or put it on a better server

      Comment


      • #4
        Originally posted by Mega
        Next time make the image a JPG first.. that BMP takes hours to load !!!

        or put it on a better server
        You are right!
        The image is too big.I have it edited.
        Last edited by ztsky; Thu 17 May '01, 10:12am.

        Comment


        • #5
          what does this hack do?

          Comment


          • #6
            Originally posted by Sarge
            what does this hack do?
            Well, if you take a look in the textfile ztsky zipped, then you'll find a line like this:
            2*$userinfo[posts]+$personal0[personalviews];

            To keep it real simple, this hack produces a number of how active that user is on your forum, that's the personal glamour and I like it

            Comment


            • #7
              great hack except you made a typo in your document.

              change:
              Code:
              <td><normalfont>$starts</normalfont>
              to:
              Code:
              <td><normalfont>$personal</normalfont>
              Last edited by mrlister; Thu 17 May '01, 5:23pm.
              - MrLister

              Comment


              • #8
                Originally posted by mrlister
                great hack except you made a typo in your document.

                change:
                Code:
                <td><normalfont>$starts</normalfont>
                to:
                Code:
                <td><normalfont>$personal</normalfont>
                Thank you very much.
                I confuseed another hack with it,but it has been updated.

                Comment


                • #9
                  I think personal views would be a better name.

                  Personal glamour could mean many things
                  Motorsport Forums

                  Comment


                  • #10
                    I'm still confused - what exactly does this hack do?

                    Comment


                    • #11
                      Number of threads you have viewed (I think)
                      Motorsport Forums

                      Comment


                      • #12
                        Originally posted by Mark Hewitt
                        Number of threads you have viewed (I think)
                        2*$userinfo[posts]+$personal0[personalviews]
                        YOU CAN EDIT THIS CODE AS YOU LIKE.
                        It's produces a number of how active that user is on your forum.

                        Comment


                        • #13
                          what is how active?
                          I installed it and it didnt post anything next to glamour in profile
                          rc3

                          Comment


                          • #14
                            Originally posted by ztsky
                            It's produces a number of how active that user is on your forum.
                            Hi Ztsky! What exactly do you mean by "how active"? Number of times they view a thread? Number of times they visit your forums?

                            Comment


                            • #15
                              This hack is really good. I really like it. You can use it as a activity level. It's very simple to customize. How you want to customize it. Look here
                              2*$userinfo[posts]+$personal0[personalviews]

                              In this equation it will take the total number of posts the user has times it by 2 and add the total of views the user has. So if that user has 10 posts and has viewed 50 threads his activity level would be at 70. You can make it so it divides by 100 to use smaller numbers. Only thing missing is replies which would be nice. Ok I came up with this little add-on. There are two types of installations.

                              People who use tubedoggs User started X threads hack do this:

                              ***Go to member.php and find
                              Code:
                                $startcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
                                $starts = $startcount[starts];
                                if ($starts == ""):
                              	  $starts = "0";
                                endif;
                              ***Below that add
                              Code:
                              $personal0 = $DB_site->query_first("
                                  SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
                              $activity01= $userinfo[posts]-$starts;
                              $activity02= $starts;
                              $activity03= $personal0[personalviews];
                              $personal= 3*$activity02+2*$activity01+$activity03;
                                if ($personal2 == ""):
                              	  $personal2 = "0";
                                endif;
                              People who are doing a clean installation do this:[code]
                              ***open member.php and find
                              Code:
                                   eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
                                }
                              ***below that add
                              Code:
                                $startcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
                                $starts = $startcount[starts];
                                if ($starts == ""):
                              	  $starts = "0";
                                endif;
                              $personal0 = $DB_site->query_first("
                                  SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
                              $activity01= $userinfo[posts]-$starts;
                              $activity02= $starts;
                              $activity03= $personal0[personalviews];
                              $personal= 3*$activity02+2*$activity01+$activity03;
                                if ($personal2 == ""):
                              	  $personal2 = "0";
                                endif;
                              That's it. There's probably a cleaner way of doing the $activity01,02,03 thing but i'm still learning. Please not that i wish no credit for this. i have simply just put the two together and all thanks should go to ztsky and tubedogg. For the rest of the instructions download the file.
                              Last edited by mrlister; Fri 18 May '01, 7:56am.
                              - MrLister

                              Comment

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