View Single Post
  #2  
Old 31st July 2013, 22:04
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
I'm not using TSSE but this should work in TSSE 5.6


1) Run this sql

PHP Code:
ALTER TABLE `usersADD `read_rulesenum('yes','no'COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no'
ALTER TABLE `usersADD `read_faqenum('yes','no'COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no'
ALTER TABLE `usersADD `read_agreeenum('yes','no'COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no' 
2 Add this to the pages you want to force to read first

PHP Code:
$resread mysql_query("SELECT read_rules, read_faq, read_agree  FROM users WHERE id = '" $CURUSER["id"] . "'" ) or sqlerr();
    
$rowread mysql_fetch_array($resread);
    if (
$rowread['read_rules'] != 'yes' || $rowread['read_faq'] != 'yes' || $rowread['read_agree'] != 'yes' ){
    exit(
'You need to read rules, FAQ and Agreement');

3 Add this to rules
PHP Code:
mysql_query("UPDATE users SET read_rules = 'yes' WHERE id= '"$CURUSER["id"] . "'") or sqlerr(); 
Add this to faq
PHP Code:
mysql_query("UPDATE users SET read_faq = 'yes' WHERE id= '"$CURUSER["id"] . "'") or sqlerr(); 
5 Add this to agreement
PHP Code:
mysql_query("UPDATE read_agree SET read_agree = 'yes' WHERE id= '"$CURUSER["id"] . "'") or sqlerr(); 
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me


Last edited by firefly007; 27th August 2013 at 20:02.
Reply With Quote
The Following 2 Users Say Thank You to firefly007 For This Useful Post:
FENIX (29th August 2013), Marco (1st August 2013)