Results 1 to 15 of 45
Page 1 of 3
FirstFirst 1 2 3 ... LastLast

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

  1. #1
    Senior Member ztsky is on a distinguished road
    Join Date
    Mar 2001
    Age
    36
    Posts
    151

    [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; Fri 18th May '01 at 2:37am.
     

  2. #2
    Senior Member Sarge is on a distinguished road
    Join Date
    Oct 2000
    Posts
    282
    Who said what to who?

    What does this hack do?
     

  3. #3
    Member Mega is on a distinguished road
    Join Date
    Apr 2001
    Age
    28
    Posts
    94
    Next time make the image a JPG first.. that BMP takes hours to load !!!

    or put it on a better server
     

  4. #4
    Senior Member ztsky is on a distinguished road
    Join Date
    Mar 2001
    Age
    36
    Posts
    151
    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 17th May '01 at 3:12pm.
     

  5. #5
    Senior Member Sarge is on a distinguished road
    Join Date
    Oct 2000
    Posts
    282
    what does this hack do?
     

  6. #6
    Senior Member Pingu has disabled reputation Pingu's Avatar
    Join Date
    Jan 2001
    Location
    Netherlands
    Posts
    492
    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
     

  7. #7
    Senior Member mrlister is on a distinguished road mrlister's Avatar
    Join Date
    Nov 2000
    Location
    Burnaby, BC
    Posts
    371
    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 17th May '01 at 10:23pm.
    - MrLister
     

  8. #8
    Senior Member ztsky is on a distinguished road
    Join Date
    Mar 2001
    Age
    36
    Posts
    151
    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.
     

  9. #9
    Senior Member Mark Hewitt has disabled reputation Mark Hewitt's Avatar
    Join Date
    Apr 2000
    Location
    Geordieland, UK
    Age
    31
    Posts
    1,112
    I think personal views would be a better name.

    Personal glamour could mean many things
     

  10. #10
    Lady Moderator Me2Be has disabled reputation
    Join Date
    Jun 2000
    Location
    California
    Posts
    2,510
    I'm still confused - what exactly does this hack do?
     

  11. #11
    Senior Member Mark Hewitt has disabled reputation Mark Hewitt's Avatar
    Join Date
    Apr 2000
    Location
    Geordieland, UK
    Age
    31
    Posts
    1,112
    Number of threads you have viewed (I think)
     

  12. #12
    Senior Member ztsky is on a distinguished road
    Join Date
    Mar 2001
    Age
    36
    Posts
    151
    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.
     

  13. #13
    Senior Member Sarge is on a distinguished road
    Join Date
    Oct 2000
    Posts
    282
    what is how active?
    I installed it and it didnt post anything next to glamour in profile
    rc3
     

  14. #14
    Lady Moderator Me2Be has disabled reputation
    Join Date
    Jun 2000
    Location
    California
    Posts
    2,510
    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?
     

  15. #15
    Senior Member mrlister is on a distinguished road mrlister's Avatar
    Join Date
    Nov 2000
    Location
    Burnaby, BC
    Posts
    371
    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 18th May '01 at 12:56pm.
    - MrLister
     

Page 1 of 3
FirstFirst 1 2 3 ... LastLast

Similar Threads

  1. [Release v2.0.3] vBpad - Your personal notepad! (v1.0)
    By Chen in forum Releases: Version 2.x
    Replies: 85
    Last Post: Sun 28th Oct '01, 12:42am
  2. [Release - MiniHack] Make update user info update post counts
    By DarkReaper in forum Releases: Version 2.x
    Replies: 2
    Last Post: Wed 24th Oct '01, 1:01am
  3. [Addon for glamour hack by ztsky]
    By DeadlyMax in forum Releases: Version 2.x
    Replies: 35
    Last Post: Thu 9th Aug '01, 8:14pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts