Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Force Site Rules (Announcements) to be read Details »»
Force Site Rules (Announcements) to be read
Version: 1.00, by Logikos Logikos is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.0.3 Rating:
Released: 07-23-2004 Last Update: Never Installs: 35
 
No support by the author.

====================
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.
  • For the rules to be forced on the index page please download rules_on_index_page.txt
  • For the rules to be forced on the usercp page please download rules_on_usercp_page.txt

Update the users to 'not read'.
  • The abilty to set all users back to "not read", so you can update the rules.


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:
if ($agree
Replace with
PHP Code:
if (!$bbuserinfo['userid'] or $agree
---------------------------------

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:
$globaltemplates = array(
        
'USERCP_SHELL',
        
'USERCP',
        
'usercp_nav_folderbit'
Under add:
PHP Code:
$globaltemplates = array(
        
'USERCP_SHELL',
        
'USERCP',
        
'usercp_nav_folderbit',
        
'forum_rules'
What this does
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...
  • Time to install: 5 minutes
  • Queries to run: 1
  • New Files: 1
    • /forum/rules.php
  • File Mods: 1
    • /forum/usercp.php
  • Templates to add: 1
  • New Phrases: 1


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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 10-09-2004, 01:44 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New feature update:
The abilty to set all users back to not read so you can update the rules, and reforce the users to check the box again. Please redownload from the first post of this thread. See new screenshot for a better understanding.
Reply With Quote
  #43  
Old 10-09-2004, 01:48 AM
lanc3lot's Avatar
lanc3lot lanc3lot is offline
 
Join Date: Sep 2004
Location: Athens, Greece
Posts: 454
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

U rule....going to install it tommorow after i get some sleep

Thanks a million


Ps

I think, u have the best support in hacks...its pity u are not the one who has released hacks like V3 Articles...u could have done good job there too Its pity, as it is dead now
Reply With Quote
  #44  
Old 10-09-2004, 02:14 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot lanc, well I have time now as i'm no longer the owner at vBhacks.us. And the more hacks I release and support the more I seem to learn. Got a couple of big hacks coming soon, well big to me cause they took awhile to write.

And I thank you and everyone else that uses this hack, gives feedback, and clicks the install button!
Reply With Quote
  #45  
Old 10-13-2004, 03:31 PM
lanc3lot's Avatar
lanc3lot lanc3lot is offline
 
Join Date: Sep 2004
Location: Athens, Greece
Posts: 454
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the Rules in The index txt, u say to run a query..

That means, run an sql query or is somewhere else?

:nervous:
Reply With Quote
  #46  
Old 02-16-2005, 09:38 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway to put a delay on this so it stops peeps just agreeing to the rules and not reading them?

Laters
Reply With Quote
  #47  
Old 02-19-2005, 08:40 AM
Freezerator Freezerator is offline
 
Join Date: Nov 2001
Location: Den Haag
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack
Reply With Quote
  #48  
Old 02-19-2005, 11:37 PM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried to run the query and got
An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'djjeffa_djjeffaVB.user' doesn't exist
I have seen tis error befor when tring to install hacks do any of you have any tips or ideals?
Reply With Quote
  #49  
Old 02-23-2005, 10:05 PM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djjeffa
i tried to run the query and got
An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'djjeffa_djjeffaVB.user' doesn't exist
I have seen tis error befor when tring to install hacks do any of you have any tips or ideals?
Bump? :nervous:
Reply With Quote
  #50  
Old 02-25-2005, 05:21 PM
Nutz's Avatar
Nutz Nutz is offline
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there away so that the rules will show up to guests
Reply With Quote
  #51  
Old 03-06-2005, 11:00 PM
BeePee BeePee is offline
 
Join Date: Jul 2004
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

djjeffa, looks like you didn't do the changes to the admincp/queries.php correctly. looks like the "case 05:..." is missing

Nutzz, do the 'Navbar' template change and edit the rules.php and delete this:
PHP Code:
if (!$bbuserinfo['userid'])
{
        
print_no_permission();

after that guest can follow the rules link in the navbar.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08967 seconds
  • Memory Usage 2,301KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete