Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Daniel15 on March 11, 2007, 11:26:05 PM

Title: Updated Registration Agreement
Post by: Daniel15 on March 11, 2007, 11:26:05 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=727)

Whenever the registration agreement (agreement.txt) is updated, this mod will force users to accept the terms of the new agreement. The user won't be allowed to access the forum until they've agreed to it.

Based on a request by digit (http://www.simplemachines.org/community/index.php?action=profile;u=3624) at http://www.simplemachines.org/community/index.php?topic=156942
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 11, 2007, 11:52:18 PM
Cool mod.  Just one error failed test on install.  Probably cause I have too many mods?   ???

./index.php
Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 12, 2007, 01:15:30 AM
RoarinRow, could you please send me your index.php file? If you can attach it here in a reply, do so (I can't remember whether regular members are allowed to attach things here... If not,  create a copy with a .txt extension and link to it).
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 12, 2007, 01:26:21 AM
Quote from: Daniel15 on March 12, 2007, 01:15:30 AM
RoarinRow, could you please send me your index.php file? If you can attach it here in a reply, do so (I can't remember whether regular members are allowed to attach things here... If not,  create a copy with a .txt extension and link to it).

Sure, no problem.  See attached.  Thanks!
Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 12, 2007, 01:50:09 AM
OK, I found out what was causing the problem, and have reuploaded the mod. Please try the new package, and see if that works for you :)
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 12, 2007, 02:35:58 AM
Quote from: Daniel15 on March 12, 2007, 01:50:09 AM
OK, I found out what was causing the problem, and have reuploaded the mod. Please try the new package, and see if that works for you :)

It definitely worked.  As soon as I installed it, it went to the Registration Agreement page.   8)   So anytime I make a change to it from here on out, it will be displayed to all members.
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 12, 2007, 03:05:29 AM
I just got this one error after I updated the Registration Agreement on my live site:

http://www.avalanchestyle.com/forum/index.php 
8: Undefined index: action
File: /forum/index.php
Line: 283
Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 12, 2007, 07:40:31 AM
Quote from: RoarinRow on March 12, 2007, 02:35:58 AM
Quote from: Daniel15 on March 12, 2007, 01:50:09 AM
OK, I found out what was causing the problem, and have reuploaded the mod. Please try the new package, and see if that works for you :)

It definitely worked.  As soon as I installed it, it went to the Registration Agreement page.   8) 
Oops... I should make it so that when you install it, it sets everyone's last agreement date to the date of the current agreement.
Actually, now that I think about it, I found a bug... I'll fix it as soon as possible ;).

QuoteSo anytime I make a change to it from here on out, it will be displayed to all members.
Yeah, that's how it works.

QuoteI just got this one error after I updated the Registration Agreement on my live site:
Grrr... That's my fault for insufficient testing. I'll fix the package when I do the other bug fix.

I'm hoping that this will fix it:
In index.php, find:

// --- Begin modification - Updated registration agreement ---
// Perhaps we've changed the agreement? Only redirect if:
//  1. The registration agreement is enabled.
//  2. They're not a guest.
//  3. The date they last accepted the agreement is less than the current agreement's date.
//  4. They're not on the agreement pages themselves
elseif (!empty($modSettings['requireAgreement']) && !$user_info['is_guest'] && ($user_info['last_reg_accept'] < filemtime($boarddir . '/agreement.txt')) && !in_array($_REQUEST['action'], array('accept_agreement', 'accept_agreement2', 'logout')))


Replace with:

// --- Begin modification - Updated registration agreement ---
// Perhaps we've changed the agreement? Only redirect if:
//  1. The registration agreement is enabled.
//  2. They're not a guest.
//  3. The date they last accepted the agreement is less than the current agreement's date.
//  4. The action is not set
//  5. If the action is set, and they're not on the agreement pages themselves
elseif (!empty($modSettings['requireAgreement']) && !$user_info['is_guest'] && ($user_info['last_reg_accept'] < filemtime($boarddir . '/agreement.txt')) && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('accept_agreement', 'accept_agreement2', 'logout'))))

Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 12, 2007, 10:18:49 AM
Cool, the fix worked for the index.php error   8)   Thank you.
Title: Re: Updated Registration Agreement
Post by: qtime on March 12, 2007, 03:39:03 PM
Great function, must be a standard option!
Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 13, 2007, 04:59:56 AM
Quote from: RoarinRow on March 12, 2007, 10:18:49 AM
Cool, the fix worked for the index.php error   8)   Thank you.
Thanks, I'll fix it in the package as soon as possible :)

A user pointed out some problems, and has suggested some improvements to me. I'll release a new version of the mod soon :D
Title: Re: Updated Registration Agreement
Post by: diegolyanky on March 13, 2007, 10:21:43 AM
Hey man ! .... That's very usefull !!

Many thanks !! ;)
Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 14, 2007, 01:07:34 AM
OK, I've uploaded a new release. Special thanks to Rudolf for suggesting some changes to me :D

Changes:
- On installation, mark all members as having read the agreement
- When a new user registers, do not prompt them to agree (as they already did during registration)
- Fixed minor error reported by RoarinRow (http://www.simplemachines.org/community/index.php?topic=157196.msg1002457#msg1002457)
- Instead of checking last modified date of changelog.txt, a setting has been added to the admin panel to mark the agreement as changed

- Moved code from index.php to loadUserSettings function in Load.php
- The install script checks to see if the column already exists


You'll need to uninstall version 0.1 before installing 1.0 (the latest one)

Edit: Clarified changelog
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 14, 2007, 01:52:16 AM
Cool thanks for the update.  I uninstall test failed for my index.php, but I manually removed the mod from it, then installed update.

In the Registration Agreement section in the Admin CP, I do see a new check box that says 'Reset the agreement status for everyone
This will force all users to re-read the registration agreement, and agree to it in order to continue using the forum.'

I left that unchecked.  Are there any other configurations somewhere else.  Wasn't sure what you meant by 'On installation, check if column already exists'


Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 14, 2007, 03:54:30 AM
QuoteI uninstall test failed for my index.php, but I manually removed the mod from it, then installed update.
Yeah, that's because you changed the code in it, to fix the bug ;)

QuoteIn the Registration Agreement section in the Admin CP, I do see a new check box that says 'Reset the agreement status for everyone
This will force all users to re-read the registration agreement, and agree to it in order to continue using the forum.'

I left that unchecked.  Are there any other configurations somewhere else.
Yeah, that's the only configuration option :)

QuoteWasn't sure what you meant by 'On installation, check if column already exists'
Sorry, I didn't word it properly. What I meant was: "When you install the mod, the install script will check if the column already exists". I'll edit the changelog so it's more apparent.
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 14, 2007, 10:27:49 AM
Quote from: Daniel15 on March 14, 2007, 03:54:30 AM
QuoteI uninstall test failed for my index.php, but I manually removed the mod from it, then installed update.
Yeah, that's because you changed the code in it, to fix the bug ;)

QuoteIn the Registration Agreement section in the Admin CP, I do see a new check box that says 'Reset the agreement status for everyone
This will force all users to re-read the registration agreement, and agree to it in order to continue using the forum.'

I left that unchecked.  Are there any other configurations somewhere else.
Yeah, that's the only configuration option :)

QuoteWasn't sure what you meant by 'On installation, check if column already exists'
Sorry, I didn't word it properly. What I meant was: "When you install the mod, the install script will check if the column already exists". I'll edit the changelog so it's more apparent.

o.k. great, just wanted to be sure I didn't miss anything   8)
Title: Re: Updated Registration Agreement
Post by: Ben_S on March 18, 2007, 08:21:36 PM
Nice idea, although from the description, it sounds like any change will require reagreeing (is that a word), what if the only change is a typo?

Would be better to provide a checkbox or something to force reagreeing, ignore me if thats the way it already works.
Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 19, 2007, 04:26:50 AM
Quote from: Ben_S on March 18, 2007, 08:21:36 PM
Would be better to provide a checkbox or something to force reagreeing, ignore me if thats the way it already works.

That's the way it works now :)
It previously checked the last modified time of the changelog.txt file, but no longer does so. It looks like I updated the description on the mods site, but not on this topic...
Title: Re: Updated Registration Agreement
Post by: brianjw on March 19, 2007, 02:01:29 PM
I need help really bad!!! I have this mod and even though i agree it wont accept. I cant access my admin or anything.

Username: test
Password: test
it only works when u are logged in!! HELP!!!!
Title: Re: Updated Registration Agreement
Post by: TrueSatan on March 19, 2007, 02:12:26 PM
Do a manual uninstall...
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 19, 2007, 02:22:51 PM
Quote from: brianjw on March 19, 2007, 02:01:29 PM
I need help really bad!!! I have this mod and even though i agree it wont accept. I cant access my admin or anything.

Username: test
Password: test
it only works when u are logged in!! HELP!!!!

or at least remove the mod from the index.php and index.template.php file so you can get back in.
Title: Re: Updated Registration Agreement
Post by: brianjw on March 19, 2007, 03:04:09 PM
I removed the code from the index.php and if you're talking about the default theme index.template.php, that file had nothing with this mod in it.

NOW... it brings it to the forum index when you go there but no other page, and i have TinyPortal so it should be showing blocks. :-\ Need help!!
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 19, 2007, 04:30:21 PM
Quote from: brianjw on March 19, 2007, 03:04:09 PM
I removed the code from the index.php and if you're talking about the default theme index.template.php, that file had nothing with this mod in it.

NOW... it brings it to the forum index when you go there but no other page, and i have TinyPortal so it should be showing blocks. :-\ Need help!!

but you can get into your control panel right.  So from there you can go to the Packages and go to this mod for the files that it modified and reverse everything out.

Edit - I got this from my package manager and install.xml file.   How bout removing this code from the Sources/Load.php file.

      // --- Begin modification - Updated registration agreement ---
      // Perhaps we've changed the agreement? Only redirect if:
      // 1. The registration agreement is enabled.
      // 2. The user's has not agreed to theh latest registration agreement
      // 3a. The action isn't set (ie. they're at the board index, and
      // 3b. They're not on the agreement pages themselves
      if (!empty($modSettings['requireAgreement']) && empty($user_settings['agreement_accepted']) && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('accept_agreement', 'accept_agreement2', 'logout'))))
      {
         // Let's redirect.
         redirectexit('action=accept_agreement');
      }
      // --- End modification ---
Title: Re: Updated Registration Agreement
Post by: brianjw on March 19, 2007, 04:47:59 PM
Thanks that fixed it :)
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 19, 2007, 04:50:39 PM
Quote from: brianjw on March 19, 2007, 04:47:59 PM
Thanks that fixed it :)

Cool!   8)
Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 19, 2007, 11:28:42 PM
Quote from: brianjw on March 19, 2007, 02:01:29 PM
I need help really bad!!! I have this mod and even though i agree it wont accept. I cant access my admin or anything.

Username: test
Password: test
it only works when u are logged in!! HELP!!!!
What other mods do you have installed? One of them may have been interfering with this mod...
Title: Re: Updated Registration Agreement
Post by: Mick. on March 19, 2007, 11:30:37 PM
I tried to uninstall 0.1 to update with 1.0 but i get the "pink warning sign" test failed in modificationsenglishphp



Quote<?php
// Version: 1.1; Modifications
$txt['submit'] = 'Submit';

$txt['warn'] = 'Warn User';
$txt['warnLog'] = 'Warning Log';

$txt['permissiongroup_vwarn'] = 'VWarn Mod';
$txt['permissionname_vwarn_warn'] = 'Warn users';
$txt['permissionhelp_vwarn_warn'] = 'Users with this permission may warn other users.';
$txt['cannot_vwarn_warn_any'] = 'You do not have the permission to warn users.';

$txt['permissionname_vwarn_viewlog'] = 'View warning log';
$txt['permissionhelp_vwarn_viewlog'] = 'Allows the user to view his own or any warning logs.';
$txt['permissionname_vwarn_viewlog_own'] = 'Own Log';
$txt['cannot_vwarn_viewlog_own'] = 'Sorry, you\'re not allowed to view your warning log.';
$txt['permissionname_vwarn_viewlog_any'] = 'Any Log';
$txt['cannot_vwarn_viewlog_any'] = 'Sorry, you\'re not allowed to view other members\' warning logs.';

$txt['warned_for'] = 'Lasting';
$txt['warned_days'] = 'days';
$txt['warned_by'] = 'By';
$txt['warned_until'] = 'Expires / Expired';
$txt['warn_group'] = 'Group';
$txt['warn_note'] = 'Note';
$txt['warn_notify'] = 'Send notification';
$txt['warn_post'] = 'Related post ID';
$txt['warn_infinite'] = 'Does not expire';
$txt['warn_info'] = '';
$txt['warn_related'] = 'Related Post';
$txt['warn_unwarned'] = 'Unwarned';

$txt['warn_subject'] = 'Your warning level changed';

$txt['nonexistantgroup'] = '[ Unknown ]';

$txt['warn_exp1'] = '<span style="color: grey;">';
$txt['warn_exp2'] = '</span>';

$txt['nowarninggroups'] = 'There are no "warning" type membergroups.';
$txt['postnotusers'] = 'Post doesn\'t match user or does not exist.';

$txt['membergroups_warning'] = 'Warning member groups';
$txt['membergroups_new_board_warning_desc'] = 'Boards the membergroup can NOT see';
$txt['membergroups_new_board_warning_groups'] = '<em>Note: for warning groups, you check all boards the member should NOT have access to!</em>';
$txt['membergroups_edit_warning_group'] = 'This group is a warning group';

$txt['warn_help'] = 'Specify the number of days each warning level is supposed to last. The user will be in all unexpired levels, though only the one with the shortest expiry time is shown in the post-profile.<br /><br />0 days = Not warned<br />-1 days = Does not expire<br /><br /><i>Set all levels to 0 to unwarn!</i>';


         
// Avatars at Index Mod By alperuzi
$txt['enable_mini_avatars'] = 'Enable displaying mini avatars at message index';
$txt['miniAvatarHeight'] = 'Avatar height (pixels)';
$txt['miniAvatarWidth'] = 'Avatar width (pixels)';
// End Of Avatars at Index Mod

// OB - Googlebot - Begin

// Boardindex Strings
$txt['ob_googlebot_modname'] = 'Googlebot & Spiders';
$txt['ob_googlebot_spider'] = 'Spider';
$txt['ob_googlebot_spiders'] = 'Spiders';
$txt['ob_googlebot_spiders_last_active'] = 'Spiders active in past ' . $modSettings['lastActive'] . ' minutes';

// ModSettings
$txt['ob_googlebot_count_all_instances'] = 'Count all instances of same spider';
$txt['ob_googlebot_display_all_instances'] = 'Display all instances of same spider <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)</div>';
$txt['ob_googlebot_display_agent'] = 'Display agent instead of name';
$txt['ob_googlebot_display_own_list'] = 'Display spiders in its own list';
$txt['ob_googlebot_count_most_online'] = 'Count in "Most Online"';
$txt['ob_googlebot_redirect_phpsessid'] = 'Redirect PHPSESSID URLs';

// Stats
$txt['ob_googlebot_stats_lastvisit'] = 'Google visited last this page ';

// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'View Googlebot & Spiders';

// OB - Googlebot - End         

// Karma Blocks Package v0.3
$txt['karma_applauds'] = "Applauds";
$txt['karma_smites'] = "Smites";
$txt['karma_applaud_color'] = "green";
$txt['karma_smite_color'] = "red";
//Begin Sig Post Strings
$txt['show_sig'] = 'Show Signature';
$txt['sig_topic'] = 'Show Signature Checked?';
//END Sig Post Strings         

//Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contact';
$txt['permissionname_view_contact'] = 'View Contact Page';
$txt['permissionhelp_view_contact'] = 'Allows members to view contact page and send email.';
$txt['cannot_view_contact'] = 'You can not view the contact page.';
//END Contact Page Text Strings         


// Board Viewers Mod

$txt['enable_board_viewers'] = 'Enable displaying viewer numbers of boards';
$txt['boardViewersGuestsMembers'] = 'Seperate guest and member numbers';
$txt['boardViewersClickable'] = 'Enable pop-up list by clicking viewer numbers';
$txt['countChildPosts'] = 'Count child\'s viewers and posts in parent\'s totals';
$txt['bv_members_guests_none'] = 'There are no users viewing this board.';
$txt['bv_members_guests_this'] = 'There are %s members and %s guests viewing this board.';
$txt['bv_members_guests_child'] = '%s members and %s guests are viewing the child boards of this board.';
$txt['bv_members'] = 'Members';
$txt['viewersBrowsing'] = 'Viewers browsing this board';

$txt['board_v_members'] = 'members'; // 43 members
$txt['board_v_member'] = 'member'; // 1 member

$txt['board_v_guests'] = 'guests'; // 26 guests
$txt['board_v_guest'] = 'guest'; // 1 guest

$txt['board_viewers'] = 'viewing'; // 32 viewing
$txt['board_viewer'] = 'viewing'; // 1 viewing

$txt['board_viewers_child'] = 'Viewers'; // Viewers: 145
$txt['board_viewer_child'] = 'Viewer'; // Viewer: 1

// End Of Board Viewers Mod
$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';
         
//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '1.0 Lite';
$txt['smfgallery_admin'] = 'Gallery Configuration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';

$txt['permissionname_smfgallery_view'] = 'View SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Allows the user to view the Gallery';
$txt['cannot_smfgallery_view'] = 'You are not allowed to view the Gallery';

$txt['permissionname_smfgallery_add'] = 'Add Picture';
$txt['permissionhelp_smfgallery_add'] = 'Allows the user to add a picture.';
$txt['cannot_smfgallery_add'] = 'You are not allowed to add a picture.';

$txt['permissionname_smfgallery_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit a picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit a picture.';

$txt['permissionname_smfgallery_delete'] = 'Delete own Picture';
$txt['permissionhelp_smfgallery_delete'] = 'Allows the user to delete a picture.';
$txt['cannot_smfgallery_delete'] = 'You are not allowed to delete a picture.';

$txt['permissionname_smfgallery_comment'] = 'Leave Comments';
$txt['permissionhelp_smfgallery_comment'] = 'Allows the user to leave comments on a picture.';
$txt['cannot_smfgallery_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfgallery_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_smfgallery_report'] = 'Allows the user to report pictures and comments.';
$txt['cannot_smfgallery_report'] = 'You are not allowed to report content.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_manage'] = 'Manage Gallery';
$txt['permissionhelp_smfgallery_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Pictures, Approve Pictures';
$txt['cannot_smfgallery_manage'] = 'You are not allowed to manage gallery.';

//END SMF Gallery Text Strings         

//Begin Simple Blog Text Strings

//Permissions
$txt['permissiongroup_pblog'] = 'Simple Blog';
$txt['permissionname_pblog_add'] = 'Allow blog';
$txt['permissionhelp_pblog_add'] = 'If the user is allowed to have a blog.';
$txt['permissionname_pblog_edit_own'] = 'Edit own blog';
$txt['permissionhelp_pblog_edit_own'] = 'Allows the user to edit their blog entries.';
$txt['permissionname_pblog_edit_any'] = 'Edit any blog';
$txt['permissionhelp_pblog_edit_any'] = 'Allows the user to edit any blog entries.';
$txt['permissionname_pblog_delete_own'] = 'Delete own blog';
$txt['permissionhelp_pblog_delete_own'] = 'Allows the user to delete their blog entries.';
$txt['permissionname_pblog_delete_any'] = 'Delete any blog';
$txt['permissionhelp_pblog_delete_any'] = 'Allows the user to delete any blog entries.';
$txt['cannot_pblog_add'] = 'You are not allowed to add a blog entry.';
$txt['cannot_pblog_edit_own'] = 'You are not allowed to edit your blog entries.';
$txt['cannot_pblog_edit_any'] = 'You are not allowed to edit any blog entries.';
$txt['cannot_pblog_delete_own'] = 'You are not allowed to delete your blog entries.';
$txt['cannot_pblog_delete_any'] = 'You are not allowed to delete any blog entries.';
$txt['permissiongroup_pcomments'] = 'Simple Blog Comments';
$txt['permissionname_pblogc_add'] = 'Allow add Comments';
$txt['permissionhelp_pblogc_add'] = 'If the user is allowed to enter comments in others blogs.';
$txt['permissionname_pblogc_edit_own'] = 'Edit own comments';
$txt['permissionhelp_pblogc_edit_own'] = 'Allows the user to edit their own comments.';
$txt['permissionname_pblogc_edit_any'] = 'Edit any comment';
$txt['permissionhelp_pblogc_edit_any'] = 'Allows the user to edit any comments within their own blog.';
$txt['permissionname_pblogc_delete_own'] = 'Delete own comment';
$txt['permissionhelp_pblogc_delete_own'] = 'Allows the user to delete their own comments.';
$txt['permissionname_pblogc_delete_any'] = 'Delete any comment';
$txt['permissionhelp_pblogc_delete_any'] = 'Allows the user to delete any comments within their own blog.';
$txt['cannot_pblogc_add'] = 'You are not allowed to add comments.';
$txt['cannot_pblogc_edit_own'] = 'You are not allowed to edit your own comment.';
$txt['cannot_pblogc_edit_any'] = 'You are not allowed to edit any comment.';
$txt['cannot_pblogc_delete_own'] = 'You are not allowed to delete own comment.';
$txt['cannot_pblogc_delete_any'] = 'You are not allowed to delete any comment.';
$txt['blog_archive'] = 'Archive';
$txt['blog_add_new_blog'] = 'Add New Blog Entry';
$txt['blog'] = 'Blog';
$txt['blog_view_all'] = 'View All Blog Entries';
$txt['blog_is_private'] = 'This blog is currently set to private.';
$txt['blog_edit'] = '[Edit]';
$txt['blog_delete'] = '[Delete]';
$txt['blog_options'] = 'Blog Options';
$txt['blog_private'] = 'Private';
$txt['blog_public'] = 'Public';
$txt['blog_edit_blog'] = 'Edit Blog Entry';
$txt['cblog_add_comment'] = 'Add Comment';
$txt['cblog_edit_comment'] = 'Edit Comment';
$txt['blog_post_new'] = 'Post New Blog';
$txt['blog_subject'] = 'Subject:';
$txt['blog_body'] ='Body:';
$txt['cblog_delete'] = '[Delete Comment]';
$txt['recent_blog'] = 'Recent Blogs';
$txt['blog_entry_views'] = ' views';
$txt['archive'] = 'Archive';
$txt['blog_count'] = ' Blog entries';
$txt['page_view_count'] = ' Page views';
$txt['comment_count'] = ' Comments';
$txt['blog_stats'] = 'Blog Stats';
$txt['blog_menu'] = 'Blog Menu';
$txt['view_profile'] = 'View Profile';
$txt['blog_subject_pm'] = 'A comment has been posted to your blog';
$txt['blog_message_pm'] =  '{$username} has posted a comment to your blog titled {$subject}.<br />You can view the comment by clicking on the following link.<br />{$subject} (http://'.%20$scripturl%20.'?action=viewblog;u=%7B$userid%7D;id=%7B$id%7D)';
$txt['enable_recent_blogs'] = 'Enable recent blogs';
$txt['no_of_recent_blogs'] = 'Number of recent blogs';
$txt['no_of_days_recent_blogs'] = 'Number of days to show';
$txt['blogs_per_page'] = 'Number of blogs per page</div>';

//END Simple Blog Text Strings
//Begin SMF Links Text Strings
$txt['smflinks_menu'] = 'Links';
$txt['smflinks_admin'] = 'Links Configuration';


$txt['permissiongroup_smflinks'] = 'SMF Links';
$txt['permissionname_view_smflinks'] = 'View Links Page';
$txt['permissionhelp_view_smflinks'] = 'Sets if the user can view the links page.';
$txt['cannot_view_smflinks'] = 'You can not view the links page.';
$txt['permissionname_add_links'] = 'Add Links';
$txt['permissionhelp_add_links'] = 'If the user is allowed to submit links';
$txt['cannot_add_links'] = 'You can not add links.';
$txt['permissionname_edit_links'] = 'Edit Links';
$txt['permissionhelp_edit_links'] = 'If the user is allowed to edit links';
$txt['cannot_edit_links'] = 'You can not edit links.';
$txt['permissionname_delete_links'] = 'Delete Links';
$txt['permissionhelp_delete_links'] = 'If the user is allowed to delete links';
$txt['cannot_delete_links'] = 'You can not delete links.';
$txt['permissionname_approve_links'] = 'Approve Links';
$txt['permissionhelp_approve_links'] = 'If the user is allowed to approve links';
$txt['cannot_approve_links'] = 'You can not approve links.';
$txt['permissionname_links_auto_approve'] = 'Links Auto Approved';
$txt['permissionhelp_links_auto_approve'] = 'If the users links are auto approved when submitted.';
$txt['permissionname_rate_links'] = 'Rate Links';
$txt['permissionhelp_rate_links'] = 'If the user is allowed to rate links';
$txt['cannot_rate_links'] = 'You are not allowed to rate links.';
$txt['permissionname_links_manage_cat'] = 'Manage Categories';
$txt['permissionhelp_links_manage_cat'] = 'User can add/remove/edit/reorder categories';
$txt['cannot_links_manage_cat'] = 'You are not allowed to manage categories.';
//END SMF Links Strings         

//Begin Admin Notepad Text Strings
$txt['notepad_title'] = 'Admin Notepad';
$txt['notepad_des'] = 'Place to leave notes to your fellow admins on your forum.';
$txt['notepad_save'] = 'Save Notes';


//END Admin Notepad Text Strings         

//Begin SMF Trader System Text Strings
$txt['smftrader_title'] = 'SMF Trader System';
$txt['smftrader_version'] = '1.0';
//Display text strings
$txt['smftrader_profile'] = 'Trade Count: ';
//Profile text strings
$txt['smftrader_submitfeedback'] = 'Submit feedback for ';
$txt['smftrader_totalfeedback'] = 'Total  Positive Feedback: ';
$txt['smftrader_positivefeedbackpercent'] = 'Positive Feedback: ';
$txt['smftrader_positivefeedback'] = '<span style="color: #006400;">Positive Feedback: </span>';
$txt['smftrader_neutralfeedback'] = 'Neutral Feedback: ';
$txt['smftrader_negativefeedback'] = '<span style="color: #FF0000;">Negative Feedback: </span>';
//Start trader.template

//Submit Transaction Rating
$txt['smftrader_whoareu'] = 'You were the:';
$txt['smftrader_buyer'] = 'Buyer';
$txt['smftrader_seller'] = 'Seller';
$txt['smftrader_trade'] = 'Trade';


$txt['smftrader_transaction'] = 'Transaction Rating:';
$txt['smftrader_positive'] = 'Positive';
$txt['smftrader_neutral'] = 'Neutral';
$txt['smftrader_negative'] = 'Negative';

$txt['smftrader_shortcomment'] = 'Short comment on your transaction:';
$txt['smftrader_shortcommentnote'] = 'Max: 100 characters';
$txt['smftrader_topicurl'] = 'Topic URL:';
$txt['smftrader_longcomment'] = 'Long comment on your transaction:';


//Rating Overview
$txt['smftrader_allfeedback'] = 'View All Feedback';
$txt['smftrader_sellerfeedback'] = 'View Seller Feedback';
$txt['smftrader_buyerfeedback'] = 'View Buyer Feedback';
$txt['smftrader_tradefeedback'] = 'View Trade Feedback';

//Page Titles
$txt['smftrader_feedbacktitle'] = 'SMF Trader System - Trader Overview';
$txt['smftrader_submittitle'] = 'SMF Trader System - Submit Feedback';
$txt['smftrader_reporttitle'] = 'SMF Trader System - Report Bad Feedback';


$txt['smftrader_contact'] = 'Contact';
$txt['smftrader_viewprofile'] = 'View full profile.';
$txt['smftrader_sendpm'] = 'Send this user a personal message.';
//End trader.template

//Permissions
$txt['permissiongroup_smftrader'] = 'SMF Trader';
$txt['permissionname_smftrader_feedback'] = 'Allow submit feedback';
$txt['permissionhelp_smftrader_feedback'] = 'Allows the user to submit trader fating feedback.';
$txt['permissionname_smftrader_deletefeed'] = 'Allow delete feedback.';
$txt['permissionhelp_smftrader_deletefeed'] = 'Allows the user to delete feedback.';
$txt['cannot_smftrader_feedback'] = 'You are not allowed to submit feedback.';
$txt['cannot_smftrader_deletefeed'] = 'You are not allowed to delete feedback.';

//END SMF Trader System Text Strings         

//text for Ultimate Shoutbox
$txt['shoutbox_0'] = 'Shoutbox';
$txt['shoutbox_1'] = 'Shoutbox Archive';
$txt['shoutbox_2'] = 'Delete shouts older than:';
$txt['shoutbox_3'] = 'days';
$txt['shoutbox_4'] = 'Delete all shouts over your current limit of';
$txt['shoutbox_5'] = 'Delete';
$txt['shoutbox_6'] = 'Name';
$txt['shoutbox_7'] = 'Email';
$txt['shoutbox_8'] = 'Message';
$txt['shoutbox_9'] = 'Shout';
$txt['shoutbox_10'] = 'Sorry, if you are a guest you must enter both your name and your email address';
$txt['shoutbox_11'] = 'Whoops, looks like you forgot to fill in one of the Shoutbox fields.  Please try again.';
$txt['shoutbox_12'] = 'Sorry, if you are a guest you must enter a valid email address when using the Shoutbox.';
$txt['shoutbox_13'] = 'Sorry, but you do not have the proper priveledges to delete that.';
$txt['shoutdir'] = 'Shout Direction';
$txt['shoutbox_19'] = 'Ascending';
$txt['shoutbox_20'] = 'Descending';
$txt['shoutsep'] = 'Shout Separator';
$txt['enablearchiveshout'] = 'Allow people to shout from the archive page?';
$txt['shoutlimit'] = 'Number of shouts to return';
$txt['shoutmaxchr'] = 'Max number of characters per line';
$txt['shoutsplitchr'] = 'Character number to split long words at (usually 3 less than max)';
$txt['enablescrollshout'] = 'Enable scrolling';
$txt['shoutbox_27'] = 'The following options are only available is scrolling is activated:';
$txt['shoutscrollwidth'] = 'Scroll box width (pixels)';
$txt['shoutscrollheight'] = 'Scroll box height (pixels)';
$txt['shoutscrollspeed'] = 'Scrolling speed';
$txt['shout_noGuestEmail'] = 'Don\'t require email address for guests';
$txt['shout_enableXML'] = 'Enable javascript XML refreshing of the shoutbox. (This will increase server load)';
$helptxt['shout_enableXML'] = 'Turning on this option will make the shoutbox refresh automatically every five seconds - but will increase the server load considerably.';
$txt['shoutbox_31'] = 'slowest';
$txt['shoutbox_32'] = 'slower';
$txt['shoutbox_33'] = 'medium';
$txt['shoutbox_34'] = 'faster';
$txt['shoutbox_35'] = 'fastest';
$txt['shoutscrolldir'] = 'Scrolling direction';
$txt['shoutbox_37'] = 'up';
$txt['shoutbox_38'] = 'down';
$txt['shoutbox_39'] = 'left';
$txt['shoutbox_40'] = 'right';
$txt['shoutscrolldelay'] = 'Scroll Delay (milliseconds - normal is 60)';
$txt['shoutbox_42'] = 'Delete Options';
$txt['shoutbox_43'] = 'View All';
$txt['permissiongroup_shout'] = 'Shoutbox';
$txt['permissionname_make_shout'] = 'Can Shout';
$txt['permissionname_delete_shout'] = 'Can Delete Shouts';
$txt['shout_delete_selected'] = 'Delete Selected';
$txt['cannot_delete_shout'] = 'You do not have permission to delete shouts.';
$txt['cannot_make_shout'] = 'You do not have permission to shout.';
$txt['MemberColorLinkHeadline'] = 'Member Color Link';
$txt['MemberColorLink'] = 'The display of the threadindex';
$txt['MemberColorThreadOwner'] = 'The thread owner at the boardindex';
$txt['MemberColorThreadLastPost'] = 'The last post member at the messageindex';
$txt['MemberColorThreadChild'] = 'The last post member at the childboard';
$txt['MemberColorBoardindex'] = 'The last post member at the boardindex';
$txt['MemberColorBirthday'] = 'The Birthday Links of the Members (Calendar and Boardindex)';
$txt['MemberColorRecentOwner'] = 'Recent posts, threadowner';
$txt['MemberColorRecentLastPost'] = 'Recent posts, the last poster';
$txt['MemberColorInbox'] = 'Change colors in the Instant Messages Inbox';
$txt['MemberColorOutbox'] = 'Change colors in the Instant Messages Outbox';
$txt['MemberColorLatestMember'] = 'Color the Latest Member';
$txt['MemberColorStats'] = 'Change color in the Boardstats.';
$txt['MemberColorWhoIsOnline'] = 'Color the Who is Online (Messagesindex and Threadindex)';
//Begin SMF Gallery Text Strings
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '1.0 Pro';
$txt['smfgallery_admin'] = 'Gallery Configuration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';

$txt['permissionname_smfgallery_view'] = 'View SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Allows the user to view the Gallery';
$txt['cannot_smfgallery_view'] = 'You are not allowed to view the Gallery';

$txt['permissionname_smfgallery_add'] = 'Add Picture';
$txt['permissionhelp_smfgallery_add'] = 'Allows the user to add a picture.';
$txt['cannot_smfgallery_add'] = 'You are not allowed to add a picture.';

$txt['permissionname_smfgallery_bulk'] = 'Bulk Uploads';
$txt['permissionhelp_smfgallery_bulk'] = 'Allows the user to use the bulk upload feature.';
$txt['cannot_smfgallery_bulk'] = 'You are not allowed to bulk upload.';

$txt['permissionname_smfgallery_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit their own picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit that picture.';

$txt['permissionname_smfgallery_delete'] = 'Delete own Picture';
$txt['permissionhelp_smfgallery_delete'] = 'Allows the user to delete their own picture.';
$txt['cannot_smfgallery_delete'] = 'You are not allowed to delete that picture.';

$txt['permissionname_smfgallery_ratepic'] = 'Rate Picture';
$txt['permissionhelp_smfgallery_ratepic'] = 'Allows the user to rate a picture.';
$txt['cannot_smfgallery_ratepic'] = 'You are not allowed to rate that picture.';

$txt['permissionname_smfgallery_editcomment'] = 'Edit own Comment';
$txt['permissionhelp_smfgallery_editcomment'] = 'Allows the user to edit their own comments.';
$txt['cannot_smfgallery_editcomment'] = 'You are not allowed to edit that comment.';

$txt['permissionname_smfgallery_comment'] = 'Leave Comments';
$txt['permissionhelp_smfgallery_comment'] = 'Allows the user to leave comments on a picture.';
$txt['cannot_smfgallery_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfgallery_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_smfgallery_report'] = 'Allows the user to report pictures and comments.';
$txt['cannot_smfgallery_report'] = 'You are not allowed to report content.';

$txt['permissionname_smfgallery_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_smfgallery_autocomment'] = 'Comments do not need to wait for approval.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_usergallery'] = 'Personal Gallery';
$txt['permissionhelp_smfgallery_usergallery'] = 'Allows the user to have a personal gallery';
$txt['cannot_smfgallery_usergallery'] = 'You are not allowed to have a gallery.';

$txt['permissionname_smfgallery_manage'] = 'Manage Gallery';
$txt['permissionhelp_smfgallery_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Pictures, Approve Pictures';
$txt['cannot_smfgallery_manage'] = 'You are not allowed to manage gallery.';

//END SMF Gallery Text Strings         


//Empty Boards Notifications v1.0 - Created by Sindorf
//Admin - Text Strings
$txt['EmptyBoards'] = 'Empty Boards Notifications';
$txt['EnableLinkMode'] = 'Enable Link Mode in Board Index';
$txt['EnableEmptyBoards'] = 'Enable Empty Boards Notifications';
$txt['EnableMessageIndex'] = 'Enable Empty Boards Notification in Message Index';
//Forum - Text Strings can be found in index.english.php

$txt['permissiongroup_arcade'] = "Arcade";
$txt['cannot_view_arcade'] = "You arent allowed to view arcade, sorry!";
$txt['permissionhelp_view_arcade'] = "Allow this if you want this group to access arcade";
$txt['permissionname_view_arcade'] = "Can view arcade (main)";
$txt['cannot_play_arcade'] = "You arent allowed to play on arcade, sorry!";
$txt['permissionhelp_play_arcade'] = "Allow this if you want this group to play in arcade";
$txt['permissionname_play_arcade'] = "Can play in arcade";
$txt['cannot_submit_score'] = "You arent allowed to submit scores on arcade, sorry!";
$txt['permissionhelp_submit_score'] = "Allow this if you want ALLOW this group to submit scores in arcade";
$txt['permissionname_submit_score'] = "Can Submit scores in arcade";
$txt['arcade_highscores_per_page'] = "Highscores per page in arcade";
$txt['admin_arcade'] = "Arcade";
$txt['admin_arcade2'] = "Arcade Admin";
$txt['cannot_admin_arcade'] = "You arent allowed to Admin Arcade!";
$txt['permissionname_admin_arcade'] = "Can Admin Arcade";
$txt['cannot_challenge_send'] = "You arent allowed to send challenges arcade, sorry!";
$txt['permissionhelp_challenge_send'] = "Allow this if you want this group to send challenges arcade";
$txt['permissionname_challenge_send'] = "Can send challenges";
$txt['cannot_challenge_view'] = "You arent allowed to view challenges arcade, sorry!";
$txt['permissionhelp_challenge_view'] = "Allow this if you want this group to view challenges arcade";
$txt['permissionname_challenge_view'] = "Can view challenges";
//Begin SMF Staff Page Text Strings
$txt['smfstaff_stafflist'] = 'Staff List';
$txt['smfstaff_admin'] = 'Staff Configuration';

$txt['permissionname_view_stafflist'] = 'View Staff List';
$txt['permissionhelp_view_stafflist'] = 'Staff List shows all members on your Staff. You can change which member groups are shown by going to Layout and Options and look for SMF Staff filter. This permission allows you to toggle who can view the staff list.';
$txt['cannot_view_stafflist'] = 'You can not view the staff list.';

$txt['staff_filter'] = 'SMF Staff - Filter groups on staff page. <br />(seperate each group name by a <b>comma</b>.)';   

//Begin User Email System Text Strings
$txt['user_email_title'] = 'User Email System';
$txt['permissionname_send_useremail'] = 'Send User Email';
$txt['permissionhelp_send_useremail'] = 'See if the user is allowed to send email.';
$txt['cannot_send_useremail'] = 'You can not send email.';
//END Begin User Email System Text Strings         

//Begin Regbar Text Strings
$txt['regbar_text'] = 'It appears you have not registered with our community. To register please click here ...';
//END Regbar Text Strings         

$txt['topblock_title'] = 'Top Block';
$txt['topblock'] = 'Enter what you want to appear on top of this board.';
//Begin SMF Gallery  Board Index Modt Strings
$txt['gallerymod_recent_pic'] = 'Recent Pictures';
//END SMF Gallery  Board Index Mod Strings         

//Begin Global Headers and Footers Text Strings
$txt['globalhf_title'] = 'Global Headers and Footers';
//END Global Headers and Footers Text Strings

//Begin SMF Gallery Profile Link Text Strings
$txt['smfgallery_profilelink'] = 'View Gallery';
$txt['smfgallery_profile_title'] = 'User Images';
//END SMF Gallery Profile Link Text Strings          

// Begin RSS FeedPoster Text Strings
$txt['smfrssposter_admin'] = 'Feed Poster Configuration';

// END  RSS FeedPoster      

// Begin RSS FeedPoster Text Strings
$txt['smfrssposter_admin'] = 'Feed Poster Configuration';

// END  RSS FeedPoster      


// Begin modification - Increase/Decrease postbox size
$txt['postbox_incdec'] = '+/- buttons change postbox size by';
$txt['postbox_incdec_rows'] = 'rows';
// End modification
$txt['float'] = 'Float';

// Affiliates
$txt['affiliates_modname'] = 'Affiliates';
$txt['permissionname_affiliates_view'] = 'View Affiliates';
$txt['affadmin'] = 'Affiliates Administration';
$txt['affadmd'] = 'Configure and Add your Affiliates.';
$txt['affconf'] = 'Configuration';
$txt['affacdc'] = 'Activate in Index:';
$txt['naffsn'] = 'How many Affiliates?';
$txt['affnlin'] = 'Links/Line:';
$txt['affnlindex'] = 'Lines in Index:';
$txt['affshowio'] = 'View In-Out:';
$txt['affshowbn'] = 'View Banners:';
$txt['affsort'] = 'Order by IN?';
$txt['affauto'] = 'Auto-Confirmation:';
$txt['affreq'] = 'Requirements:';
$txt['affcrank'] = 'PageRank Code:';
$txt['affid'] = 'ID';
$txt['affname'] = 'Name WEB';
$txt['affurl'] = 'URL';
$txt['affurldesc'] = 'Description:';
$txt['affurlbann'] = 'URL of Banner:';
$txt['affemail'] = 'Contact EMAIL';
$txt['affsend'] = 'Out';
$txt['affreceive'] = 'In';
$txt['affsndrec'] = 'In-Out:';
$txt['afftot'] = 'Totals:';
$txt['affconfir'] = 'Confirmed';
$txt['affyouaffs'] = 'Affiliate to';
$txt['affyouwant']  = 'Do you want to affiliate?';
$txt['affmsgok'] = '<b>Process Completed...</b><br /><br />';
$txt['affmsg1'] = 'Copy the following code in your web respecting the Affiliated IDdentifier.<br />Once verified by one of our administrators, we will activate your link.<br />Thanks.';
$txt['afferr1'] = 'WEB indexed previously.';
$txt['afferr2'] = 'Incorrect or nonexistent datas.';
$txt['afferr3'] = 'Incorrect EMAIL format.';
for ($cnum = 1; $cnum < ($modSettings['naffsn'] + 1); $cnum++)
{
$txt['affname'.$cnum.''] = $txt['affname'].':';
$txt['affid'.$cnum.''] = $txt['affid'].':';
$txt['affurl'.$cnum.''] = $txt['affurl'].':';
$txt['affurldesc'.$cnum.''] = $txt['affurldesc'];
$txt['affurlbann'.$cnum.''] = $txt['affurlbann'];
$txt['affemail'.$cnum.''] = $txt['affemail'].':';
$txt['affsend'.$cnum.''] = $txt['affsend'].':';
$txt['affreceive'.$cnum.''] = $txt['affreceive'].':';
$txt['affconfir'.$cnum.''] = $txt['affconfir'].':';
}
$txt['affnoconf1'] = 'Affiliate';
$txt['affnoconf2'] = 'waiting for APPROVAL.';
$txt['affvar'] = 's.';
// Affiliates - End
$txt['rename_topic'] = 'Rename Topic';
$txt['rename_topic_no_id'] = 'You must select a valid topic.';
$txt['rename_topic_current_subject'] = 'Current Subject';
$txt['rename_topic_new_subject'] = 'New Subject';

// Paid Subscriptions Mod
$txt['paid_subscriptions'] = 'Paid Subscriptions';
$txt['subscriptions'] = 'Subscriptions';
$txt['subscription'] = 'Subscription';
$txt['paid_subs_desc'] = 'Below is a list of all the subscriptions which are available on this forum.';
$txt['paid_subs_none'] = 'There are currently no paid subscriptions available!';

$txt['paid_current'] = 'Existing Subscriptions';

// Some errors.
$txt['paypal_could_not_connect'] = 'Could not connect to paypal server';
$txt['paypal_unverified_subject'] = 'Unverified Paypal Transaction';
$txt['paypal_unverified_body'] = 'A user attempted to add a paid subscription to your forum, but the transaction was unverified.';
$txt['paid_sub_not_active'] = 'That subscription is not taking any new users!';
$txt['paid_disabled'] = 'Paid subscriptions are currently disabled!';
$txt['worldpay_password_wrong'] = 'Payment ignored as WorldPay password is incorrect - please ensure you have the correct callback password set.';
$txt['2co_password_wrong'] = 'Payment ignored as 2co.com secret word is incorrect - please ensure you have the correct secret word and 2co.com ID set.';
$txt['paid_unknown_transaction_type'] = 'Unknown transaction type in ipn.php';
$txt['paid_missing_transaction_type'] = 'Cannot find transaction file %s.php';
$txt['paid_empty_member'] = 'Paid subscription handler could not recover member ID';
$txt['paid_could_not_find_member'] = 'Paid subscription handler could not find member with ID: %d';
$txt['paid_count_not_find_subscription'] = 'Paid subscription handler could not find subscription for member ID: %1$s, subscription ID: %2$s';
$txt['nochex_could_not_connect'] = 'Could not connect to nochex server';
$txt['nochex_unauthorised_subject'] = 'Unauthorised nochex Transaction';
$txt['nochex_unauthorised_body'] = 'A user attempted to add a paid subscription to your forum, but the transaction was rejected.';

// Invite MOD.
$txt['invite_title'] = 'Invite';
$txt['invite_only'] = 'Only allow registrations through invitation.';
$txt['invite_menu_title'] = 'Invite menu title.';
$txt['invite_days'] = 'Number of days for members to get a new invite credit.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_max'] = 'Max number of invite credits.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_expire'] = 'Number of days for an invite key to be valid.<div class="smalltext">(0 for no limit)</div>';
$txt['invite_group_settings'] = 'Set group permission for sending invites';

$txt['invite_email_disable'] = 'Disable mailing feature.';
$txt['invite_email_subject'] = 'E-mail subject.';
$txt['invite_email_message'] = 'E-mail message.
<div class="smalltext">{invitee} = Recipient\'s name</div>
<div class="smalltext">{inviter} = Inviter\'s memebername</div>
<div class="smalltext">{forum} = Forum name</div>
<div class="smalltext">{link} = Link to registration page (with key)</div>
<div class="smalltext">{message} = Message by inviter</div>';
$txt['invite_default_email_subject'] = '{invitee}, you have received an invitation to {forum} by {inviter}!';
$txt['invite_default_email_message'] = 'Hi {invitee},

You have received an invitation to {forum}, click the following link to register:

{link}

{inviter} also sent this comment to you:

{message}


This message is not spam.';

$txt['invite_someone'] = 'Invite someone';
$txt['invite_info'] = 'You can invite someone new if you have invite credits by making a new key and sending them the link.';
$txt['invitees'] = 'Invitees';
$txt['invitees_info'] = 'The following list which members you have invited.';
$txt['no_invitees'] = 'There are no invitees to display';
$txt['invite_unlimited'] = 'unlimited';
$txt['invite_max_reached'] = 'max reached';
$txt['make_new_invite_key'] = 'Make new invite key';
$txt['invite_credits'] = 'Invite credits';
$txt['next_invite_credit'] = 'Next credit';
$txt['invite_key'] = 'Invite Key';
$txt['invite_email'] = 'Invitation E-mail';
$txt['invite_send_email'] = 'Send invitation e-mail';
$txt['invite_expires'] = 'Expires';
$txt['invited_by'] = 'Invited by';
$txt['invitees_count'] = 'Members invited';
$txt['show_invitees'] = 'Show members invited by this person';

$txt['invite_email_info'] = 'Enter the name and email of the person you wish to invite, and the invite key and link will be sent to them.';
$txt['invite_recipient_name'] = 'Recipient\'s name';
$txt['invite_recipient_email'] = 'Recipient\'s e-mail';
$txt['invite_message'] = 'Personal message to recipient';

$txt['invite_no_name'] = 'You did not enter a name.';
$txt['invite_no_email'] = 'You did not enter a valid e-mail address.';
$txt['cannot_send_invite'] = 'Sorry, the invite key could not be sent (already sent maybe?).';

$txt['permissiongroup_invite'] = 'Invite';
$txt['permissionname_invite'] = 'Invite';
$txt['permissionhelp_invite'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to invite people to the forum so they can register.';
$txt['permissionname_invitees'] = 'View invitees';
$txt['permissionhelp_invitees'] = 'This will show a list of members that the user has invited to the forum using the Invite MOD.';
$txt['permissionname_invitees_own'] = 'Own invitees';
$txt['permissionname_invitees_any'] = 'Any invitees';

$txt['cannot_invite'] = 'Sorry, you\'re not allowed to send invitations.';
$txt['cannot_invite_as_other'] = 'Sorry, you can\'t send invitations as someone else.';
$txt['cannot_invitees_any'] = 'Sorry, you\'re not allowed to view this member\'s invitees.';
$txt['registration_invite_only'] = 'Sorry, registration is by invitation only.<br /><br />If you have a valid invite key enter it below:<br /><form method="POST" action="index.php?action=register"><input type="text" name="invite_key" size="40"> <input type="submit" value="Register"></form>';
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';

$txt['top_inviters'] = 'Top Inviters (by Invitees)';
$txt['top_inviters_by_posts'] = 'Top Inviters (by Invitees\' Posts)';
// End Invite MOD.


// --- Begin modification - Updated registration agreement ---
$txt['agreement_no_exist'] = 'The registration agreement was not found!';
$txt['agreement_off'] = 'Registration agreements are turned off!';
$txt['agreement_updated'] = 'Updated Registration Agreement';
$txt['agreement_updated_descr'] = 'We have recently updated our registration agreement. In order to use our forum, you must agree to its terms, so please read through it carefully:';
$txt['agree'] = 'I Agree';



//View Single PM
$txt['singlepm_prange'] = 'Parameter p out of range. Please Go back and try again';
$txt['singlepm_vmsg'] = 'Viewing Message #';
$txt['enableSinglePM'] = 'Enable Single Personal Message View.';

//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';

$txt['youtube'] = 'YouTube';

//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';

?>
Title: Re: Updated Registration Agreement
Post by: Mick. on March 19, 2007, 11:32:19 PM
Code is 5 from the bottom.  I didnt see anything wrong with it?  Any ideas?
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 19, 2007, 11:35:47 PM
Quote from: BlueDevil on March 19, 2007, 11:32:19 PM
Code is 5 from the bottom.  I didnt see anything wrong with it?  Any ideas?

The new version should read like this:

// --- Begin modification - Updated registration agreement ---
$txt['agreement_no_exist'] = 'The registration agreement was not found!';
$txt['agreement_off'] = 'Registration agreements are turned off!';
$txt['agreement_updated'] = 'Updated Registration Agreement';
$txt['agreement_updated_descr'] = 'We have recently updated our registration agreement. In order to use our forum, you must agree to its terms, so please read through it carefully:';
$txt['agree'] = 'I Agree';
$txt['reset_agreement'] = 'Reset the agreement status for everyone';
$txt['reset_agreement_descr'] = 'This will force all users to re-read the registration agreement, and agree to it in order to continue using the forum.';

// --- End modification

Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 19, 2007, 11:36:32 PM
Oh my god, that's a huge Modifications.english.php file! :o

Anyways, you may uninstall the mod (ignore the error), and then remove this segment from Modifications.english.php manually:

// --- Begin modification - Updated registration agreement ---
$txt['agreement_no_exist'] = 'The registration agreement was not found!';
$txt['agreement_off'] = 'Registration agreements are turned off!';
$txt['agreement_updated'] = 'Updated Registration Agreement';
$txt['agreement_updated_descr'] = 'We have recently updated our registration agreement. In order to use our forum, you must agree to its terms, so please read through it carefully:';
$txt['agree'] = 'I Agree';


Then, install the new version ;)
Title: Re: Updated Registration Agreement
Post by: Mick. on March 19, 2007, 11:39:06 PM
Quote from: Daniel15 on March 19, 2007, 11:36:32 PM
Oh my god, that's a huge Modifications.english.php file! :o

Anyways, you may uninstall the mod (ignore the error), and then remove this segment from Modifications.english.php manually:

// --- Begin modification - Updated registration agreement ---
$txt['agreement_no_exist'] = 'The registration agreement was not found!';
$txt['agreement_off'] = 'Registration agreements are turned off!';
$txt['agreement_updated'] = 'Updated Registration Agreement';
$txt['agreement_updated_descr'] = 'We have recently updated our registration agreement. In order to use our forum, you must agree to its terms, so please read through it carefully:';
$txt['agree'] = 'I Agree';


Then, install the new version ;)

Thats what i thought.  Thnx Daniel.

...btw   theres a few mods that are not installed anymore that i just found in that file. Im deleting them as well.
Title: Re: Updated Registration Agreement
Post by: Mick. on March 19, 2007, 11:45:08 PM
That worked thanx Daniel!
Title: Re: Updated Registration Agreement
Post by: Mick. on March 20, 2007, 07:36:22 PM
OK. I had to dump this mod for now. I noticed that for the past week i havent got any new member arrivals.  I did my homework and noticed that this mod is not sending out emails for registration at all.

I tried using the "Invite" mod and it didnt send out emails either.   .....so i uninstalled the "agreement" mod and now im able to invite and send registration emails out when members sign up.

There is something with the "agreement" mod that is blocking my emails out.

Any ideas?  Did i missed a setting or something?
Title: Re: Updated Registration Agreement
Post by: brianjw on March 20, 2007, 08:27:04 PM
I dumped mine because it didn't work. :-\
Title: Re: Updated Registration Agreement
Post by: TrueSatan on March 20, 2007, 08:38:44 PM
Quote from: brianjw on March 20, 2007, 08:27:04 PM
I dumped mine because it didn't work. :-\

Like almost all mods if a particular forum has other mods installed then conflicts may ensue...this isn't the fault of the mod...it is because of such issues that you are advised to back up your files before adding a new mod.

Your call for help earlier need not have taken place had you firstly, tried it on a test forum (I try mods on both a brand new, mod free, test forum and a forum that is a copy of the live/production forum I intend to use the mod on) and secondly backed up your files prior to installation.

Saying that you dumped it because it didn't work makes it sound as though the mod is at fault...that does not appear to be the case.

On my forums this mod is working properly and without issues of any kind...thanks to Daniel's efforts in coding it.
Title: Re: Updated Registration Agreement
Post by: Mick. on March 20, 2007, 08:46:36 PM
Quote from: TrueSatan on March 20, 2007, 08:38:44 PM
Quote from: brianjw on March 20, 2007, 08:27:04 PM
I dumped mine because it didn't work. :-\

Like almost all mods if a particular forum has other mods installed then conflicts may ensue...this isn't the fault of the mod...it is because of such issues that you are advised to back up your files before adding a new mod.

Your call for help earlier need not have taken place had you firstly, tried it on a test forum (I try mods on both a brand new, mod free, test forum and a forum that is a copy of the live/production forum I intend to use the mod on) and secondly backed up your files prior to installation.

Saying that you dumped it because it didn't work makes it sound as though the mod is at fault...that does not appear to be the case.

On my forums this mod is working properly and without issues of any kind...thanks to Daniel's efforts in coding it.

I have 78 working mods in my forum Hhehehehe  obviously 1 had to crack.

Yep. Is not the mod's fault at all.  Like i said.... i uninstalled it for now.
Title: Re: Updated Registration Agreement
Post by: TrueSatan on March 20, 2007, 09:53:29 PM
 Actually BlueDevil I was able to replicate what looked to be the same problem you had on a test forum...I copied in some files I'd been working on and that upset the mod.

I couldn't uninstall via the package manager but as I had backups that wasn't a problem. Once the mod was removed I re-installed it and had no further problems.

I wonder if an uninstall, check to make sure all was really uninstalled, then a re-install might help you too.
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 20, 2007, 10:46:38 PM
hmmm i tried to uninstall on my test site and i had a failures with index.php and load.php so i manually made those changes.  then i accepted the failures to uninstall.

however, when i tried to register as a test member i get this member.  any ideas:

Can't DROP 'agreement_accepted'; check that column/key exists
File: /forum/Packages/temp/uninstallScript.php
Line: 11

This is line 11 of the uninstallScript.php file:

require_once(dirname(__FILE__) . '/SSI.php');
Title: Re: Updated Registration Agreement
Post by: TrueSatan on March 20, 2007, 11:13:12 PM
 This one looks like it needs Daniel to sort it out but I'd be awfully tempted to empty that temp folder (having done a copy of the contents just in case.)
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 20, 2007, 11:19:00 PM
I renamed that file to the uninstall script would not find it and the test registration just said there is a database error, see admin.
Title: Re: Updated Registration Agreement
Post by: TrueSatan on March 20, 2007, 11:27:47 PM
 Are any of the other parts of the install left over in the files of your test forum...I'd get them out of the way if there are. Presumably (and seeing as It's you I'm pretty sure the answer will be a big yes) you've got a database backup from before the install...have a look and see what tables have been added...

I'd try it again having cleared all the file leftovers from the install and if there is still an error think about dropping any database tables it might have added...where's Daniel when we need him.
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 20, 2007, 11:29:48 PM
Quote from: TrueSatan on March 20, 2007, 11:27:47 PM
Are any of the other parts of the install left over in the files of your test forum...I'd get them out of the way if there are. Presumably (and seeing as It's you I'm pretty sure the answer will be a big yes) you've got a database backup from before the install...have a look and see what tables have been added...

I'd try it again having cleared all the file leftovers from the install and if there is still an error think about dropping any database tables it might have added...where's Daniel when we need him.

yeah i think this is going to be my next step, thank you!  I'll let you know in a bit. . .
Title: Re: Updated Registration Agreement
Post by: TrueSatan on March 20, 2007, 11:41:01 PM
 In a bit will have to be in a fair bit...it's 4 a.m. here and I'm beat so off to bed.

Good luck and I'll have my fingers crossed for you.
Title: Re: Updated Registration Agreement
Post by: Daniel15 on March 21, 2007, 12:54:30 AM
Quote from: BlueDevil on March 20, 2007, 07:36:22 PM
OK. I had to dump this mod for now. I noticed that for the past week i havent got any new member arrivals.  I did my homework and noticed that this mod is not sending out emails for registration at all.

I tried using the "Invite" mod and it didnt send out emails either.   .....so i uninstalled the "agreement" mod and now im able to invite and send registration emails out when members sign up.

There is something with the "agreement" mod that is blocking my emails out.

Any ideas?  Did i missed a setting or something?
The mod could be interfering with the sending of emails, but it really shouldn't be... I'll investigate this on Friday (when I have some free time), and see what I can find.

To be honest, I have no idea why this is happening - This mod is very simple (look at the install.xml file), so I have no idea what could possibly go wrong...
Title: Re: Updated Registration Agreement
Post by: RoarinRow on March 21, 2007, 02:32:18 AM
Quote from: TrueSatan on March 20, 2007, 11:41:01 PM
In a bit will have to be in a fair bit...it's 4 a.m. here and I'm beat so off to bed.

Good luck and I'll have my fingers crossed for you.

I just rebuilt my test site.  I needed to do it anyway.   :)
Title: Re: Updated Registration Agreement
Post by: yacko3d on May 22, 2007, 06:00:02 PM
I think I'm missing something. I've installed the mod, and everything appears to be fine. However I see no obvious way to mark all members as having read the agreement. Also, I cannot see the setting in the admin panel to mark the agreement as changed.

"I feel like I'm taking crazy pills!!!"

:-)

Any help is appreciated.


Quote from: Daniel15 on March 14, 2007, 01:07:34 AM

- On installation, mark all members as having read the agreement
- When a new user registers, do not prompt them to agree (as they already did during registration)
- Fixed minor error reported by RoarinRow (http://www.simplemachines.org/community/index.php?topic=157196.msg1002457#msg1002457)
- Instead of checking last modified date of changelog.txt, a setting has been added to the admin panel to mark the agreement as changed

- Moved code from index.php to loadUserSettings function in Load.php
- The install script checks to see if the column already exists


You'll need to uninstall version 0.1 before installing 1.0 (the latest one)

Edit: Clarified changelog
Title: Re: Updated Registration Agreement
Post by: Daniel15 on May 25, 2007, 08:20:23 AM
QuoteHowever I see no obvious way to mark all members as having read the agreement
This is done automatically at installation. To do it manually, run this query in phpMyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0)):

UPDATE smf_members SET agreement_accepted = 1


QuoteAlso, I cannot see the setting in the admin panel to mark the agreement as changed.
If you go to the admin panel, under Registration → Registration Agreement, you'll see a "Reset the agreement status for everyone" tickbox :).
Title: Re: Updated Registration Agreement
Post by: LeAngel on July 13, 2007, 08:19:00 PM
Hi,

I need some help please. I have been trying to get this mod to work off and on for the last month. I didn't won't to bother anyone, but now I am out of ideas. I am running no other mods, I have updated the forum from 1.1.1 to 1.1.2, but it still says 1.1.1 on the botton so I am not sure if that is one problem that is stopping the mod from working. I have installed the latest mod version, it installs without any problems but I don't get the tick box on the Registration Agreement.

Any ideas would be very much appreciated . Thanks.
Title: Re: Updated Registration Agreement
Post by: Mr.Rattitude on July 26, 2007, 11:30:30 AM
I believe I've found an issue with this mod ... it can lead to some embarassing error pages.

Here are the basics to recreate the bug:

Hope that makes sense ... I'm not much of a coder so I really have no idea where to even start to debug this issue.  Any help would be much appreciated as I plan to open the forums in less than a week and I really like this mod.  ;D
Title: Re: Updated Registration Agreement
Post by: Daniel15 on July 27, 2007, 09:51:19 PM
Quotehave installed the latest mod version, it installs without any problems but I don't get the tick box on the Registration Agreement.
Are you using the default SMF theme? Have you tried it on the default theme?

QuoteLog in with another member from a bookmark or historical URL in the address bar and your get a "Forbidden" error page.
What is the exact URL of this bookmark?
If you don't use the bookmark, does logging out, logging in, and browsing around normally work?
Title: Re: Updated Registration Agreement
Post by: Mr.Rattitude on July 27, 2007, 10:30:33 PM
The URL is (exactly): www.ratchatter.com/index.php

It works fine as long as you do not use the bookmark or the history entry.  Logging out and logging back in works fine. Typing the exact URL in seems to work.

We are currently using the index.html page as an intro ... and will likely keep using it.  I've manually edited the DB to have each user accept the Registration Agreement currently.  The mod is not "uninstalled", but its functionality will  not be used until I can get this issue sorted out. :(

We are just concerned with users bookmarking the "php" page over the "html" page.  I know I would normally do that as a regular user of a forum.

Title: Re: Updated Registration Agreement
Post by: boombari2 on November 26, 2007, 10:02:21 AM
hi to all,

can i apply this mod to 1.1.3 ?
is this http://custom.simplemachines.org/mods/index.php?mod=727 the latest version ?

Thanks :)
Title: Re: Updated Registration Agreement
Post by: brianjw on November 26, 2007, 05:40:53 PM
It says it is compatible so give it a try. If you get errors, manually install it by using the Mod Parser (http://www.gamerzgarage.com/package.php)
Title: Re: Updated Registration Agreement
Post by: BHT on February 18, 2008, 09:01:47 PM
I had this mod installed for awhile, and it works great.

But since I got version 1.1.4, new people (and some old) are having problems logging into their account.

Is there an updated version for this? Will there be one?

Thank you.
Title: Re: Updated Registration Agreement
Post by: Eclipse16V on April 30, 2008, 11:52:18 AM
Run it on SMF 2.0 Beta 3 Public ???
Title: Re: Updated Registration Agreement
Post by: bfeo on August 29, 2008, 10:02:05 AM
compatible with 1.1.5?
Title: Re: Updated Registration Agreement
Post by: Eclipse16V on September 21, 2009, 05:13:09 PM
Nice Mod.

Will be wait for the SMF 2.0RC1.2 Version.
Title: Re: Updated Registration Agreement
Post by: Eclipse16V on January 12, 2010, 09:56:38 AM
Now for the Version SMF 2.0 RC2

Please update it

It´s a nice mod and i need it.
Title: Re: Updated Registration Agreement
Post by: stefann on May 24, 2010, 11:43:58 AM
Has anybody had issues with this mod and BlackBerry users? I am running this mod on SMF1.1.11 and have a user complaining that she can not agree to the message that pops up, though I'm unable to ascertain exactly where the problem lies, as it works fine using other handheld devices or when spoofing the BlackBerry user agent.

So, is this just a PEBKAC issue, or is there something actually wrong with the mod? Has anybody used this with a BlackBerry?

From the access logs I see lines like this, but never an accept_agreement2 POST as required to remove the persistent agreement prompt
"GET /forums/index.php?action=accept_agreement HTTP/1.0" 200 12593 "-" "BlackBerry9000/4.6.0.266 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/146"
"GET /forums/index.php?board=12.0;wap2 HTTP/1.0" 200 2355 "http://domain.tld/forums/" "BlackBerry9700/5.0.0.351 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/122"


Any help on this would be appreciated, I'm still trying to find out exactly what's going on from the user in question, unfortunately I don't know anyone that still has a crackberry
Title: Re: Updated Registration Agreement
Post by: TakeMeNL on February 22, 2011, 02:17:21 PM
Hey there!

i have downloaded this mod and have seen that it won't install on the RC4 and RC5.
So i edited the install and uninstall file.
And want to post it here, but i need permission to do that. So can i post my 'modified' version of  Updated Registration Agreement here?

----
TakeMeNL
Title: Re: Updated Registration Agreement
Post by: live627 on February 22, 2011, 02:58:00 PM
I'm not the mod author, but I'd say to not do it because this mod needs more in-depth changes than what you mentioned. Did you test it?
Title: Re: Updated Registration Agreement
Post by: TakeMeNL on February 22, 2011, 04:13:31 PM
Quote from: live627 on February 22, 2011, 02:58:00 PM
I'm not the mod author, but I'd say to not do it because this mod needs more in-depth changes than what you mentioned. Did you test it?

Yes i tested on my own forum until al error where gone.
It makes a database, when you change the agreement it will show that you must accept the new one.

So I think it's ready for RC5 :)

----
TakeMeNL
Title: Re: Updated Registration Agreement
Post by: Krillin on March 27, 2011, 12:15:11 AM
Well, I like the idea for this mod, but I have a serious problem with SMF 2.0 RC5.

I followed the instruction for a manual install for said SMF version.

I go to load the forum back up and the agreement page loads up. But when I click on 'I Agree' I get the following error;
Database Error
Unknown column 'agreement_accepted' in 'field list'
File: C:\inetpub\krillinsworld\forum\Sources\Subs.php
Line: 555

This is the lines in Subs.php 550 - 555. Line 555 is just the last line below which is not enough information so this is the group of that failed point;
$smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET' . substr($setString, 0, -1) . '
WHERE ' . $condition,
$parameters
);

What can we do to get this working with RC5.

Thanks in advance.
Title: Re: Updated Registration Agreement
Post by: Krillin on March 27, 2011, 02:29:04 AM
The problem was it did not create the database entry. Had to create it manually. I suppose this is true if you do a manual install of this mod.

Admins of SMF 2.0 RC5 be aware.

I am glad I am trained in SQL.

Thanks...
Title: Re: Updated Registration Agreement
Post by: Goodman854 on March 27, 2011, 04:32:08 AM
Wait so does it work on RC5?
Title: Re: Updated Registration Agreement
Post by: Krillin on March 27, 2011, 09:25:36 PM
It doesn't install itself on RC5, but yes. With a little work and know know it can work.

We are proof that one can get it working in 2.0 RC5. We have it working on ours.

Thanks...
Title: Re: Updated Registration Agreement
Post by: Goodman854 on March 27, 2011, 11:53:09 PM
Can you tell me how O.O?
Title: Re: Updated Registration Agreement
Post by: Krillin on March 28, 2011, 02:13:58 AM
Quote from: goodman854 on March 27, 2011, 11:53:09 PM
Can you tell me how O.O?
Go here: http://custom.simplemachines.org/mods/index.php?mod=727
On the Right where it says Download this mod
Save the file as you will need two files in the package as per the instructions you will see on the next step,
On the drop-down menu, next to Manual Install Instructions for SMF select 2.0 RC5.

Make sure you make a backup in case you mess it up to be safe. Follow the instructions on editing the files manually
(take it this step slow and easy and DO NOT rush).

You will need to insert the MySQL database statement yourself. This is going to take some know how bur I will share my experience with you.
Log into your MySQL and run this script
ALTER TABLE `DBNAME`.`smf_members` ADD `agreement_accepted` TINYINT(1) NOT NULL DEFAULT 0;
Modify the DBNAME and PREFIX (if needed, the default is smf_) to your current settings.

You can try putting your forums in Emulate Mode for RC4 in  Admin --> under Main heading Select Packages then ADVANCE section and see if that will work in modifying the files for you, not too sure about the database entry. I have not tried it this way yet.

Good luck.
Title: Re: Updated Registration Agreement
Post by: WantSome on May 09, 2011, 12:44:13 PM
Hiya!

I really want to use this modification because I think it could be quite useful, however, I can't seem to get it to display quite right on some custom themes.  I have used this only on my test site which is essentially a copy of my main site.  So I don't want to apply this on my main site until I can get it to work.

Actually, the function of the mod works.  However the line 'We have recently updated our registration agreement. In order to use our forum, you must agree to its terms, so please read through it carefully:' does not appear (just a blank space where I suppose it should be).  Also, the button which should say 'I Agree' is blank (just a grey square).

I installed this with the package manager, but when I realised the problem I checked the manual parsing and made sure that all my files were right.  The only one that didn't seem to have the right stuff was the ./Themes/default/languages/Modifications.english.php which I modified as instructed on the manual parsing info (I also modified the ./Themes/default/languages/Modifications.english-utf8.php to be sure.)

However, I still don't get a nice description to tell my users what is happening and the button to submit remains blank.  This is happening on all themes except the default one, although most of my themes are modified copies of the default and use the same sources and information.

Help?

EDIT:  I've double checked and this is in fact happening on all themes INCLUDING the smf default them. 

I'm running smf 1.1.13
Title: Re: Updated Registration Agreement
Post by: Eclipse16V on June 21, 2011, 05:04:19 PM
Has anyone this for the 2.0 Version of SMF?
Thanks
Title: Re: Updated Registration Agreement
Post by: shinyidol on August 02, 2011, 12:26:25 AM
I have it kinda working in SMF 2.0, but it is changing the entire userbase to 1 based on one user agreeing, not by individuals.

Any idea how to fix that?
Title: Re: Updated Registration Agreement
Post by: MoreBloodWine on January 29, 2013, 11:09:40 AM
Couple things to note, there's some quirks with the mods install lines... tried on my 2.0.3 sites.

You call for a find & add after in Register.template.php
<label for="requireAgreement"><input type="checkbox" name="requireAgreement" id="requireAgreement"', $context['require_agreement'] ? ' checked="checked"' : '', ' value="1" /> ', $txt[584], '.</label><br />

But this is what it should be since this is what exists in that file... not sure if the </p> should be included or not since I don't recall if that acts like a <br /> which is called for in the find but now found in the code after </label>
                  <label for="requireAgreement"><input type="checkbox" name="requireAgreement" id="requireAgreement"', $context['require_agreement'] ? ' checked="checked"' : '', ' tabindex="', $context['tabindex']++, '" value="1" class="input_check" /> ', $txt['admin_agreement'], '.</label>
               </p>


It's alo failing on this Load.php find...
// Found 'im, let's set up the variables.
if ($ID_MEMBER != 0)
{


This one I don't really have a reason for it failing because the code is there and matches up... the only thing I would dare venture a guess at is because you hhave ID_MEMBER in caps when in the file it's all lowercase but I don't know if that would
be enough to cause a fail.

Other than that the only other things I guess would be the few small issues others have pointed out which I cannot confirm since I havent installed the mod yet manually or otherwise.
Title: Re: Updated Registration Agreement
Post by: confuseamuse on August 04, 2017, 06:02:24 AM
So the mod doesn't work on 2.0.14.

In the zip folder, I found two .php files which aren't included in the install.xml named 'AcceptAgreement.php' and 'AcceptAgreement.template.php', despite being called upon in the 'install.php' script:

// --- Begin modification - Updated registration agreement ---
'accept_agreement' => array('AcceptAgreement.php', 'AcceptAgreement'),
'accept_agreement2' => array('AcceptAgreement.php', 'AcceptAgreement2'),
// --- End modification ---


EDIT: I discovered that the mod states where these files are meant to go in the directory, but doesn't actually carry out the instruction. I tried uploading the files myself, and I could only see a blank screen. Mod uninstalled now.

I'm not sure where in the directory these files are supposed to go, so I've deactivated the mod for now.
Title: Re: Updated Registration Agreement
Post by: Arantor on August 04, 2017, 06:29:17 AM
Given that it was designed for 1.1, it is unlikely to work on 2.0 without being rewritten.
Title: Re: Updated Registration Agreement
Post by: confuseamuse on August 04, 2017, 11:25:29 AM
Quote from: Arantor on August 04, 2017, 06:29:17 AM
Given that it was designed for 1.1, it is unlikely to work on 2.0 without being rewritten.

I figured that was the reason this mod didn't work. Unfortunate, but I doubt it will be necessary even if it did.
Title: Re: Updated Registration Agreement
Post by: Arantor on August 04, 2017, 05:04:52 PM
It will be necessary given that the functions used for the database stuff in 1.1 literally don't exist in 2.0.
Title: Re: Updated Registration Agreement
Post by: Biology Forums on August 05, 2017, 12:23:10 PM
Also, I can see this annoying registered members. Better practice would be to announce a topic, and that's it.
Title: Re: Updated Registration Agreement
Post by: confuseamuse on August 05, 2017, 04:08:35 PM
Quote from: Arantor on August 04, 2017, 05:04:52 PM
It will be necessary given that the functions used for the database stuff in 1.1 literally don't exist in 2.0.

That's not what I meant. I was implying that the mod itself was unnecessary, for this reason:
Quote from: Stylus on August 05, 2017, 12:23:10 PM
Also, I can see this annoying registered members. Better practice would be to announce a topic, and that's it.

By the looks of things in earlier pages, it seems that it didn't work entirely with 1.1 anyway.
Title: Re: Updated Registration Agreement
Post by: Arantor on August 05, 2017, 06:40:18 PM
-shrug- it wasn't clear from your post what was necessary or not, read to me like you thought it should work without a rewrite.