Announcement

Collapse
No announcement yet.

[Addon for glamour hack by ztsky]

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

  • express
    replied
    ztsky

    My have a problem with this script. This is what I have noticed.

    It seems if a registered used post's or replies to thread the personalviews show;s a total for them. But if a registered user does post a thread or reply to any his views or not showing up in the members profile area. They all have zero's. I watched 3 members tonight view alot of threads but there personalview count stayed at zero. Then one of them replied to a message and then every time he view a thread it totaled in his personalviews like it should.

    Any answers why this would act like this? Kinda have the same problem with the last online hack. The other 10 to 12 hacks I have installed all work fine.

    Joey

    Leave a comment:


  • express
    replied
    Thanks

    Leave a comment:


  • ztsky
    replied
    Originally posted by webhost
    Ok got the new code installed. Can you go to my board and see if it looks right? In the user profile and the showthread.

    Joey
    guest username is newguy password is hackman
    aha!
    It works well.

    Leave a comment:


  • express
    replied
    Ok got the new code installed. Can you go to my board and see if it looks right? In the user profile and the showthread.

    Joey
    guest username is newguy password is hackman

    Leave a comment:


  • ztsky
    replied
    Originally posted by webhost
    Thanks For posting so quick. I got it working has you were posting. But I installed like your zip file in the first thread of the other thread. The one that does not have the activity stuff in it. What does the activity stuff add to your feature from the first thread?

    Joey
    In this hack you can see:
    $activity01= $userinfo[posts]-$starts;
    $activity02= $starts;
    $activity03= $personal0[personalviews];
    $personal= 3*$activity02+2*$activity01+$activity03;


    $activity01 is a stuff that the user's replies to others.

    $activity02 is a stuff that the user start threads.
    $activity03 is a stuff that the threads started by this user have been viewed by others .

    $personal is a value that above.you can difinite the
    $personal= 3*$activity02+2*$activity01+$activity03;
    as you like.

    Leave a comment:


  • express
    replied
    Thanks For posting so quick. I got it working has you were posting. But I installed like your zip file in the first thread of the other thread. The one that does not have the activity stuff in it. What does the activity stuff add to your feature from the first thread?

    Joey

    Leave a comment:


  • ztsky
    replied
    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

    Leave a comment:


  • express
    replied
    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

    Leave a comment:


  • ztsky
    replied
    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 -->

    Leave a comment:


  • express
    replied
    Just add this in the getinfo template?

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

    Leave a comment:


  • ztsky
    replied
    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.

    Leave a comment:


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

    Joey



    Leave a comment:


  • ztsky
    replied
    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>

    Leave a comment:


  • Martz
    replied
    is there any reason this line is included?

    Code:
    $personal= 2*$userinfo[posts]+$personal0[personalviews];
    I'd prefer to use
    Code:
    $personal= $personal0[personalviews];

    Leave a comment:


  • OrangeFaygo
    replied
    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.

    Leave a comment:

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