View Full Version : Count post work only for...
TCattitude
01-31-2005, 10:23 AM
Can someone do something like this:
In certain forums (controlled by admincp, on/off according specific forums) only the first post (the creator and started of the thread) only count for the post counter.
The replies and everything else after the first post, dont count in post counter, for anybody. Even the admins or the thread starter.
Is to hard of do it?
Thanks in advance for you attention :)
Greetings.
Marco van Herwaarden
02-01-2005, 03:34 AM
Well i think it could be done.
TCattitude
02-06-2005, 04:36 AM
... :S
And in a EASY and plain php way?
Can be done? :S
I love to push user to post new threads instead to reply and reply in certain forums.
Please... some one? :(
Andreas
02-06-2005, 05:14 AM
General idea
- Create a new column onlyfirst TINYINT(1) in table forum, set this to 1 if only threads should be counted there
- Rebuild forum information
- In functions_newpost.php FIND
if ($foruminfo['countposts'])
REPLACE that with
if ($foruminfo['countposts'] AND (!$foruminfo['onlyfirst'] OR $type == 'thread'))
Attn: If you ever update post counters they will show the real number.
To prevent this further edits would be necessary.
TCattitude
02-08-2005, 10:20 PM
General idea
- Create a new column onlyfirst TINYINT(1) in table forum, set this to 1 if only threads should be counted there
- Rebuild forum information
- In functions_newpost.php FIND
if ($foruminfo['countposts'])
REPLACE that with
if ($foruminfo['countposts'] AND (!$foruminfo['onlyfirst'] OR $type == 'thread'))
Attn: If you ever update post counters they will show the real number.
To prevent this further edits would be necessary.
I'm not a skill php coder :(
Anyone can make that KirbyDE explain?
Step by Step?
Please?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.