![]() |
Force Site Rules (Announcements) to be read
====================
Author: Ken 'LiveWire' Iovino Site: www.initialz.com Hack: Force Site Rules` Version: 1.0.0 ==================== Notes to me rules_on_index_page.txt (9.4 KB, 21 views) Before update Updates Now have 2 methods of using this.
Update the users to 'not read'.
Important Notice To Existing Users Update #1 If you are using the index.php method please do this important update. I found a bug in the hack that will show guest the rules and try to force them to agree with them, and if they did it still wouldn't allow them to see the fourms, it would just redirect them back to the rules page. Please do this update so you don't lose your guest viewing your site. All new users, i have updated the install file. In Index.php find: PHP Code:
PHP Code:
Update #2 If you installed this hack before 10-03-2004, and are using the usercp.php method, please do this important update. This will delete one less query. All new users, the files have been updated. Open forums/usercp.php and find: PHP Code:
PHP Code:
This will force your members to read the site rules. When they try to go in the UserCp or the main forums (depending on the method you are using) they will be directed to the Site Rules. (which you make) and have to agree to them in order to use the usercp or forumshome.. Once they agree to the sites forum rules, they will be directed back to the user cp, or forumhome and not be forced to see that page again. If you want this to force members on a difrrent page, please request it here and i will release how to do it on another page. To do list...
Please read carefully and make all the necessary changes as stated. This is will work if installed properly. PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack Click It Help & Support Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here. Please post bugs and errors here. Hope you like, feedback welcomed. |
Now this is a great idea and one that will come in handy for any board :) Fantastic.
I will install later as i have a banging head through to much ale :) But i clicked install :) |
Not installed yet but one quick question, is the navbar included on the rules page? Sorry i know i should read the code/install file but im abit drunk so dare not touch my board yet :)
|
From the screenshot, I say probably not.
Great hack, LiveWire! :) |
Updated with link added to Navbar.
|
Love it :D
One question... I rule an auction type site. Would it be possible to hook this up to the forums? Thanks :D |
What is it that you want it to do? You can make it so it forces in the index.php page of your vB forums
|
Yes that would be great :D
If someone sends them a URL to a post on the forum, will the rules still popup ? |
Very nice, not gonna install as yet but I am sure I will be.. Thanks
The user will only see the rules once? is that based on cookies? |
you mean any url to your forum? If so i might be able to work that, Gotta check it out.
|
what about when posting?
|
how about for the arcade.php.
|
Quote:
Yes, thats what I need :D |
I can do arcade.php, and what do you mean when posting? i can try any url.
|
Thanks live wire :)
|
Nice, I am going to try this one out later tonight!
|
A modification to work on the main index.php page of the board would be great, or on newpost.php and newthread.php.
Thanks! |
Questions:
1) Whats the rules.php for? 2) I could not run: Type: GLOBAL Varname: $vbphrase[site_rules] Text: Rules So I left it out 3) installed on without the above and working fine. Laters |
awesome idea thx
|
can you make a agree rules before post?
|
Quote:
Type: GLOBAL Varname: site_rules Text: Rules Updated text. |
Well, this is almost what I need, but I want one that will show up for someone that is posting for the first time, instead of seeing the UserCP for the first time.
|
When i get home from work i will make this work for posting, and for the arcade. Been busy.
|
Perfect! We made some policy changes recently. I could have used this last week --- but thanks for it now!
:) *installs* |
Quote:
|
I have been looking for something like this with a little DIFFERNT twist to it.
I do not know about you but I am TIRED of people NOT reading rules or important annoucements etc. What I would LOVE to have is a way to FORCE Everyone to read a certain message no matter what they are doing. Users are logged in, I create a NEW Rule or Message that I want EVERYONE to read. As soon as I create the RULE etc I would like to be able to FORCE EVERYONE to read it before they can PROCEED viewing forums etc. So say a member is reading a POST, I create a NEW RULE and choose FORCE READ. When those members click anything else in the forum it auto POPS up NEW message with the NEW RULE etc I just made. The ONLY way I thought this would work right is to FORCE CLEAR ALL cookies (FORECE LOGOUT) for the Forum so that the message would Appear as soon as they logged back in they would have to CLICK a button on message to continue, even possibly the ADMINS can set how LONG they must READ it BEFORE they can continue. Can you do this? This would be of great benefit, it would allow Forums to KNOW that EVERYONE got the NEWS or NEW RULES. People would no longer have an excuse well I didn't know, I didn't see the new rules etc. I know for me this would be of GREAT help :) |
I'm thinking of something simliar only have it redirect the user to our index page. Alot of people link to the forum directly and I want to cut back on that.
|
Force Site Rules is back, and will have updated instrutions later tonight for the forums index.php, and the arcade.php.
|
So u will do it be shown before ppl see the index forum page?
SWEET, looking forward for it mate |
Yes when a member comes to your site, the first thing they will see is the rules, when they click i accept. it will record it in the database, and they will no be prompt the rules again. I'm also making it so you have updated rules. If you update your rules for w/e reason, then you add the new rules, and click on a update button, and it will make it so all user have not agreeded to the new rules, and they will be prompt the new rules again.
|
Live Ware, instead of Rules(although i want to use it also in Rules), it could be an Announcement for example?
I mean, this can be changed in text right? Sorry for my bad english, i just got home after a long drinking night, and i am little dizzy:P |
Yes you can use this for anything, rules just seemed to be the more common use of this. You can just edit the template and place an announcement there. :) Which makes me think, i'll change the title of my hack ^^
|
:)
Greaaaaaat mate...i just wait then, for a release:) This would be a must have hack:) |
Please read first thread, updates completed.
|
Live Wire,
This may be a stupid question, but where is the rules.php file mentioned in the 1st post and both text files, as I can not seem to find it and I have looked twice? Thanks in advance, JD. :) |
Opps, i must have deleted it when i did the updates, thanks will reupload now. :)
|
Any chance you could add an option like this hack?
|
Live also, as i am ready to install...is this hack, includes what u wrote here:
""The abilty to set all users back to "not read", so you can update the rules, will release tomorrow. 10-05-2004"" ? Thanks a lot |
IMPORTANT BUG FIX FOR THE INDEX.PHP METHOD!
If you are using the index.php method please do this important update. I found a bug in the hack that will show guest the rules and try to force them to agree with them, and if they did it still wouldn't allow them to see the fourms, it would just redirect them back to the rules page. Please do this update so you don't lose your guest viewing your site. You can find the update in the first post of this thread. All new users, I have updated the install file. |
Quote:
|
All times are GMT. The time now is 11:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|