The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Like all $DB_site, db_mysql.php.
|
#12
|
|||
|
|||
Duh! I should have known, my brain is enjoying the holiday.
Thanks again |
#13
|
|||
|
|||
Quote:
Hey Firefly, Where exactly does this code go? I put it in one of the cp templates and that didn't work. Thanks! |
#14
|
||||
|
||||
In index.php, add this:
Code:
$countviews=$DB_site->query_first("SELECT SUM(views) AS views FROM thread WHERE postuserid='$bbuserinfo[userid]'"); $yourviews=number_format($countviews['views']); Code:
// get newest member |
#15
|
||||
|
||||
FireFly~~
can it show up in postbit~~ i want to do that u know how to do that?? |
#16
|
||||
|
||||
Yeah I do, but it takes too much resource.
|
#17
|
||||
|
||||
i know~~but i still want to know~
can u tell me how to do that??plz~~ |
#18
|
||||
|
||||
In functions.php, find this:
Code:
eval("\$post[profile] = \"".gettemplate("postbit_profile")."\";"); Code:
$countviews=$DB_site->query_first("SELECT SUM(views) AS views FROM thread WHERE postuserid='$post[userid]'"); $post[hisviews]=number_format($countviews['views']); This hack is bad for your server! I don't advice using it! |
#19
|
||||
|
||||
thankz FireFly ur advice~~~
u let me know more about vbb hack's code~~ and i just want to know if i want to do what should i do?? that's all~~ |
#20
|
|||
|
|||
Thanks for your advice on this matter firefly.
I would like to insert the total views into the control panel for the member as well as in the "forumhome_pmloggedin" template. It doesn't seem to work when I insert this code into that template. Can you tell me what I need to do to get this to work? thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|