![]() |
Forum Activity Check For Forum Access (Per Forum)
FAQ
i wrote it but when i tried to bullet it, it went all pear shaped, in short, no more questions :p thanks to Dean for the assistance :) in "/forums/forumdisplay.php" find PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
You have not had enough forum activity in order to access this forum, please become more active then check back there-after. now what else was there, oh yeah the options direct your browser to http://www.mydomain.com/forums/admin...hp?do=addgroup (please don't take that literally) and then put this in the boxes Code:
Varname: facffa Code:
Varname: facffa_checkforumactivity even if this hack don't work, feed it to your search engine, by that i mean www.ebslive.com :cool: and stop stealing my smilies :lol: and i'm spent. UPDATED: 24/04/05 19:28 |
What does this hack do? Have any screenshots?
|
see the faq does come in handy, stupid Standard editor :tantrum:
ok say you got a forum called chit-chat, but you run a car site, you want to know your users are there to more than just chit-chat right and actually talk about what's really good ^o) (the cars) so you install this for the chit-chat forum and then voila they can't access the chit-chat forum unless they've made 50 posts in 2 days. |
Very nice, I will try this. Thanks sabret00the ;)
|
I got:
Code:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/.../forumdisplay.php on line 217 Code:
// get permission to view forum |
can u change the number of posts required etc to say 5 per day ? - but even that may seem a lot to some people.
You are basically forcing them to post and a lot of people dont like that - but i do :) |
No forcing. You can turn on this option or not... fix the days, etc.
One screen is worth a 1000 words. See Screenshot. |
arg right well then its a good hack then as u can set it for example to say they gotta have 2 posts in last week etc or even 2 in last month.
Should cut down on zero posters as well. |
Quote:
PHP Code:
PHP Code:
|
Got:
Warning: in_array(): Wrong datatype for second argument in /forumdisplay.php on line 219 Code:
Line 219 -> if (($vboptions['facffa_checkforumactivity'] AND in_array($foruminfo['forumid'], $vboptions['facffa_checkforums']))) vBulletin Message: Unable to add cookies, header already sent. File: /home/.../includes/init.php Line: 27 |
find:
PHP Code:
PHP Code:
|
first post updated to fix post instanced. :)
|
It seems to work. My server just crashed... I'll doublecheck tonight to be sure.
Thank you very much I have been waiting for this a long time Click Install |
Quote:
|
OK. It works fine today. I'll check back tomorrow.
- The forums id's separated with a space i.e. 2 26 124 does'nt work. It is working with a comma i.e. 2,26,124. - It would be nice to make changes so members of certain usergroups (moderators, admin, etc) could be excluded from the activity. This could maybe be a future update. :) Thanks |
I am interested in this hack also.
Quote:
|
I'll add it in the morning :)
|
Quote:
|
Quote:
|
Quote:
I added ['usergroupid'] in forumdisplay and showthread but I got Warning: in_array(): Wrong datatype for second argument in /forumdisplay.php on line 223 It does'nt work with id=6 (admin). Got "You have not had enough forum activity in order to access this forum, please become more active then check back there-after." |
what's line 223?
|
223:
PHP Code:
|
Right now as user, I made 1 posts in 1 day. I tryed to access to protected forum but I get:
Unable to add cookies, header already sent. File: /home.../includes/init.php Line: 27 Init.php is fine because the hack is working without the usergroups update. I replaced the last forumdisplay&showthread by the old ones. |
OK. I fixed the last one.
Right now, I get "Warning: in_array(): Wrong datatype for second argument in /showthread.php on line 319". Usergroups are not going to be excluded. 319 -> PHP Code:
. |
can you put 27 in the excuded usergroups in the vboptions and tell me if you still get the error please.
|
Usergroups:
- not connected (ID=1): error is: Warning: in_array(): Wrong datatype for second argument in /showthread.php on line 319 AND You have not had enough forum activity in order to access this forum, please become more active then check back there-after. - connected member4 (ID=27), error is: Warning: in_array(): Wrong datatype for second argument in /showthread.php on line 319 AND Unable to add cookies, header already sent. File: /home.../includes/init.php Line: 27 Fix for forumdisplay: PHP Code:
|
What php version are you running?
|
Php 4.3.11
|
Quote:
PHP Code:
PHP Code:
|
Es bueno. Muchas gracias amigo Darmark de M?xico.
Thank you very much, Sabret00the. :up: |
I'd like a mod to this, it could work one of two ways
a) User needs xx posts BEFORE his xx per week starts. b) User is in additional usergroup X then his XX per week starts. Either way works good for me, no need to have both. |
Quote:
|
This works really well!
Thanks! :) |
All times are GMT. The time now is 05:57 AM. |
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:
|