Wait At Registration

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29220
Joined: Sat Aug 16, 2003 7:36 am

Wait At Registration

Post by Extensions Robot »

Modification name: Wait At Registration
Author: Marc
Modification description: This mod will set a timing in the Agreement page so the user reads the Terms.
Modification version: 1.0.1
Tested on phpBB version: 3.0.6

Download file: Wait_At_Registration_1.0.1.zip
File size: 132.04 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Mon Sep 19, 2022 7:33 pm, edited 12 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18316
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Wait At Registration

Post by DavidIQ »

Modification validated/released

Notes:
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5657
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Wait At Registration

Post by Marc »

This MOD is the further development of Xtracker!'s MOD Wait At Registration 0.0.4, which I have taken over from him.

Support can be found on http://www.m-a-styles.de

Demo: http://www.m-a-styles.de/ucp.php?mode=register

Changes 1.0.0 to 1.0.1:
  • Reworked script with JQuery
  • Added fix for Internet Explorer
Last edited by Marc on Tue Jan 26, 2010 8:37 am, edited 3 times in total.
User avatar
gerschel
Registered User
Posts: 4
Joined: Tue Dec 01, 2009 2:28 am

Re: Wait At Registration

Post by gerschel »

As a note to other installers. FTP to your site and copy countdown.html from ./styles/subsilver2/template into the template folder of the theme you are going to use (after install), otherwise there will be an error when you click register saying that this file is missing.

This is an awesome mod. Since I have added to my terms of use, I was worried if people will actually read it. Now I can guarantee that they will stay for a short time (not enough to make a conflict of attention span), whether they read it or not, but it emphasizes it's importance.

Side note idea off-but_close_enough-topic: A fun quiz to make sure they read and understood the terms of use? (blast away the things you can't do, save the ones that you can do, use labels on t-shirts of the game for customization? memory? etc.)
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: Wait At Registration

Post by Peter77sx »

Aww chucks, not compatible with IE.. bummer.
User avatar
PinoyEngine™
Registered User
Posts: 244
Joined: Fri Apr 24, 2009 7:12 am

Re: Wait At Registration

Post by PinoyEngine™ »

Any possibility there would be an IE fix update?
User avatar
Ahri89
Registered User
Posts: 525
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain
Contact:

Re: Wait At Registration

Post by Ahri89 »

I have installed No-Script and this mod not work.

Can we bind activate script to continue?

Thanks. :)
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5657
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: Wait At Registration

Post by Marc »

If you are talking about the Firefox Plug-In then you'll probably just have to allow it for the website.

@all: I didn't know that it doesn't work with IE and I'll try to fix this asap.
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5657
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: Wait At Registration

Post by Marc »

Internet Explorer Fix (tested with IE 8)

prosilver-based styles:

Open styles/prosilver/ucp_agreement.html
Find:

Code: Select all

<input type="submit" name="agreed" id="agreed" value="{L_AGREE}" class="button1" />
Replace with:

Code: Select all

<input type="submit" name="agreed" id="agreed" value="{L_AGREE}" class="button1" style="display: none;" />
Find (it's right behind the last edit):

Code: Select all

&nbsp;
Replace with:

Code: Select all

			<!-- IF COUNTDOWN_INTERVAL -->
				<!-- INCLUDE countdown.html -->
			<!-- ENDIF -->
			&nbsp;
Find:

Code: Select all

			<!-- IF COUNTDOWN_INTERVAL -->
				<!-- INCLUDE countdown.html -->
			<!-- ENDIF -->
Delete it.

Open styles/prosilver/template/countdown.html
Replace everything with this:

Code: Select all

<input type="button" name="fake_agreed" id="fake_agreed" value="{L_AGREE}" class="button1" />
<script type="text/javascript"> 
// <![CDATA[
/* 
* @author Juan Fernandez (http://www.exckor.com)
* @author Marc Alexander (http://www.m-a-styles.de)
*
* @package Wait At Registration
* @version $Id: countdown.html 1.0.0
* @copyright (c) 2009 Juan Fernandez, Marc Alexander
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/
var countDownInterval = {COUNTDOWN_INTERVAL} + 1;
var divname = 'agreed'; // do not change this
var div_backup = document.getElementById('fake_' + divname).value;
function countDown() 
{
	div = document.getElementById(divname);
	fake_div = document.getElementById('fake_' + divname);
	countDownInterval--;
	if (countDownInterval == 0) {
		div.style.display = '';
		fake_div.style.display = 'none';
		div.value = div_backup;
	} else {
		fake_div.value = div_backup + ' [' + countDownInterval + ']';
		setTimeout(countDown, 1000);
	}
}

window.onload = countDown();
// ]]>
</script>
subsilver2-based styles:

Open styles/subsilver2/ucp_agreement.html
Find:

Code: Select all

<input class="btnlite" type="submit" id="agreed" name="agreed" value="{L_AGREE}" />
Replace with:

Code: Select all

<input class="btnlite" type="submit" id="agreed" name="agreed" value="{L_AGREE}" style="display: none;" />
Inline-Find (it's right behind the last edit):

Code: Select all

<br /><br />
Replace with:

Code: Select all

							<!-- IF COUNTDOWN_INTERVAL -->
								<!-- INCLUDE countdown.html -->
							<!-- ENDIF -->
							<br /><br />;
Find:

Code: Select all

							<!-- IF COUNTDOWN_INTERVAL -->
								<!-- INCLUDE countdown.html -->
							<!-- ENDIF -->
Delete it.

Open styles/subsilver2/template/countdown.html
Replace everything with this:

Code: Select all

<input class="btnlite" type="button" id="fake_agreed" name="fake_agreed" value="{L_AGREE}" />
<script type="text/javascript"> 
// <![CDATA[
/* 
* @author Juan Fernandez (http://www.exckor.com)
* @author Marc Alexander (http://www.m-a-styles.de)
*
* @package Wait At Registration
* @version $Id: countdown.html 1.0.0
* @copyright (c) 2009 Juan Fernandez, Marc Alexander
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/
var countDownInterval = {COUNTDOWN_INTERVAL} + 1;
var divname = 'agreed'; // do not change this
var div_backup = document.getElementById('fake_' + divname).value;
function countDown() 
{
	div = document.getElementById(divname);
	fake_div = document.getElementById('fake_' + divname);
	countDownInterval--;
	if (countDownInterval == 0) {
		div.style.display = '';
		fake_div.style.display = 'none';
		div.value = div_backup;
	} else {
		fake_div.value = div_backup + ' [' + countDownInterval + ']';
		setTimeout(countDown, 1000);
	}
}

window.onload = countDown();
// ]]>
</script>
Xtracker!
Registered User
Posts: 522
Joined: Sun Apr 05, 2009 10:36 pm
Location: Area 51

Re: Wait At Registration

Post by Xtracker! »

Congrats on validation :)
doum-ti-di-li-doom
Registered User
Posts: 5
Joined: Sat Sep 12, 2009 7:39 pm

Re: Wait At Registration

Post by doum-ti-di-li-doom »

Only looked at the demo, 2 comments

a) needs unobtrusive javascript // progressive enhancement
b) don't blindly hijack window.onload
User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5657
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: Wait At Registration

Post by Marc »

@doum-ti-di-li-doom:
a) This was only the first release and there will be a few improvements in the next version, i.e. I'm currently taking a look at JQuery.

b) How am I blindly hijacking window.onload? I know that I could overwrite an already existing window.onload function, but do you see any window.onload events on the register page? I don't.
Still, I intend to make this little script a bit more professional with JQuery and I think that will also get rid of the hijacking. ;)

@Xtracker: Thank you and also thanks for the idea and the first few releases. :)
sevenalive
Registered User
Posts: 437
Joined: Thu Feb 07, 2008 4:45 am

Re: Wait At Registration

Post by sevenalive »

good mod, but imo it's useless because 99% of the users will be annoyed and still won't read it, i know i don't lol.
Bartelli
Registered User
Posts: 2
Joined: Mon Jan 11, 2010 2:09 pm

Re: Wait At Registration

Post by Bartelli »

Maybe a stupid question, but where can I set the time for this countdown? I have an important agreement which I really want to have read by the people who want to join. This is a great mod for me.
Locked

Return to “[3.0.x] MOD Database Releases”