![]() |
not working properly not showing in Getinfo template :(
|
i mean it is now showing anything to do with activity in the getinfo template below Posts :(
|
i found an error according to your hack
if a member has 0 Posts, but he or she posts in a forum which doesn't count any posts you get a division by zero Warning: Division by zero in /is/htdocs/62144/www.yourdomain.com/board/vb/member.php on line 1620 on that line i got this: $f_posts = floor(($t_post[ppforum] / $userinfo[posts]) * 100); but i think it has to do with the full code in there hope you'll find a clue for this |
wolfe make sure you have the $forumactive variable in the getinfo template...
PsYc open the getinfo template find: PHP Code:
PHP Code:
g-force2k2 |
nice hack :)
maybe it would be nice if it would also calculate most active forum of thread starts of a user |
dong haven't tested it yet... but give it a shot :p regards...
g-force2k2 |
nice :)
but some typo ORDER BY ppforum should be ORDER BY tforum and the procentage stays on 0 cos (($t_thread[tforum] / $userinfo[posts]) * 100) is not right i think maybe (($t_thread[tforum] / $userinfo[threads]) * 100) is better |
oh yea whoops :p
the first change is correct.. but you have to add in this query too ;) PHP Code:
g-force2k2 |
jup
and this line: PHP Code:
PHP Code:
thx |
Quote:
PHP Code:
|
All times are GMT. The time now is 04:50 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:
|