[geeklog-cvs] geeklog-1.3/system lib-custom.php,1.12,1.13

blaine at iowaoutdoors.org blaine at iowaoutdoors.org
Mon Feb 14 00:17:10 EST 2005


Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv17606/system

Modified Files:
	lib-custom.php 
Log Message:
Minor cleanup on custom member functions - noted while using them for a client project


Index: lib-custom.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-custom.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** lib-custom.php	17 Jan 2005 09:22:12 -0000	1.12
--- lib-custom.php	14 Feb 2005 05:17:08 -0000	1.13
***************
*** 147,151 ****
      Note2: This example requries a template file called memberdetail.thtml to be
      located under the theme_dir/custom directory. 
!     Sample is located in under /system with the distribution.
  
      Functions have been provided that are called from the Core Geeklog user and admin functions
--- 147,151 ----
      Note2: This example requries a template file called memberdetail.thtml to be
      located under the theme_dir/custom directory. 
!     Sample is provided under /system with the distribution.
  
      Functions have been provided that are called from the Core Geeklog user and admin functions
***************
*** 153,158 ****
      - Admin will see the new registration info when checking a members profile only
      - All other users will see the standard User profile with the optional extended custom information
!     - Customization requries changes to a few of the core template files to add {customfields} variable
!     - See notes below in the custom functuion about the template changes 
  */
  
--- 153,158 ----
      - Admin will see the new registration info when checking a members profile only
      - All other users will see the standard User profile with the optional extended custom information
!     - Customization requires changes to a few of the core template files to add {customfields} variable
!     - See notes below in the custom function about the template changes 
  */
  
***************
*** 259,266 ****
      $postmode = "create";
      $submitbutton = '<input type="submit" value="Register Now!">';
!     $passwd_input = "";
!     $message = "<br><font color=black><b>Please complete the application below. Once you have completed the application, click the Submit button and the application will be processed immediately.</b></font>";
! 
!     $A = $_POST;
  
      $user_templates = new Template ($_CONF['path_layout'] . 'custom');
--- 259,263 ----
      $postmode = "create";
      $submitbutton = '<input type="submit" value="Register Now!">';
!     $message = "<blockquote style=\"padding-top:10px;\"><font color=black><b>Please complete the application below. Once you have completed the application, click the Submit button and the application will be processed immediately.</b></font></blockquote>";
  
      $user_templates = new Template ($_CONF['path_layout'] . 'custom');
***************
*** 269,283 ****
      $user_templates->set_var('post_url', $post_url);
      $user_templates->set_var('startblock', COM_startBlock("Custom Registration Example"));
!     $user_templates->set_var('message', $message);    
      $user_templates->set_var('USERNAME', "Username");
      $user_templates->set_var('USERNAME_HELP', "Name to be used when accessing this site");
!     $user_templates->set_var('username', $A['username']);
!     $user_templates->set_var('passwd_input', $passwd_input);
      $user_templates->set_var('EMAIL', "Email Address");
      $user_templates->set_var('EMAIL_HELP', "");
!     $user_templates->set_var('email', $A['email']);
      $user_templates->set_var('FULLNAME', "Full Name");
      $user_templates->set_var('FULLNAME_HELP', "");
!     $user_templates->set_var('fullname', $A['fullname']);
      $user_templates->set_var('user_id', $user);
      $user_templates->set_var('postmode', $postmode);
--- 266,279 ----
      $user_templates->set_var('post_url', $post_url);
      $user_templates->set_var('startblock', COM_startBlock("Custom Registration Example"));
!     $user_templates->set_var('message', $message);
      $user_templates->set_var('USERNAME', "Username");
      $user_templates->set_var('USERNAME_HELP', "Name to be used when accessing this site");
!     $user_templates->set_var('username', '']);
      $user_templates->set_var('EMAIL', "Email Address");
      $user_templates->set_var('EMAIL_HELP', "");
!     $user_templates->set_var('email', '');
      $user_templates->set_var('FULLNAME', "Full Name");
      $user_templates->set_var('FULLNAME_HELP', "");
!     $user_templates->set_var('fullname', '');
      $user_templates->set_var('user_id', $user);
      $user_templates->set_var('postmode', $postmode);
***************
*** 305,309 ****
      $msg = '';
  
!     // for exmaple, require the full name to be entered
      // and complain if it's missing
      if (empty ($_POST['fullname'])) {
--- 301,305 ----
      $msg = '';
  
!     // Example, check that the full name has been entered
      // and complain if it's missing
      if (empty ($_POST['fullname'])) {




More information about the geeklog-cvs mailing list