vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Rules and User Agreement Hack (https://vborg.vbsupport.ru/showthread.php?t=97699)

uae 10-07-2005 12:42 PM

Sorry for that,

Problem been fixed, just import the latest product-rulesagreement.xml from the zip file and set Allow Overwrite to YES.

DBs 10-07-2005 03:58 PM

When I attempt to reset a rule I get the following error message:

Warning: Cannot modify header information - headers already sent by (output started at /data/websites/forums.freddyshouse.com/includes/adminfunctions.php:236) in /includes/functions.php on line 2346

Warning: Cannot modify header information - headers already sent by (output started at /data/websites/forums.freddyshouse.com/includes/adminfunctions.php:236) in /includes/functions.php on line 2349

but the rule IS reset.

Also, can you explain the following option and provide an example (I'm confused, just can't get the rule listed in memberinfo)

Rule's Page URL (Optional) If you leave it empty, Rule will not be listed in MEMBRIFNO.

Many thanks.

uae 10-07-2005 06:25 PM

Quote:

Originally Posted by DBs
When I attempt to reset a rule I get the following error message:

Warning: Cannot modify header information - headers already sent by (output started at /data/websites/forums.freddyshouse.com/includes/adminfunctions.php:236) in /includes/functions.php on line 2346

Warning: Cannot modify header information - headers already sent by (output started at /data/websites/forums.freddyshouse.com/includes/adminfunctions.php:236) in /includes/functions.php on line 2349

but the rule IS reset.

Also, can you explain the following option and provide an example (I'm confused, just can't get the rule listed in memberinfo)
Rule's Page URL (Optional) If you leave it empty, Rule will not be listed in MEMBRIFNO.
Many thanks.

I have no idea about the error you're getting, but I'll look into it.

Regarding Rules Page URL

Now, if you add a url in that field, and a user submit to agree on the rule, you will be able to see the rule tilte with a link to the rules page if there was one in his/her profile page.

The idea behind this is that you may want to add a rule but you don't want others to see what poeple has agreed on unless you use the url field.

thedvs 10-07-2005 06:37 PM

Is the rules url meant to be the forums URL or a url to a php/html rules page?

uae 10-07-2005 08:34 PM

Quote:

Originally Posted by thedvs
Is the rules url meant to be the forums URL or a url to a php/html rules page?

if you are talking about the Rule's Page URL field which is just under the rule's text field in the Add New Rule Page in ADMINCP, that would be the url to the rules and agreement page you've got already, if there was one, filling this field with a url will have the rules listed in the member profile page whenever they submit to agree on that rules.

Leaving that field empty, will not list the rules in the member profile page even if they submit to agree on the rules.

Think of it as an option weather you want others to see what rules a specific user has agreed on when viewing their profile page.

But if you were talking about the from File URL field which is at the very end of the Add New Rule Page in ADMINCP, then that would be the page you want to show the rules at whenever a user try to view it.

thedvs 10-07-2005 09:54 PM

Thank you... all works perfectly now!
Great job uae! :)

thedvs 10-08-2005 02:10 PM

Seems to be a problem with the 12 hour reset now, after the 12 hours it asks you again to sign the rules, you agree... then instead of letting you continue viewing threads it keeps asking for you to sign the rules again. Any ideas? To me it seems to be a cron issue.

uae 10-08-2005 04:01 PM

Quote:

Originally Posted by thedvs
Seems to be a problem with the 12 hour reset now, after the 12 hours it asks you again to sign the rules, you agree... then instead of letting you continue viewing threads it keeps asking for you to sign the rules again. Any ideas? To me it seems to be a cron issue.

did you install the latest version?

thedvs 10-08-2005 06:24 PM

yes i did

Delphiprogrammi 10-09-2005 11:09 AM

hi people,

i get this MySQL error while trying to add the product XML

Quote:

Database error in vBulletin 3.5.0:

Invalid SQL:
INSERT INTO cron (weekday, day, hour, minute, filename, loglevel, title )
VALUES (-1, -1, 0, 'a:1:{i:0;i:-1;}', './includes/cron/cron_ruleshack.php', 1,
'Rules and User Agreement Hack Reset');

MySQL Error : Table 'delphipr_forums.cron' doesn't exist
Error Number : 1146
Date : Sunday, October 9th 2005 @ 01:48:11 AM
Script : plugin.php
Referrer : plugin.php?do=productadd
IP Address :
Username :
Classname : vb_database
seems like . "TABLE_PREFIX ." thingy is missing somewhere


All times are GMT. The time now is 10:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01272 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete