[geeklog-cvs] Geeklog-1.x/public_html/layout/professional/preferences profile.thtml, 1.23, 1.24

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


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

Modified Files:
	profile.thtml 
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: profile.thtml
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/preferences/profile.thtml,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** profile.thtml	10 Jun 2007 13:47:10 -0000	1.23
--- profile.thtml	29 Jul 2007 21:40:00 -0000	1.24
***************
*** 2,9 ****
  <script type="text/JavaScript" src="{site_url}/javascript/profile_editor.js"></script>
  
! <div id="pe_navbar" class="jsenabled_show" style="display:none">{navbar}</div>
  <div class="clearboth" style="min-width:600px;">
  <form action="{site_url}/usersettings.php" method="POST" {enctype}>
!     <div id="pe_preview" style="display:none;">
          <fieldset style="margin-top:10px;">
              <legend>{lang_preview_title}</legend>
--- 2,9 ----
  <script type="text/JavaScript" src="{site_url}/javascript/profile_editor.js"></script>
  
! <div id="pe_navbar" style="display:none">{navbar}</div>
  <div class="clearboth" style="min-width:600px;">
  <form action="{site_url}/usersettings.php" method="POST" {enctype}>
! <div id="pe_preview" class="jsenabled_hide" style="display:none;">
          <fieldset style="margin-top:10px;">
              <legend>{lang_preview_title}</legend>
***************
*** 11,15 ****
          </fieldset>
      </div>
!     <div id="pe_namepass">
          <fieldset style="margin-top:10px;"><legend>{lang_name_legend}</legend>
             <table class="inputTable">
--- 11,15 ----
          </fieldset>
      </div>
! <div id="pe_namepass" class="jsenabled_show">
          <fieldset style="margin-top:10px;"><legend>{lang_name_legend}</legend>
             <table class="inputTable">
***************
*** 101,113 ****
  <!-- JS Functions which will execute only if JS enabled will un-hide the special features that enhance the profile editor -->
  <script type="text/JavaScript">
! var el;
! el=document.getElementsByTagName('div');
! for(i=0;i<el.length;i++){
!     if(el[i].className == 'jsenabled_show'){
!         el[i].style.display = '';
!     } else if(el[i].className == 'jsenabled_hide'){
!         el[i].style.display = 'none';
      }
- }
  
  </script>
--- 101,125 ----
  <!-- JS Functions which will execute only if JS enabled will un-hide the special features that enhance the profile editor -->
  <script type="text/JavaScript">
!     <!-- Initially the navbar is hidden - in case JS is disabled. Enable it now -->
!     document.getElementById('pe_navbar').style.display='';
! 
!     /* Now cycle through the profile tabs as the number in the template could have been modified (personalized)
!        If you add custom panels, just ensure you use the class jsenabled_hide or jsenabled_show
!        Build an object that can then be referenced in the functon showhideProfileEditorDiv
!     */
! 
!     var profilepanels = new Object;
!     var el;
!     el=document.getElementsByTagName('div');
!     for(i=0;i<el.length;i++) {
!         var divname = el[i].id  
!         if(el[i].className == 'jsenabled_show'){
!             el[i].style.display = '';
!             profilepanels[divname] = 'show';
!         } else if(el[i].className == 'jsenabled_hide'){
!             el[i].style.display = 'none';
!             profilepanels[divname] = 'hidden';   
!         }
      }
  
  </script>




More information about the geeklog-cvs mailing list