Mod Name / Version: Splash screen 1.0
Description: This mod displays a "splash screen" before a post can be made in order to remind the user of the board rules or whatever you wish your users to be reminded of.
Example:
[]http://img35.exs.cx/img35/9493/Clipboard3.th.gif[/] Working Under: Written under UBB.Threads 6.5 but probably works also under earlier versions.
Mod Status: Finished
Any pre-requisites: none
Author(s): Anno
Date: 11/21/04
Credits: Files Altered: newreply.php
newpost.php
New Files: splash.php
a default splash screen file
a file for each forum you want to display a forum spcific splash screen
Database Altered: no
Info/Instructions: Instruction and files are in the attachment.
The default.html file contains the text that is displayed if no special file exists for the particular forum.
If you want to not display the splash screen in a particular forum, you can exclude it by including
$NoSplash['forum4'] = "yes";
in splash.php where "forum4" is the keyword of the excluded forum.
Specify the Title of the splash page by modifying the $pagetitle variable in splash.php.
The conditions for the display of the splash screen are done by modifying the splash.php file.
You can specify
- the minimum amount of post the user has to have
- the minimum time since registration
- the maximum time that has passed from the last post in the same forum(if set to ~1 hour this basically prevents showing the splash screen sveral times in a row if the user makes several posts in a forum)
Some examples:
Example 1:
You want to display the splash screen only to complete newbies until they have 10 posts regardles of have long they have been registered for, and you want the screen display every time they make a post, regardless of when they made the last post,then you would choose theses settings:
$PostsReq['forum1']=10;
$DaysReq['forum1']=0;
$LastReq['forum1']=0;
Example 2:
You want to display the splash screen to everybody, always, regardless of the number of posts or how long they have been registered for, but you want to display it only once per "posting session"(=only if the last post in the same forum was more than 1 hour back):
$PostsReq['forum2']=1000000;
$DaysReq['forum2']=1000000;
$LastReq['forum2']=1;
Example 3:
You want to display the splash screen to newbies for the first 30 days since registration, regardles of the number of posts. You want to display it only once per per "posting session"(=only if the last post in the same forum was more than 1 hour back):
$PostsReq['forum3']=0;
$DaysReq['forum3']=30;
$LastReq['forum3']=1;
If you want the mods or admins or both to be excluded from being shown the splash screen, uncomment the 2 conditions in the splash.php, lines 59 and 60:
// && ($user['U_Status'] != "Administrator")
// && ($user['U_Status'] != "Moderator")
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.