Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 550
Anno Offline OP
Code Monkey
OP Offline
Code Monkey
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.

Attached Images
123255-splash.zip (0 Bytes, 283 downloads)
Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Offline
Kahuna
Joined: Aug 2002
Posts: 1,191
Nice one! Thanks!!


Nikos
Joined: May 2001
Posts: 550
Anno Offline OP
Code Monkey
OP Offline
Code Monkey
Joined: May 2001
Posts: 550
I am overwhelmed by the demand for this mod, 0 downloads, LOL.

Joined: May 1999
Posts: 1,715
Addict
Offline
Addict
Joined: May 1999
Posts: 1,715
It's certainly something I'd like to use, but I don't run 6.5 (yet).

Joined: May 2001
Posts: 550
Anno Offline OP
Code Monkey
OP Offline
Code Monkey
Joined: May 2001
Posts: 550
As I said, I am pretty sure it will run under 6.4 also.

Sponsored Links
Joined: Nov 2000
Posts: 210
Member
Offline
Member
Joined: Nov 2000
Posts: 210
the only problem I could see with this mod is that it might drive new users nuts enough that they may not wish to come back lol

Joined: May 2001
Posts: 550
Anno Offline OP
Code Monkey
OP Offline
Code Monkey
Joined: May 2001
Posts: 550
I really depends on the settings. If done right(see the instructions) they will see it once per forum day.

And, it is mainly ment for busy sites of course.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Nice, I can see how it would especially be needed for sites aimed at younger users


- Allen wavey
- What Drives You?
Joined: Nov 2002
Posts: 554
Code Monkey
Offline
Code Monkey
Joined: Nov 2002
Posts: 554
My thought was to make a special group for frequent "spammers" It would flash an image of a sign or banner that would say "Is this post absolutely necessary?"

Last edited by ChAoS; 11/27/2004 10:41 PM.
Joined: Nov 2001
Posts: 134
Journeyman
Offline
Journeyman
Joined: Nov 2001
Posts: 134
What would be nice is the ablily to have this displayed just once until you reset a flag. Much like the mod that allows us to force users to click accept on rules for the site.

Great for letting people know about something important before they use the site.

Sponsored Links

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,545
Posts293,796
Members13,838
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 253
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 19
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,806
Greg Hard 4,625
Top Posters(30 Days)
isaac 20
Top Likes Received
isaac 44
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 4
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Snapshot build 20200916.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.050s Queries: 36 (0.022s) Memory: 3.3318 MB (Peak: 3.6277 MB) Data Comp: Zlib Server Time: 2020-09-21 03:32:36 UTC
Valid HTML 5 and Valid CSS