The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Forum Activity Check For Forum Access (Per Forum) Details »» | |||||||||||||||||||||||||||
Forum Activity Check For Forum Access (Per Forum)
Developer Last Online: Apr 2010
FAQ
i wrote it but when i tried to bullet it, it went all pear shaped, in short, no more questions 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 Title: Forum Activity Check For Forum Access (Per Forum) vB Default: No Code:
Varname: facffa_checkforumactivity Title: Turn This Option On? Description: Turning this on will mean that this hack will start working and checking if users have enough posts in order to access specified forums and their threads Option Code: yesno Default: no vBulletin Default: no Varname: facffa_checkforumactivitytime Title: Required Time For Forum Activity Description: This is the option for how many posts in XX days they need to access the forum. Option Code: Default: 1 vBulletin Default: no Varname: facffa_checkforumactivityposts Title: Required Posts For Forum Activity Description: This is the setting for how many posts they need in the above time in order to access that forum. Option Code: Default: 1 vBulletin Default: no Varname: facffa_checkforums Title: Protected Forums Description: These are the forums id's you want to protect with this hack, please seperate them with a comma. Option Code: Default: vBulletin Default: no Varname: facffa_excludeusergroups Title: Excluded Usergroups Description: These are the usergroup id's you want to exclude from having to actually post, please seperate them with a comma. Option Code: Default: vBulletin Default: no even if this hack don't work, feed it to your search engine, by that i mean www.ebslive.com and stop stealing my smilies :lol: and i'm spent. UPDATED: 24/04/05 19:28 Show Your Support
|
Comments |
#2
|
|||
|
|||
What does this hack do? Have any screenshots?
|
#3
|
||||
|
||||
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. |
#4
|
|||
|
|||
Very nice, I will try this. Thanks sabret00the
|
#5
|
|||
|
|||
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 $_permsgetter_ = 'forumdisplay'; $forumperms = fetch_permissions($forumid); if (!($forumperms & CANVIEW)) { print_no_permission(); } if (($vboptions['facffa_checkforumactivity'] AND in_array($foruminfo['forumid'], $vboptions['facffa_checkforums']))) { // forum activity check $definedtime = ($vboptions['facffa_checkforumactivitytime'] * 86400); $limit = TIMENOW - $definedtime; $recentpostcount = $DB_site->query_first(" SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "post WHERE userid = $bbuserinfo['userid'] <- Line 217 AND dateline >= $limit "); if ($recentpostcount['total'] < $vboptions['facffa_checkforumactivityposts']) { eval(print_standard_error('facffa_checknotenoughposts')); } } |
#6
|
|||
|
|||
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 |
#7
|
|||
|
|||
No forcing. You can turn on this option or not... fix the days, etc.
One screen is worth a 1000 words. See Screenshot. |
#8
|
|||
|
|||
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. |
#9
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
|
#10
|
|||
|
|||
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']))) { // forum activity check $definedtime = ($vboptions['facffa_checkforumactivitytime'] * 86400); $limit = TIMENOW - $definedtime; $recentpostcount = $DB_site->query_first(" SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "post WHERE userid = $bbuserinfo[userid] AND dateline >= $limit "); if ($recentpostcount['total'] < $vboptions['facffa_checkforumactivityposts']) { eval(print_standard_error('facffa_checknotenoughposts')); } } vBulletin Message: Unable to add cookies, header already sent. File: /home/.../includes/init.php Line: 27 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|