[geeklog-cvs] Geeklog-1.x/public_html usersettings.php, 1.163, 1.164

Blaine Lang blaine at qs1489.pair.com
Sun Jul 29 17:40:02 EDT 2007


Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv67098/public_html

Modified Files:
	usersettings.php 
Log Message:
Modifications to My Account and Edit Preferences to make it easier to customize. Now you can easily remove navbar tabs, relabel or add additional tabs by modifying the language file for $LANG_MYACCOUNT.

Index: usersettings.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/usersettings.php,v
retrieving revision 1.163
retrieving revision 1.164
diff -C2 -d -r1.163 -r1.164
*** usersettings.php	21 Apr 2007 13:36:19 -0000	1.163
--- usersettings.php	29 Jul 2007 21:40:00 -0000	1.164
***************
*** 53,57 ****
  function edituser()
  {
!     global $_CONF, $_TABLES, $_USER, $LANG04, $LANG_ADMIN;
  
      $result = DB_query("SELECT fullname,cookietimeout,email,homepage,sig,emailstories,about,location,pgpkey,photo FROM {$_TABLES['users']},{$_TABLES['userprefs']},{$_TABLES['userinfo']} WHERE {$_TABLES['users']}.uid = {$_USER['uid']} AND {$_TABLES['userprefs']}.uid = {$_USER['uid']} AND {$_TABLES['userinfo']}.uid = {$_USER['uid']}");
--- 53,57 ----
  function edituser()
  {
!     global $_CONF, $_TABLES, $_USER, $LANG_MYACCOUNT, $LANG04, $LANG_ADMIN;
  
      $result = DB_query("SELECT fullname,cookietimeout,email,homepage,sig,emailstories,about,location,pgpkey,photo FROM {$_TABLES['users']},{$_TABLES['userprefs']},{$_TABLES['userinfo']} WHERE {$_TABLES['users']}.uid = {$_USER['uid']} AND {$_TABLES['userprefs']}.uid = {$_USER['uid']} AND {$_TABLES['userinfo']}.uid = {$_USER['uid']}");
***************
*** 66,76 ****
      include ($_CONF['path_system'] . 'classes/navbar.class.php');
      $navbar = new navbar;
!     $navbar->add_menuitem($LANG04[151],'showhideProfileEditorDiv("preview",0);return false;',true);
!     $navbar->add_menuitem($LANG04[152],'showhideProfileEditorDiv("namepass",1);return false;',true);
!     $navbar->add_menuitem($LANG04[130],'showhideProfileEditorDiv("userinfo",2);return false;',true);
!     $navbar->add_menuitem($LANG04[153],'showhideProfileEditorDiv("layout",3);return false;',true);
!     $navbar->add_menuitem($LANG04[154],'showhideProfileEditorDiv("content",4);return false;',true);
!     $navbar->add_menuitem($LANG04[155],'showhideProfileEditorDiv("privacy",5);return false;',true);
!     $navbar->set_selected($LANG04[152]);
      $preferences->set_var ('navbar', $navbar->generate());
  
--- 66,75 ----
      include ($_CONF['path_system'] . 'classes/navbar.class.php');
      $navbar = new navbar;
!     $cnt = 0;
!     foreach ($LANG_MYACCOUNT as $id => $label) {
!         $navbar->add_menuitem($label,'showhideProfileEditorDiv("'.$id.'",'.$cnt.');return false;',true);
!         $cnt++;
!     }
!     $navbar->set_selected($LANG_MYACCOUNT['pe_namepass']);
      $preferences->set_var ('navbar', $navbar->generate());
  
***************
*** 603,606 ****
--- 602,606 ----
          $preferences->set_var ('showonline_checked', '');
      }
+     PLG_profileVariablesEdit ($_USER['uid'], $preferences);
      $preferences->parse ('privacy_block', 'privacy', true);
  




More information about the geeklog-cvs mailing list