Additional Info
Type
Package ID
technodragon73:postdenycode
First Created
November 25, 2006, 12:07:58 PM
Last Updated
March 10, 2007, 02:20:54 PM

Restrict Access Until Post v1.1

Restrict access until posts are made
Compatible With 1.1 RC3, 1.1.2
Latest version v1.1
Downloads 29,188
Reviews 0
Rating 0/5
Subscribers 3
License (View License)
Author(s)
Screenshots
I had been trying to figure out a way to make it so that members of my forum would not have access to certain parts until they posted (mainly because they would make the initial posts to get access upon registration, but then would never post again)  So I came up with this.  This is actually a recode of the post count warning mod.

After install you will need to add the code below per the instructions to make this work right>

This will add the ability to enable/disable the post count restriction not just through admin, but allow you to also restrict ANY page you want if you add this code to the template file.  To do this add this code to the main source file for the section of the forum you want to restrict right after the brace ( { ) after the initial function call in the source directory file (example would be smf shop initial function call in the shop.php is function shop () { ) the code below goes right after that:

     global $sourcedir;
  // If it is sunday allow everyone on.
require_once($sourcedir.'/RestrictAccess.php');
if ($context['user']['is_logged']){
echo RestrictAccess(2);
}


The additional beauty of this code is it shows a warning box on every page your members go to remind them they need to make their posts, I have made the number of post perday changeable in admin as well as the ability to change the day of the week that you can have as your free-for-all day!
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: