Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2013-08-16 18:24:06

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Javascript checkbox on registration

Hello, I am glad you have downloaded my mod.If you are experiencing any problems or bugs, please let me know.

Here is the description of my mod:

This mod will force people to check three checkboxes when they register, if you have the forum rules active.
It is very easy to install, by replacing only the "register" page.

It uses javascript/html, and will force the person registering to check all three boxes, or will not allow them to proceed onto the actual registration.I feel that this is an upgrade to the simple "agree" button originally there.

Please tell me what you think, as this is my first modification.




And the link to the download:

http://fluxbb.org/resources/mods/javasc … eases/1.2/

Last edited by chris98 (2013-09-12 19:59:46)

Offline

#2 2013-08-17 21:47:52

wmf
Member
Registered: 2010-10-31
Posts: 69

Re: Javascript checkbox on registration

Is there a demo?

Offline

#3 2013-08-17 22:49:05

Studio384
Developer
From: Belgium
Registered: 2012-04-11
Posts: 632
Website

Re: Javascript checkbox on registration

It's nice that you make a mod, but it's very unhandy that you ask to replace the whole register.php page, first of all, we changed that file between 1.5.1 and the current 1.5.4 (the versions of FluxBB you support), second of all: there are people out there that already modified their register.php file for something else, you can't expect from them to redo that all over again. And third: instead of replacing a file, you should give instruction how to install it line by line, like every other modification does, or use mod installer or an own solution.


FluxBB Community Benelux - ModernBB 3.4
Profile Plus: A new FluxBB profile interface

Offline

#4 2013-08-18 07:57:05

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Re: Javascript checkbox on registration

Sorry, go to http://forums.strongholdnation.co.uk/register.php for a demo.And I will give a guide step by step.I didn't really think about people already modding it, I just thought it would be easier for people with no experience.

Offline

#5 2013-08-18 08:13:39

123
Member
From: Poland
Registered: 2012-07-24
Posts: 289

Re: Javascript checkbox on registration

Default view

vskv.png

Fixed checkbox view f5p.png

find

.pun label {
	display: block;
	padding: 3px 0
	}

added 

	#rules label{
    margin-top:-20px;
    margin-left:20px;
}

Last edited by 123 (2013-08-18 08:20:27)


https://github.com/123s   My profile in github
tytan theme is great
Ach, lekceważyłaś wolę króla
a w nocy naszego spotkania, śmiałaś się do łez

Offline

#6 2013-08-18 08:39:31

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Re: Javascript checkbox on registration

Brilliant, I will add that in v1.1 thanks.

Here are some screenshots as well.Watch the submit button very closely, as you should see that you can only proceed once all three have been checked.I apologise that they are not very good pictures, but you can slightly see that the submit is different to the cancel button.

None have been checked, submit is disabled.

screenshot_1.png

One has been checked, submit disabled.

screenshot_2.png

Two have been checked, still disabled.

screenshot_3.png

Finally, after all three, the submit button is undisabled.

screenshot_4.png

Last edited by chris98 (2013-08-18 08:40:37)

Offline

#7 2013-08-18 09:00:37

123
Member
From: Poland
Registered: 2012-07-24
Posts: 289

Re: Javascript checkbox on registration


https://github.com/123s   My profile in github
tytan theme is great
Ach, lekceważyłaś wolę króla
a w nocy naszego spotkania, śmiałaś się do łez

Offline

#8 2013-08-31 16:34:02

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Re: Javascript checkbox on registration

V1.1 has now been released.

New updates:

It is now not compulsory to update the whole file.Instead, either replace the whole file, or copy the codes from readme.txt.

123's CSS has also been intergrated into the design.


Link to new Download:

http://fluxbb.org/resources/mods/javasc … eases/1.1/

Last edited by chris98 (2013-08-31 16:34:36)

Offline

#9 2013-09-12 20:01:05

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Re: Javascript checkbox on registration

Now updated to Version 1.2

Updates:

Fixed possible bypass of agreeing & selecting the checkboxes

(NOTE: This bypass was possible even if you hadn't downloaded & installed my mod)

EXPLANATION:

Before, you could simply add "?agree=Agree" into the URL, and it would allow you to bypass the compulsory agreeal.Now however, it stops that by checking the URL against a pre-defined one (line 100 of readme.txt)

LANGUAGES NOW USED:

PHP,HTML,JAVASCRIPT & CSS

Options still available --

-Replacing the whole page

-Manually adding the code

-CSS courtesy of 123

http://fluxbb.org/resources/mods/javasc … eases/1.2/

Offline

#10 2013-11-09 12:52:04

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Re: Javascript checkbox on registration

Version 1.3 released.

Changelog:

- The page can now be finished in an orderly manner without having to use exit() if the user tries to bypass the rules.

- I have now included two language files; English and German (I apologise if some of the german is not correct, it isn't my first language)

- You may still choose to replace the entire register.php page, but please note that now I have updated this mod officially for FluxBB 1.5.4, so replacing the register page may not be an option for other versions.

- You may still use CSS (courtesy of 123)

- Changing the statements is now easier, as they are located in a language file of their own

- Once, downloaded, you MUST change "ENTER_DIRECTORY_TO_FORUM_HERE" to your forums' base url. (line 125 of readme.txt)

- The mod still stops bypasses of the compulsory agreeal, only finishes the page in an orderly manner rather than using exit()

Offline

#11 2013-11-09 12:54:53

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Re: Javascript checkbox on registration

I am also planning to release a 1.4 branch, which will have 4 checkboxes rather than 3.(No other differences)

The 1.3 branch will also be continued, however I will be releasing a 1.4.

Link --

http://fluxbb.org/resources/mods/javasc … eases/1.3/

Offline

#12 2013-11-09 12:59:55

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 844
Website

Re: Javascript checkbox on registration

http://www.w3schools.com/tags/att_input_disabled.asp

Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the disabled attribute must be defined as <input disabled="disabled" />.


My modification of FluxBB 1.5.6 - rev.64
I speak only Russian  tongue

Offline

#13 2013-11-09 13:04:02

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Offline

#14 2013-11-09 13:11:23

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Offline

#15 2013-11-09 14:26:24

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Re: Javascript checkbox on registration

v1.4.1 launched

Basically, like before, this version has 4 checkboxes, version 1.3.1 has 3 checkboxes.

This is the only difference between the two versions.

Offline

#16 2013-12-11 11:14:24

sc4t
Member
Registered: 2013-12-06
Posts: 15

Re: Javascript checkbox on registration

Hello!

The script of not working.
When I click http:xxxxxxxx/register.php no text is displayed.
There in the checkboxes

Last edited by sc4t (2013-12-11 11:27:52)

Offline

#17 2013-12-11 15:20:17

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Re: Javascript checkbox on registration

Welcome to the forums! smile

Which FluxBB version are you using?

Also, have you enabled the forum rules in administration yet?

Offline

#18 2013-12-11 15:40:41

sc4t
Member
Registered: 2013-12-06
Posts: 15

Re: Javascript checkbox on registration

Hello!

I use FluxBB 1.5.5

Offline

#19 2013-12-11 15:54:59

sc4t
Member
Registered: 2013-12-06
Posts: 15

Re: Javascript checkbox on registration

When I tick all the boxes its tells me that my registration has been cancelled
http://www.scooter-chinois-4t.com/fluxbb/register.php

Offline

#20 2013-12-11 17:52:43

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 391
Website

Re: Javascript checkbox on registration

I've double checked it version 1.5.5, it appears to be fine - check line 103 of register.php, can you? (Change it to be the following just in case as well) :

   if ($url != 'http://www.scooter-chinois-4t.com/fluxbb/register.php?check_1=1&check_2=1&check_3=1&check_4=1&action=register&agree=Agree')

Last edited by chris98 (2013-12-11 17:56:38)

Offline

#21 2013-12-12 05:44:30

sc4t
Member
Registered: 2013-12-06
Posts: 15

Offline

Board footer

Powered by FluxBB 1.5.6