inherit
186212
0
Sept 14, 2021 23:13:53 GMT -8
katanya123
163
November 2012
katanya123
|
Post by katanya123 on Nov 26, 2012 15:53:21 GMT -8
Cheers, look forward to it. You might have to explain everything from scratch if that's okay? As this thread has bits and pieces everywhere now and I am struggling to keep up. So, just to confirm: Looking to have the 'I Agree' 'I Disagree' buttons on my Registration page
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Nov 26, 2012 15:56:25 GMT -8
Can I suggest you doing the custom page method? I just thought, if you have this like on a rules thread or something, say a member wants to possibly view the rules later, they would have to agree again(might get tedious). I can give you step by step guide to do it.
|
|
inherit
186212
0
Sept 14, 2021 23:13:53 GMT -8
katanya123
163
November 2012
katanya123
|
Post by katanya123 on Nov 26, 2012 16:20:05 GMT -8
Only if it can be done with Restricted Registration enabled. If not, then don't worry about it, I will stick with the redirection
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Nov 26, 2012 16:26:32 GMT -8
How are you doing the redirection? With the built in option? Or a code?
|
|
inherit
186212
0
Sept 14, 2021 23:13:53 GMT -8
katanya123
163
November 2012
katanya123
|
Post by katanya123 on Nov 26, 2012 16:33:49 GMT -8
Currently the built in option as I don't have a code for v5 like I did on v4.5 - open to suggestions if coding is easier.
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Nov 27, 2012 15:16:17 GMT -8
Alright, go to Admin Home > Structure > Custom Pages
Hit the "Create New Custom Page" button.
Add a title, like "Rules Agreement" and an id of "rules-agreement".
Select the "Blank" layout, then scroll to the bottom where it says "Options" make sure "Yes" is selected, the click "Submit".
You should now see your forum. Scroll to the "Zone 1" box. Click "Add Widget" and select the "HTML option".
Click the checkbox by "Container" and then type a title. What I did was give it a title of "Welcome!".
Once that's done, click inside the HTML box, maybe type out a brief welcome message. And then paste this below it.
<br />I agree <input type="radio" name="agreement" id="agree" value="Agree"> I disagree <input type="radio" name="agreement" id="disagree" value="disagree" checked> <br /><br /> <input type="button" onclick="appPage()" value="Continue" id="agreementbutton">
<script> <!-- function appPage() { if(document.getElementById('agree').checked) { location.href='http://zssv5board.freemessageboards.com/thread/new/14'; }else if(document.getElementById('disagree').checked) { alert('You must agree to the rules. Thanks!'); } } </script>
Now, click save right below the HTML box.
Now click add widget again. This time select the "Display Post" option.
Click the checkbox by "Container" and then type a title. What I did was give it a title of "Rules".
Then, in the input below, put the post id of your rules post, to find this go to your rules post and click the gear icon and select "Link to Post". There will be a number at the very end. Copy the whole number and paste it in the post id field on your custom page.
Now click "Save".
If you want the rules to be below the welcome message and agreement stuff, hover over the rules container, and click the middle button(will be arrows facing up and down) and drag it below the welcome message container.
And you are done making your custom page.
Now to add this as the page after registration.
Go to Admin Home > Settings > Forum Settings
At the bottom you will see "After Registration Page", in that field put /page/rules-agreement
And you are done. WOO!! Hope this is detailed enough as to what to do. If you need help, then just ask. Have a good day!
|
|
inherit
169267
0
Nov 23, 2024 18:59:51 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Nov 27, 2012 15:39:36 GMT -8
Hey shorty, Is there any way to verify or list the agree and disagree answer from the user in the admin notification section. Just so admin can decide wether to accept the registration or not.
Thanks
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Nov 27, 2012 16:02:05 GMT -8
I'm not sure what you are asking. Can you rephrase please?
|
|
inherit
186212
0
Sept 14, 2021 23:13:53 GMT -8
katanya123
163
November 2012
katanya123
|
Post by katanya123 on Nov 27, 2012 16:55:42 GMT -8
If you place Restricted Registration on you can choose to accept or decline the application from the new member before it hits the Rules Page. As soon as they register, you will get a notification in your Admin area before anything else happens. Hope this helps.
Thank you so much for this code. It means a lot that you wrote all that out. I am going to give it a shot tommorow. Quick question, do I really only need to place /page/rules-agreement in the "After Registration Page" field? I presume that's the name for the Rules page with the buttons?
|
|
inherit
186212
0
Sept 14, 2021 23:13:53 GMT -8
katanya123
163
November 2012
katanya123
|
Post by katanya123 on Nov 27, 2012 16:58:04 GMT -8
More importantly...I don't seem to have custom pages in my Structure area! Hmmmmm
|
|
inherit
186212
0
Sept 14, 2021 23:13:53 GMT -8
katanya123
163
November 2012
katanya123
|
Post by katanya123 on Nov 27, 2012 17:05:20 GMT -8
I see it now, just wasn't logged in as main admin. Pain in the ARSE!
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Nov 27, 2012 17:23:27 GMT -8
Yes that's all you need to place. And yeah you have to have permission lol.
|
|
inherit
169267
0
Nov 23, 2024 18:59:51 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Nov 27, 2012 17:28:31 GMT -8
When the user clicks the submit button to agree Is it possible to recieve a notification for that. I know I can accept or decline a user. I would like some confirmation on the users agreement as proof that the user read the rules.
|
|
inherit
186212
0
Sept 14, 2021 23:13:53 GMT -8
katanya123
163
November 2012
katanya123
|
Post by katanya123 on Nov 27, 2012 17:38:48 GMT -8
Good point.
I just set it all up and everything works BEAUTIFULLY. My only issue is that when you view the rules-agreement page, you have access to the rest of the board right away without agreeing. Even if you click the banner is takes you to the homepage. This is a bit pointless.
Can the html be edited to hide/disable all this?
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Nov 27, 2012 18:55:25 GMT -8
There really won't be any way to totally block them from getting to the home page before accepting the rules. I am working on a plugin that will do this for you though. It might be a while before i finish though because I am having some issues with plugins not loading on custom pages. If/when that works out or i figure out a different way I'll let you know If you're interested, I am working things out here: support.proboards.com/thread/433720/function-on-post-submit
|
|