Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
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.
Attachments
123255-splash.zip (0 Bytes, 283 downloads)

Sponsored Links
Entire Thread
Subject Posted By Posted
Finished-[6.5] Splash screen 1.0 Anno 11/21/2004 5:36 PM
Re: Finished-[6.5] Splash screen 1.0 dimopoulos 11/21/2004 8:25 PM
Re: Finished-[6.5] Splash screen 1.0 Anno 11/24/2004 3:31 PM
Re: Finished-[6.5] Splash screen 1.0 Gardener 11/24/2004 7:32 PM
Re: Finished-[6.5] Splash screen 1.0 Anno 11/24/2004 7:38 PM
Re: Finished-[6.5] Splash screen 1.0 Pappy 11/24/2004 9:48 PM
Re: Finished-[6.5] Splash screen 1.0 Anno 11/24/2004 11:24 PM
Re: Finished-[6.5] Splash screen 1.0 AllenAyres 11/28/2004 5:12 AM
Re: Finished-[6.5] Splash screen 1.0 ChAoS_dup1 11/28/2004 5:40 AM
Re: Finished-[6.5] Splash screen 1.0 MattUK 02/12/2006 5:36 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)