Firefox PHP

Terms of Service Module

Posted by Brian Moon 
Re: Terms of Service Module
October 15, 2006 07:10AM
Hi Chris,

I reply my questions:

The sanity checks are now ok? Which template do you use? The default template?

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Terms of Service Module
October 15, 2006 06:05PM
Quote
Oliver Riesen
Hi Chris,

I reply my questions:

The sanity checks are now ok? Which template do you use? The default template?

Regards
Oliver

I am using the default template. The sanity check says there is an error with the terms of service module:

"Sanity check failed Your template file "posting_buttons.tpl" misses {TOS}."

I was under the assumption that I could use this mod without putting the terms of service on the posting page. I just want it on the registration page. Is that wrong? Do I have to have it in both places for this to work correctly?
Re: Terms of Service Module
October 16, 2006 09:19AM
Hi Chris,

Quote
cdclose
The sanity check says there is an error with the terms of service module:
"Sanity check failed Your template file "posting_buttons.tpl" misses {TOS}."

Sanity check stops at first error. Perhaps there ist another error. Please make the necessary changes to posting_buttons.tpl and check again.

Please clear also your cache directory.

Since it seems to me that you had already a lot of trouble with your Phorum-installation I recommend to start with a fresh installation and to add modules one by one.

Quote
cdclose
I was under the assumption that I could use this mod without putting the terms of service on the posting page. I just want it on the registration page. Is that wrong? Do I have to have it in both places for this to work correctly?

I never tested that. But if you allow only registered users to post and if you never change the TOS-date in settings there's no effect on the posting page. So make also the changes to posting_buttons.tpl. Your users never will see the TOS on the posting page in that case.

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Terms of Service Module
October 16, 2006 07:30PM
Ok everything is working now except for the terms of service on the registration page. The sanity check says everything is ok. I am seeing this error in my logs now:

1161040774: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''20061016')' at line 1: insert into phorum_user_custom_fields (user_id,type,data) VALUES(33,,'20061016')

Any idea how to fix this? I tried searching google but have had no luck. I appreciate the help

Thanks.
Chris
Re: Terms of Service Module
October 17, 2006 03:40AM
Hi Chris,

Quote
cdclose
I am seeing this error in my logs now:

1161040774: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''20061016')' at line 1: insert into phorum_user_custom_fields (user_id,type,data) VALUES(33,,'20061016')

Please check your phorum_settings table for the default settings (for example with phpMyAdmin):

SELECT `name`,`type`,`data` FROM `phorum_settings` WHERE `name` LIKE 'mod_tos%'

Do you get two rows?

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Terms of Service Module
October 17, 2006 08:58AM
Yes I'm seeing two records. Screen shot attached.

Thanks.
Chris


Re: Terms of Service Module
October 17, 2006 09:37AM
Hi Chris,

Quote
cdclose
Yes I'm seeing two records. Screen shot attached.

That's correct. Please chek now the Custom Profile Field. Go to Phorum Admin, Custom Profile. There should be a field mod_tos, length=8, HTML disabled=Yes. Does this field exist?

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Terms of Service Module
October 17, 2006 09:41AM
Yes the field is there.

Thanks.
Chris
Re: Terms of Service Module
October 18, 2006 08:39PM
I got my issue fixed. I deleted the mod_tos record from the database and added it back through the admin area. I think there is something wrong with the way the install of the mod creates that record.

Chris
Re: Terms of Service Module
October 26, 2006 01:50PM
Love the module! I have it installed only on the Registration page.

My existing Admin account is getting a "You must agree to the terms of service to post." error message when trying to post a message. And when I try to register a new user, I get this error message:

Quote

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''20061026')' at line 1: insert into phorum_user_custom_fields (user_id,type,data) VALUES(2,,'20061026')"

I do get two rows in the table when I do the "SELECT `name`,`type`,`data` FROM `phorum_settings` WHERE `name` LIKE 'mod_tos%'" query in phpMyAdmin.
Sorry, only registered users may post in this forum.

Click here to login