MyBB Community Forums

Full Version: Display forum registration agreement, by itself, on web page ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Trying to display forum registration agreement, by itself, on a web page.

Working with member.php and member_register_agreement.

So far, no luck going from there to creation of the web page.

Where to look for how2 info ?
What do you mean exactly? I'm confused Toungue
Thank you for the followup.
When go thru the forum registration process there is a point where the registration agreement is displayed, along with an 'I Agree' button etc.

Trying to figure out how might to be able to show just the agreement display, as a separate web page that can be accessed with a link, without the rest of the display of headers, footers, buttons etc, in the normal 'registration page'.

Guessing maybe a new php file with just the 'registration form' in it ?
Maybe some major editing/renaming of member.php ?
Tried some but guess just not that familiar with php code Confused

(2012-09-19, 09:49 PM)Paul H. Wrote: [ -> ]What do you mean exactly? I'm confused Toungue

(2012-09-19, 09:37 PM)akm Wrote: [ -> ]Trying to display forum registration agreement, by itself, on a web page.
Working with member.php and member_register_agreement.
So far, no luck going from there to creation of the web page.
Where to look for how2 info ?
Any chance something like this could be modified, simply, to show the registration agreement ?...
Confused

<?php
/**
 * MyBB 1.6
 * Copyright 2010 MyBB Group, All Rights Reserved
 *
 * Website: http://mybb.com
 * License: http://mybb.com/about/license
 *
 * $Id: member.php 5616 2011-09-20 13:24:59Z Tomm $
 */
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'member.php');
define("ALLOWABLE_PAGE", "register,do_register,login,do_login,logout,lostpw,do_lostpw,activate,resendactivation,do_resendactivation,resetpassword");
$nosession['avatar'] = 1;
$templatelist = "member_register,error_nousername,error_nopassword,error_passwordmismatch,error_invalidemail,error_usernametaken,error_emailmismatch,error_noemail,redirect_registered,member_register_hiddencaptcha";
$templatelist .= ",redirect_loggedout,login,redirect_loggedin,error_invalidusername,error_invalidpassword,member_profile_email,member_profile_offline,member_profile_reputation,member_profile_warn,member_profile_warninglevel,member_profile_customfields_field,member_profile_customfields,member_profile_adminoptions,member_profile,member_login,member_profile_online,member_profile_modoptions,member_profile_signature,member_profile_groupimage,member_profile_referrals";
require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_user.php";
require_once MYBB_ROOT."inc/class_parser.php";

$lang->load("member");
if($mybb->input['action'] == "register")
$plugins->run_hooks("member_register_agreement");
("\$agreement = \"".$templates->get("member_register_agreement")."\";");
?>


(2012-09-19, 10:18 PM)akm Wrote: [ -> ]Thank you for the followup.
When go thru the forum registration process there is a point where the registration agreement is displayed, along with an 'I Agree' button etc.

Trying to figure out how might to be able to show just the agreement display, as a separate web page that can be accessed with a link, without the rest of the display of headers, footers, buttons etc, in the normal 'registration page'.

Guessing maybe a new php file with just the 'registration form' in it ?
Maybe some major editing/renaming of member.php ?
Tried some but guess just not that familiar with php code Confused

(2012-09-19, 09:49 PM)Paul H. Wrote: [ -> ]What do you mean exactly? I'm confused Toungue

(2012-09-19, 09:37 PM)akm Wrote: [ -> ]Trying to display forum registration agreement, by itself, on a web page.
Working with member.php and member_register_agreement.
So far, no luck going from there to creation of the web page.
Where to look for how2 info ?