[geeklog-cvs] geeklog-1.3/public_html users.php,1.53,1.54 usersettings.php,1.55,1.56

dhaun at geeklog.net dhaun at geeklog.net
Sun Feb 23 15:45:11 EST 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv9590/public_html

Modified Files:
	users.php usersettings.php 
Log Message:
Introduced new plugin API functions that let plugins extend the user profile with their own fields and blocks.


Index: users.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/users.php,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** users.php	23 Feb 2003 14:57:12 -0000	1.53
--- users.php	23 Feb 2003 20:45:09 -0000	1.54
***************
*** 264,269 ****
--- 264,273 ----
      $user_templates->set_var ('lang_all_postings_by', $LANG04[86] . ' ' . $A['username']);
  
+     PLG_profileVariablesDisplay ($user, $user_templates);
+ 
      $user_templates->parse('output', 'profile');
      $retval .= $user_templates->finish($user_templates->get_var('output'));	
+ 
+     $retval .= PLG_profileBlocksDisplay ($user);
  
      return $retval;

Index: usersettings.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/usersettings.php,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** usersettings.php	7 Feb 2003 00:29:32 -0000	1.55
--- usersettings.php	23 Feb 2003 20:45:09 -0000	1.56
***************
*** 147,151 ****
      $preferences->set_var ('username_value', $_USER['username']);
  
!     return $preferences->finish ($preferences->parse ('output', 'profile'));
  }
  
--- 147,156 ----
      $preferences->set_var ('username_value', $_USER['username']);
  
!     PLG_profileVariablesEdit ($_USER['uid'], $preferences);
! 
!     $retval = $preferences->finish ($preferences->parse ('output', 'profile'));
!     $retval .= PLG_profileBlocksEdit ($_USER['uid']);
! 
!     return $retval;
  }
  
***************
*** 716,719 ****
--- 721,725 ----
      case 'saveuser':
          $display .= saveuser($HTTP_POST_VARS);
+         PLG_profileExtrasSave ();
          break;
      case 'savepreferences':





More information about the geeklog-cvs mailing list