Firefox PHP

Terms of Service Module

Posted by Brian Moon 
Re: Terms of Service Module
August 31, 2006 08:23AM
I copied everything as in the instructions. as I said before :( I'll give it a try with the updated version.

thanks

Net.
Re: Terms of Service Module
August 31, 2006 09:02AM
1. Unpack the archive.
2.  Move the directory "terms_of_service" to the directory "mods" within your
    Phorum installation.

3.  Move terms-of-service.php to your phorum-directory. Rename the file if you
    want to use a localised file name (in this case you have to change the file
    name also in the settings).

4.  Move terms_of_service.tpl to your template-directory.

definitly did ALL that

5.  You will want to copy or edit lang/english.php in this mod's dir and alter
    the TOS to be legal and appropriate for your site.

copied english.php and renamed it to suit my language settings.

6.  To have the TOS show up in the register form, just put {TOS} in
    register.tpl. I recommend just after the close </table> tag and before the
    submit button.

which now reads:

</table>
{HOOK tpl_register_form}
{TOS}
<div style="float: left; margin-top: 5px;">*{LANG->Required}</div>

anything wrong with this?

7.  To have the TOS agreement show up in the posting form, just put {TOS} in
    posting_buttons.tpl. I recommend just at the beginning of this file before
    the first line.

don't need that

8.  To show a link to the TOS on the index page, edit index_classic.tpl and
    index_new.tpl. Add the following line just behind the
    {INCLUDE "loginout_menu"}: [...]

don't need that now, maybe later.

9.  Login as administrator in Phorum's administrative interface and go to the
    "Modules" section.
10. Enable the module "Terms of Service Module".

did that.

11. At the first time that this module is run (by visiting the forum), the
    module will automatically create a custom profiles field for storing the
    acceptance date of the TOS. You should be able to see the field in the
    admin interface under "Custom Profiles": [...]

it didn't do that.


when trying to register there's nothing of any t-o-s to be seen. inserting the custom field by hand didn't get any results. neither with "disable html" yes nor with no.

so what do I do wrong?

Netwalker.

oh, the link to my register page is: [phorum.rainbowguardian.de]


(why come that the
Quote

tag doesn't work here? it's even in the toolbar?)



Edited 1 time(s). Last edit at 08/31/2006 09:13AM by Netwalker.
Re: Terms of Service Module
August 31, 2006 09:17AM
Hi Netwalker,

Quote
Netwalker
it simply doesn't show up on the register page?

Here some things to check:

1. Did you add {TOS} to the register.tpl and you are editing in the correct template directory?

Readme says:

6.  To have the TOS show up in the register form, just put {TOS} in
    register.tpl. I recommend just after the close </table> tag and before the
    submit button.

2. Do you use an own language file? Do the language file in the module lang directory have the same name? Sure, that there is no syntax error in the module language file?

Asking
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
August 31, 2006 09:34AM
Yes, I am in the right directory. (I've been working on the template today and changed other things which went from the same directory to the same)

and Yes, I copied the exact name of the language file as I always do.

[edit]I just took out the navbar line. and that worked fine. so must be the right file.[/edit]



Edited 1 time(s). Last edit at 08/31/2006 09:39AM by Netwalker.
Re: Terms of Service Module
August 31, 2006 10:27AM
Hi Netwalker,

did you use version 1.0 from Brian before? After updating to version 2 you have to turn the module off and back to on.

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
August 31, 2006 10:37AM
Hi Netwalker,

Quote
Netwalker
3.  Move terms-of-service.php to your phorum-directory. Rename the file if you
    want to use a localised file name (in this case you have to change the file
    name also in the settings).

terms-of-service.php shows me that you never went to the settings page of this module and saved the default values. Perhaps this could be the problem. Can you please save once the default settings? If afterwards the TOS is shown on the register page I have to investigate how to solve this situation.

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
August 31, 2006 11:38AM
I did both. I turned the module on and off several times before even reporting this bug. (before trying out today's version I de-installt it completly. that is: turning it off, deleting the folder, taking a look it's gone, loading up the new folder, turning it on)

and yes I saved the settings. in the first go. because if a module has settings I _always_ take a look at them. and I always had the latest version running.

I also tried taking out the hook from register.tpl (which is needed for maurice's spamhurdles module) but it really didn't help.

If it would speed up things I can PM you my icq or aim name.

sorry about all this trouble,

Net.
Re: Terms of Service Module
August 31, 2006 11:51AM
btw I get a funny thing in the admin panel.

when I click save in the tos settings the page afterwards says "There are no settings for this module."

maybe there's the problem?
Re: Terms of Service Module
August 31, 2006 11:53AM
Hi Netwalker,

Quote
Netwalker
I turned the module on and off several times before even reporting this bug... and yes I saved the settings

So, whats the reason that [phorum.rainbowguardian.de] shows still 01.01.1970 (which means empty date value). It seems that no values for this module are stored in the database...

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
August 31, 2006 11:56AM
s. my post above
Sorry, only registered users may post in this forum.

Click here to login