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 28, 2012 11:48:41 GMT -8
Lion Rules System (Yootil Plugin) v2.1.0
This Plugin/System prevents registered users from posting until they have read and accepted the rules of your forum.
Thank you Peter for your assistance in various other areas.
The Lion Rules System requires a bit of setup so please read this whole post!
Installation:1. Create a custom page with the id: rules2. Edit this page to display your rules. There are various ways to do this although I recommend using an HTML box. Here is an example of a rules page I created: IMPORTANT: On this page you must have this button.
<a href="/forum/lionrules"><button>Accept Rules!</button></a>
Advanced users may edit to use a link or do this a differnent way. The important part is you must have a link for them to accept the rules and this link must take them to the url "/forum/lionrules". 3. Go to your General Settings by adding "/admin/settings/forum" to the end of your homepage url and scroll to the bottom. There you will see a section for Registration Settings. Fill out the field "After Registration Page" by inputting the url of the custom page you just created. This should be your home url followed by "/page/rules4. This code requires the Yootil Library to be installed on your forum. Please download and install the plugin found here.5. Download and install Lion Rules System plugin6. You might want to head over to that custom page and accept the rules yourself so you don't suddenly lose a post you created Current Download:v2.1.0Updates:v2.0.0 -Re-wrote to work a bit more like the original code by SubDevo.-Disabled quick reply if you haven't read the rules-Instead of checking to see if you have read the rules when you post. This checks whenever you click any of the reply/createthread buttons or if you quote a post.-Also checks whenever on a posting page-Code now works for guests and members alike. I used localstorage for guests. I have not yet set up an option for the browsers that do not have localstorage so this is still slightly buggy, but I should have time to fix that in the next few days.
v2.1.0
-Added use of Yootil Storage -Cut down on a lot of the repeated code -Added check for members to see if they agreed to the rules as guests -Checked keys on post page instead of onclick which caused some issues because you sometimes still made it to the reply page
|
|
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 28, 2012 15:30:10 GMT -8
Update: Finished Cookie Version
|
|
inherit
169267
0
Nov 24, 2024 12:24:51 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Nov 28, 2012 20:46:23 GMT -8
I'm getting an invalid message and will not upload.
|
|
inherit
164686
0
Oct 6, 2013 6:55:56 GMT -8
missy72
127
March 2011
missy72
|
Post by missy72 on Nov 28, 2012 22:36:11 GMT -8
installed fine for me
|
|
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 29, 2012 5:35:43 GMT -8
I'm getting an invalid message and will not upload. When are you getting this message? When you try to upload the plugin? If so try re-downloading and re-installing
|
|
inherit
169267
0
Nov 24, 2024 12:24:51 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Nov 29, 2012 9:28:08 GMT -8
I have done it twice yesterday. I'll try again and let you know
|
|
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 29, 2012 9:46:22 GMT -8
|
|
inherit
169267
0
Nov 24, 2024 12:24:51 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Nov 29, 2012 17:29:57 GMT -8
Thesealion, It works now. Thanks man
|
|
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 29, 2012 17:35:47 GMT -8
You're welcome I have finished an update for the Guest bug. Will post the update hopefully later tonight after i finish some more homework
|
|
inherit
134494
0
Jun 11, 2015 21:30:29 GMT -8
taylor40
317
December 2008
taylor40
|
Post by taylor40 on Nov 30, 2012 5:07:55 GMT -8
Brilliant plugin... seems to work fine. Tried to post and got the 1st pop-up requesting that I agree rules before posting. However I didn't get the second pop-up after I'd agreed the rules, it just took me back to my home page. Not a big deal though, as I said brilliant plugin... exactly what I was after...
Many thanks
Ian
|
|
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 30, 2012 9:52:13 GMT -8
Did it allow you to post after you accepted? Because when that second alert pops up the key is updated so you can post so if one doesn't happen the other might not...
|
|
inherit
134494
0
Jun 11, 2015 21:30:29 GMT -8
taylor40
317
December 2008
taylor40
|
Post by taylor40 on Dec 1, 2012 3:42:35 GMT -8
Did it allow you to post after you accepted? Because when that second alert pops up the key is updated so you can post so if one doesn't happen the other might not... Yep.... works fine other than not having the 2nd pop-up. Have one of my admins gonna give it a try over the weekend and I'll give it a proper check with a new sign up as well. Will update here if any probs
|
|
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 Dec 7, 2012 14:45:14 GMT -8
Update v2.0.0:-Re-wrote to work a bit more like the original code by SubDevo. -Disabled quick reply if you haven't read the rules -Instead of checking to see if you have read the rules when you post. This checks whenever you click any of the reply/createthread buttons or if you quote a post. -Also checks whenever on a posting page -Code now works for guests and members alike. I used localstorage for guests. I have not yet set up an option for the browsers that do not have localstorage so this is still slightly buggy, but I should have time to fix that in the next few days.
|
|
inherit
186006
0
Mar 30, 2019 4:02:27 GMT -8
smashwords2
Breathing
244
November 2012
smashwords2
|
Post by smashwords2 on Dec 9, 2012 5:50:43 GMT -8
In Opera browser when a board allows guests to post/create threads, and a guest attempts to create or reply, the LRS pops up a warning advising visitor to register. LRS works fine with Firefox, haven't tried IE.
|
|
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 Dec 9, 2012 8:13:01 GMT -8
Currently the code also asks guests to read the rules before posting so that seems right. If you click OK there and then accept the rules can you then post? I know there are some bugs with older browsers right now that I haven't had time to work out... Edit: Just checked with Opera myself and it seems to work fine...maybe I just don't understand what you're trying to say? Right now this is how the code works: As a member: The code checks a key to make sure you have accepted the rules. If you have not accepted them the quick reply will be disabled. Also, any time you click on a reply or create thread button you will get a popup asking you to read the rules. If you just type in the url to the reply page you will also get a popup. As a guest: The code checks your Local Storage since keys don't work for guests. Then it does the same things
|
|