Terms of Service Module
Posted by Brian Moon
Re: Terms of Service Module March 15, 2008 04:59AM |
Registered: 15 years ago Posts: 1 |
Hello,
I have the problem, that the TOS-section doesn't show up. Not in the register section, not in the posting section.
I use Phorum 5.2.6a and terms_of_service-2.2.5.zip on an totally new installed system.
I followed the instructions:
* terms-of-service.php is placed in /htdocs/phorum/ (where e.g. the index.php is placed)
* terms_of_service.tpl is placed in /htdocs/phorum/templates/classic (I used the version from /mods/terms-of-service/templates/5.2)
* I left lang/english.php unchanged
* I placed the {TOS} in register.tpl:
* The custom profile field is created automatically
If I create a new posting, the TOS is not shown, but if I click the "Preview" or "Post message" button I get the message "You must agree to the terms of service to post." The same happens, when I want to register.
Running the "Phorum System Sanity Checks" I get a
Could it be, that TOS is incompatible with version 5.2.6a?
Unfortunately, the installation is within an intranet, so I can't provide a link for demonstration.
Greetings from sunny Franconia in Bavaria in Germany
Peter
I have the problem, that the TOS-section doesn't show up. Not in the register section, not in the posting section.
I use Phorum 5.2.6a and terms_of_service-2.2.5.zip on an totally new installed system.
I followed the instructions:
* terms-of-service.php is placed in /htdocs/phorum/ (where e.g. the index.php is placed)
* terms_of_service.tpl is placed in /htdocs/phorum/templates/classic (I used the version from /mods/terms-of-service/templates/5.2)
* I left lang/english.php unchanged
* I placed the {TOS} in register.tpl:
</table> {TOS} <div style="float: left; margin-top: 5px;">*{LANG->Required}</div>* I placed the {TOS} in posting_buttons.tpl:
{TOS} <div class="PhorumStdBlock PhorumNarrowBlock" style="text-align: right; border-top: none">* The module "Terms of Service Module" is enabled, I saved the (unchanged) settings
* The custom profile field is created automatically
If I create a new posting, the TOS is not shown, but if I click the "Preview" or "Post message" button I get the message "You must agree to the terms of service to post." The same happens, when I want to register.
Running the "Phorum System Sanity Checks" I get a
Warning: file_get_contents(./templates//register.tpl) [function.file-get-contents]: failed to open stream: No such file or directory in /opt/lampp/htdocs/phorum/mods/terms_of_service/terms_of_service.php on line 219This indicates for me, that there might be a problem in reading the parameters. Entering the correct path in the sourcecode (line 219, the
$tmpfile = file_get_contents("./templates/classic/register.tpl")I get the warning, that something is wrong with the language-file.
Could it be, that TOS is incompatible with version 5.2.6a?
Unfortunately, the installation is within an intranet, so I can't provide a link for demonstration.
Greetings from sunny Franconia in Bavaria in Germany
Peter
Re: Terms of Service Module March 31, 2008 12:06PM |
Registered: 15 years ago Posts: 14 |
Quote
prkoel
This indicates for me, that there might be a problem in reading the parameters. Entering the correct path in the sourcecode...
I had the same problem for sanity check part, but main issue for me is that $PHORUM['DATA']['TOS'] gets filled with appropriate contents by mod_tos_after_header, but adding {TOS} in register.tpl won't do a thing. My event logging module gets a message "PHP notice: Undefined index: TOS" at the time. So something is wrong for sure. Anyway, when I put echo $PHORUM['DATA']['TOS']; in the end of register.php, it displays TOS all right. This all I've got now. Any diagnosis, monseigneurs?
I use phroum5-dev branch, but it does the same on 5.2.7 stable. My PHP version is 4.3.9...
Also, I see that terms_of_service.tpl must be put in template root directory and not just into some template directory. This is not fully clear from README.
Re: Terms of Service Module March 31, 2008 12:31PM |
Admin Registered: 21 years ago Posts: 9,240 |
Re: Terms of Service Module March 31, 2008 12:37PM |
Registered: 15 years ago Posts: 14 |
March 31, 2008 12:41PM |
Admin Registered: 19 years ago Posts: 8,532 |
The Phorum devs can't really tell. It is not a module that was written by us. It possibly doesn't need any big fixes. Maybe some user calls for saving data that need to be replaced with the new API call for that (phorum_api_user_save()). When fixing the module for 5.2, I would also suggest to put the TOS contents in a template file inside the module template directory, so the admin doesn't have to copy around files to get things working.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



March 31, 2008 02:17PM |
Admin Registered: 17 years ago Posts: 744 |
Hi Träm,
I started before eastern with another try to switch to Phorum 5.2 (I'm still using 3.3.2c). Since the new template emerald is quite nice, we will upgrade next weekend to a standard default installation of Phorum 5.2.7 with only few additional modules. I rewrote already my Close Topic Module, today I started with a new module sending new topics to mailinglists, next I will rewrite my Terms of Service Module for 5.2. I hope it's ready for the next week.
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.
I started before eastern with another try to switch to Phorum 5.2 (I'm still using 3.3.2c). Since the new template emerald is quite nice, we will upgrade next weekend to a standard default installation of Phorum 5.2.7 with only few additional modules. I rewrote already my Close Topic Module, today I started with a new module sending new topics to mailinglists, next I will rewrite my Terms of Service Module for 5.2. I hope it's ready for the next week.
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.
April 09, 2008 10:04AM |
Admin Registered: 17 years ago Posts: 744 |
See new version 2.3.0 for Phorum 5.2
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.
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.
Sorry, only registered users may post in this forum.