Header Language Selection and User Information

Header Language Selection and User Information

av Shaan p -
Antall svar: 5

Hello,

         In header.html , the user information and the language selection box are brought in using a variable called $menu .

<?php if ($home) {  // This is what gets printed on the home page only
?>
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="headerhome">
        <tr><td colspan="3" align="right" class="navigation"><?php echo $menu ?></td></tr>
  </table>

but in our site , I want the user information to be at left extreme of the row and the language selection in the right extreme of the row . how can I split it ?

please tell me what and where the changes has to be made .

Gjennomsnittlig vurdering: -
Som svar til Shaan p

Re: Header Language Selection and User Information

av Shaan p -
Any suggestions please ...
Som svar til Shaan p

Re: Header Language Selection and User Information

av Helen Foster -
Bilde av Core developers Bilde av Documentation writers Bilde av Moodle HQ Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av Testers Bilde av Translators
Hi,

It appears that you're using Moodle 1.4, as the headers are done with div tags not tables in 1.5. Is it possible for you to upgrade your Moodle site for us to help you more easily?
Som svar til Helen Foster

Re: Header Language Selection and User Information

av Shaan p -

Hi ,

          Thanks for your reply . We are using moodle 1.5 and not 1.4 . We have made some custom changes in the header.html to suit our design formats . Hence , the change from ' div ' to table . but how does this affect language selection ? . To make it clear , we can see that there is a line above the language selection select box ' You are logged in a <username> (Logout) ' . We want this line to be in the right extreme of the navigation bar . and the language selection box in the right side (as it is now).

Please reffer to the Zip file attached containing a screenshot for clear view .

Thanks ,

Shaan

Som svar til Shaan p

Re: Header Language Selection and User Information

av Ger Tielemans -
thinking in tables:
  • add (several) extra combinations of <td></td> in your row <tr></tr>
  • put one piece of info in the most left
  • put the other piece of info in the most right
  • set the with of all the <td></td>  until you are satisfied
Som svar til Ger Tielemans

Re: Header Language Selection and User Information

av Shaan p -

The problem is not with the <td> alignments . The single variable "$menu" brings both the text and the dropdown box to view . I want , the names of the variables , that gives "You are logged in as <>" and the another variable , that gives the dropdown box .

Hope this is clear ,

Thanks ,

Shaan