Topic: Trial Period Mod

This mod allows to create the trial period for authorized user.

##
##
##        Mod title:  Trial Period
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.11
##     Release date:  2006-05-3
##           Author:  Demo (http://punbb.ru)
##
##      Description:  This mod allows to create the trial period for authorized user.
##
##
##   Affected files:  viewtopic.php
##                    
##       Affects DB:  No
##
##            Notes:  None
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##
#
#
#
#---------[ 10. OPEN ]----------------------------------------------------
#
    viewtopic.php
#
#---------[ 11. FIND ]----------------------------------------------------
#

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);
#
#---------[ 12. ADD AFTER ]-----------------------------------------------
#

$trial_period = ($pun_user['registered'] + 84600);
$lang_common['trial_period'] = "You registered user, but You inhere for trial period following after registration. Wait one day. Read the Help of forum, Rules of forum and etc...";
if (time() < $trial_period)
message($lang_common['trial_period']);

#
#---------[ 25. SAVE/UPLOAD ]---------------------------------------------------
#

enjoy :=)

Download punres.org:
http://www.punres.org/desc.php?pid=243

ERROR - MIRROR

Re: Trial Period Mod

Trial_Period_1.1

Add demonstration of completion of trial period.

##
##
##        Mod title:  Trial Period
##
##      Mod version:  1.1
##   Works on PunBB:  1.2.11
##     Release date:  2006-05-5
##           Author:  Demo (http://punbb.ru)
##
##      Description:  This mod allows to create the trial period for authorized user.
##
##
##   Affected files:  viewtopic.php
##                    post.php
##
##       Affects DB:  No
##
##            Notes:  None
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##
#
#
#
#---------[ 1. OPEN ]----------------------------------------------------
#
    viewtopic.php
#
#---------[ 2. FIND ]----------------------------------------------------
#

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);

#
#---------[ 3. ADD AFTER ]-----------------------------------------------
#

$lang_common['trial_period'] = "You registered user! But You inhere for trial period following after registration. Please wait one day after registrations. In the interim Read FAQ of forum, Rules of forum and etc... Trial period for you expire in (sec.): ";
$trial_period = ($pun_user['registered'] + 84600);
$end_trial_period = ($trial_period - time());
if (time() < $trial_period)
message($lang_common['trial_period'].$end_trial_period);

#
#---------[ 4. OPEN ]----------------------------------------------------
#
    post.php
#
#---------[ 5. FIND ]----------------------------------------------------
#

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);

#
#---------[ 6. ADD AFTER ]-----------------------------------------------
#

$lang_common['trial_period'] = "You registered user! But You inhere for trial period following after registration. Please wait one day after registrations. In the interim Read FAQ of forum, Rules of forum and etc... Trial period for you expire in (sec.): ";
$trial_period = ($pun_user['registered'] + 84600);
$end_trial_period = ($trial_period - time());
if (time() < $trial_period)
message($lang_common['trial_period'].$end_trial_period);

#
#---------[ 7. SAVE/UPLOAD ]---------------------------------------------------
#

enjoy :=)

Download punres.org:
http://www.punres.org/desc.php?pid=243

ERROR - MIRROR