![]() |
Like all $DB_site, db_mysql.php.
|
Duh! I should have known, my brain is enjoying the holiday.
Thanks again |
Quote:
Hey Firefly, Where exactly does this code go? I put it in one of the cp templates and that didn't work. Thanks! |
In index.php, add this:
Code:
$countviews=$DB_site->query_first("SELECT SUM(views) AS views FROM thread WHERE postuserid='$bbuserinfo[userid]'"); Code:
// get newest member |
FireFly~~
can it show up in postbit~~ i want to do that u know how to do that?? |
Yeah I do, but it takes too much resource.
|
i know~~but i still want to know~
can u tell me how to do that??plz~~ |
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]'"); This hack is bad for your server! I don't advice using it! |
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~~:D |
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. |
All times are GMT. The time now is 03:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|