The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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:
PHP Code:
Find: Code:
Posts: $post[posts]</smallfont></td> Code:
Posts: $post[posts]<br> Personal Views: $personal </smallfont></td> have fun Show Your Support
|
Comments |
#12
|
|||
|
|||
Quote:
just edit the getinfo template. |
#13
|
||||
|
||||
Just add this in the getinfo template?
$personal= 2*$userinfo[posts]+$personal0[personalviews]; |
#14
|
|||
|
|||
Quote:
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 --> |
#15
|
||||
|
||||
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>Personalview s</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 |
#16
|
|||
|
|||
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>$lastpostdat e $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 |
#17
|
||||
|
||||
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 |
#18
|
|||
|
|||
Quote:
$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. |
#19
|
||||
|
||||
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 |
#20
|
|||
|
|||
Quote:
It works well. |
#21
|
||||
|
||||
Thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|