Announcement

Collapse
No announcement yet.

[Addon for glamour hack by ztsky]

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

  • [Addon for glamour hack by ztsky]

    his post can de found here:
    http://www.vbulletin.com/forum/showt...threadid=17116

    i wanted to add another feature
    all credits go to ztsky i dont want any of em..

    ok here we go:
    ---------------------

    this will add Personal Views to the posts
    image:



    in showthread.php

    Find:

    PHP Code:
        $onlinestatus="";
      } 
    Below that add:

    PHP Code:
    $personal0 $DB_site->query_first("
        SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='
    $userinfo[userid]' AND open!='10'");
    $personal2*$userinfo[posts]+$personal0[personalviews];
      if (
    $personal0 == ""):
          
    $personal0 "0";
      endif; 
    then edit template postbit:

    Find:

    Code:
    	Posts: $post[posts]</smallfont></td>
    Replace that with:

    Code:
    	Posts: $post[posts]<br>
    	Personal Views: $personal </smallfont></td>
    that should do the trick
    have fun
    Last edited by DeadlyMax; Fri 6th Jul '01, 2:57pm.

  • #2
    Wow, so simple yet so impressive

    Thanks a lot
    HP DL-380 G6, 2x E5520, 28GB RAM, 4x300GB SAS, VMWare ESXi
    -
    Unreal Tournament : Assault forums - irc://irc.utassault.net:6667 -

    Comment


    • #3
      Do I place the code:

      Code:
      $personal0 = $DB_site->query_first("
          SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
      $personal= 2*$userinfo[posts]+$personal0[personalviews];
        if ($personal0 == ""):
            $personal0 = "0";
        endif;
      Does that go before the } or after the }

      Comment


      • #4
        Originally posted by OrangeFaygo
        Do I place the code:

        Code:
        $personal0 = $DB_site->query_first("
            SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
        $personal= 2*$userinfo[posts]+$personal0[personalviews];
          if ($personal0 == ""):
              $personal0 = "0";
          endif;
        Does that go before the } or after the }
        after the }

        Comment


        • #5
          It is not working for me no matter what I do, I run version 2.0 and have edited everything but nothing shows.

          Comment


          • #6
            weird are u sure u did it in showthread.php and edited the template?

            and do you have icq its easier to talk

            Comment


            • #7
              I had someone do it for me, seems I misplaced some of the coding or erased it. Had to re-upload it and we got it all starightened out. There is one thing thoughm can you tell me much about the actual glamor hack? I the same person that installed yours install mine also and he could not get it to work - installed it in the right place, code has been edited and everything, but it is not working right. Edited the member.php and the template asked.

              I have AIM: ProgramXnet

              Sorry about not having ICQ, I have had a lot of people send me crap I never want or ask for so it is gone, I hardly ever have that happen on AIM.

              Thanks.

              Comment


              • #8
                is there any reason this line is included?

                Code:
                $personal= 2*$userinfo[posts]+$personal0[personalviews];
                I'd prefer to use
                Code:
                $personal= $personal0[personalviews];
                HP DL-380 G6, 2x E5520, 28GB RAM, 4x300GB SAS, VMWare ESXi
                -
                Unreal Tournament : Assault forums - irc://irc.utassault.net:6667 -

                Comment


                • #9
                  Oh,thank you.
                  I have this feature a month ago.
                  look this:
                  http://tsing.com/vb/showthread.php?threadid=1742
                  But in my before post here ,I didn't re-release it.
                  To reach this feature,just do some edit in showthread.php as done in member.php,postbit as getinfo.
                  but you have done it.

                  in my forum I have release it at 05-21-2001 10:36 AM
                  http://tsing.com/vb/showthread.php?threadid=836
                  this is the post in Chinese:
                  µÚ 1 Ìû [RELEASE personal glamour FOR VB2]
                  ÖÐÎľÍÊǸöÈË÷ÈÁ¦HACK¡ª¡ª×÷Õߣºztsky±¾ÈË
                  ÊÇͳ¼ÆÒ»¸ö»áÔ±ÊÇ·ñ»ý¼«²ÎÓëÂÛ̳¼°ËûÔÚÂÛ̳Êܵ½¹Ø×¢µÄ³Ì¶È£¬·½±ã¹ÜÀíÔ±¹ÜÀí£¬Ãû×ÖÄãËæ±ãÏ룬Äã½Ð ¸öÈË÷ÈÁ¦¿ÉÒÔ£¬½ÐÂÛ̳»ý·Ö¿ÉÒÔ£¬½Ð¾­ÑéÖµÒ²¿ÉÒÔ¡£
                  ÎÒÔÚVBÂÛ̳²ÎÓëµÄÌÖÂÛÇë¼û£ºhttp://www.vbulletin.com/forum/show...?threadid=17116
                  ÑÝʾ
                  Èç¹ûתÔØ£¬Çë×¢Ã÷³ö´¦~£¡

                  1¡¢ÐÞ¸Ä member.php
                  ²éÕÒeval("\$birthday = \"".gettemplat("getinfo_birthday")."\";");
                  }
                  ÔÚÏÂÃæ¼Ó
                  // Find out how many threads this user has started
                  $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;
                  // end Find threads
                  // Find out how much personal glamour does this user has
                  $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;
                  // end Findhow much personal glamour
                  2¡¢±à¼­ Ĥ°æ User Info Display Templates ÖеÄgetinfo
                  ÔÚ
                  <tr>
                  <td bgcolor="#efefef"><normalfont>·¢ÌûÊýÁ¿:</normalfont></td>
                  <td bgcolor="#efefef"><normalfont>$userinfo[posts] (ÿÌì $postsperday Ìû)</normalfont></td>
                  </tr>
                  ÏÂÃæ¼Ó
                  <tr>
                  <td bgcolor="#f7f7f7"><normalfont>·¢ÆðÖ÷Ìâ:</normalfont></td>
                  <td bgcolor="#f7f7f7"><normalfont>$starts</normalfont>
                  </td></tr>
                  <!-- User personal glamour-->
                  <tr>
                  <td bgcolor="#efefef"><normalfont>¸öÈË÷ÈÁ¦</normalfont></td>
                  <td bgcolor="#efefef"><normalfont>$personal</normalfont>
                  </td>
                  </tr>
                  <!-- End User personal glamour -->

                  3¡¢ÐÞ¸Ä SHOWTHREAD.PHP
                  ²éÕÒ//$post[message].=$post[signature];
                  ÔÚºóÃæ¼ÓÉÏ
                  // Find out how many threads this user has started
                  $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;
                  // end Find threads
                  // Find out how much personal glamour does this user has
                  $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;
                  // end Findhow much personal glamour
                  4¡¢ÐÞ¸ÄÃþ°æ POSTBIT
                  ½«
                  À´×Ô: $post[field2]<br>
                  ·¢ÌûÊýÁ¿: $post[posts]</smallfont></td>
                  ¸ÄΪ
                  À´×Ô: $post[field2]<br>
                  ·¢ÌûÊýÁ¿: $post[posts]<br>
                  ¸öÈË÷ÈÁ¦:$personal </smallfont></td>

                  Comment


                  • #10
                    Is it possible to add this also to the user profile under last online
                    below in the jpg.

                    Joey



                    Real Web Host

                    Comment


                    • #11
                      Originally posted by webhost
                      Is it possible to add this also to the user profile under last online
                      below in the jpg.

                      Joey



                      yes ,you can install the last online too.
                      just edit the getinfo template.

                      Comment


                      • #12
                        Just add this in the getinfo template?

                        $personal= 2*$userinfo[posts]+$personal0[personalviews];
                        Real Web Host

                        Comment


                        • #13
                          Originally posted by webhost
                          Just add this in the getinfo template?

                          $personal= 2*$userinfo[posts]+$personal0[personalviews];
                          plz read the install.txt.
                          IF you have install the last online hack and this hack.you should edit you getinfo template:
                          FIND:

                          <tr>
                          <td bgcolor="#efefef"><normalfont>last online </normalfont></td>
                          <td bgcolor="#efefef"><normalfont>$lastonline</normalfont>
                          </td>
                          </tr>

                          AFTER THIS,ADD:
                          <!-- User personal glamour-->
                          <tr>
                          <td bgcolor="#efefef"><normalfont>personalviews</normalfont></td>
                          <td bgcolor="#efefef"><normalfont>$personal</normalfont>
                          </td>
                          </tr>
                          <!-- End User personal glamour -->

                          Comment


                          • #14
                            Still have A problem, here's how I put code in and how it looks total not showing up. Also could you post new zip file with code changes and instructions, I am using 2.0.1, can not make out all the code in your previous posts. Thanks here's the code.

                            </tr>
                            <!-- Start Last Online -->
                            <tr>
                            <td bgcolor="{secondaltcolor}"><normalfont><b>Last Online:</b></normalfont></td>
                            <td bgcolor="{secondaltcolor}"><normalfont> $lastonline_time $lastonline_date</normalfont></td>
                            </tr>
                            <!-- End Last Online -->
                            <!-- User personal glamour-->
                            <tr>
                            <td bgcolor="{firstaltcolor}"><normalfont>Personalviews</normalfont></td>
                            <td bgcolor="{firstaltcolor}"><normalfont>$personal</normalfont>
                            </td>
                            </tr>
                            <!-- End User personal glamour -->
                            <tr>
                            <td bgcolor="{secondaltcolor}"><normalfont><b>Contact $userinfo[username]:</b></normalfont></td>

                            go to my board and look at someone's profile. Panelviews shows up under last online but no number shows up in the column to the right of panelviews in the same row.

                            Joey
                            Real Web Host

                            Comment


                            • #15
                              Hi! webhost

                              1¡¢**********Edit member.php
                              **********FIND
                              eval("\$birthday = \"".gettemplat("getinfo_birthday")."\";");
                              }
                              **********ADD AFTER THIS,ADD
                              // Find out how many threads this user has started
                              $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;
                              // end Find threads
                              // Find out how much personal glamour does this user has
                              $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;
                              // end Findhow much personal glamour


                              2¡¢*************editTemplate getinfo
                              *******FIND
                              <tr>
                              <td bgcolor="{secondaltcolor}"><normalfont><b>Total Posts:</b></normalfont></td>
                              <td bgcolor="{secondaltcolor}"><normalfont>$userinfo[posts] ($postsperday posts per day)</normalfont></td>
                              </tr>
                              <tr>
                              <td bgcolor="{firstaltcolor}"><normalfont><b>Last Post:</b></normalfont></td>
                              <td bgcolor="{firstaltcolor}"><normalfont>$lastpostdate $lastposttime<br><a href="$lastposturl">$lastposttitle</a>$nolastpost</normalfont></td>
                              </tr>
                              ********AFTER THIS CODE,ADD:
                              <tr>
                              <td bgcolor="{secondaltcolor}"><normalfont><b>Start Threads:</b></normalfont></td>
                              <td bgcolor="{secondaltcolor}"><normalfont>$starts </normalfont></td>
                              </tr>
                              <tr>
                              <td bgcolor="{firstaltcolor}"><normalfont><b>Personal Views:</b></normalfont></td>
                              <td bgcolor="{firstaltcolor}"><normalfont><b>$personal </b></normalfont></td>
                              </tr>

                              3¡¢**********Edit SHOWTHREAD.PHP
                              **********FIND
                              //$post[message].=$post[signature];
                              **********AFTER THIS,ADD
                              // Find out how many threads this user has started
                              $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;
                              // end Find threads
                              // Find out how much personal glamour does this user has
                              $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;
                              // end Findhow much personal glamour
                              4¡¢**********Edit template POSTBIT
                              *********FIND:
                              <smallfont>Registered: $post[joindate]<br>
                              Location: $post[field2]<br>
                              Posts: $post[posts]</smallfont></td>
                              *******replace with this code:
                              <smallfont>Registered: $post[joindate]<br>
                              location: $post[field2]<br>
                              posts: $post[posts]<br>
                              personalviews:$personal </smallfont></td

                              Comment

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