0
Welcome Guest! Login
0 items Join Now

Header Image Change Based on Login Type

    • 's Avatar

    Header Image Change Based on Login Type

    Posted 17 years 1 month ago
    • Does anyone know if you can change the header image to reflect a different look based on the usergroup of the person logging in. I'm using Joomla 1.0.15 and JACL + Pro 1.0.15?


      I have seen where there are some extensions that will allow the image to rotate after login, but have not seen where either the header image or logo will change based on the user group of the person logging in.

      Thanks for your help.

      Rfick
  • Re: Header Image Change Based on Login Type

    Posted 17 years 4 weeks ago
    • Sure not too diffacult... Although it will require some thought process in it... Here are 2 ways of doing it:

      1.

      <?php
      if ($user == "type1") {
      echo "<img logo>"
      } else {
      echo "<other type of logo>"
      };
      ?>

      That is if you want 2 different logos... Now if you want to have a multitude of different types of logos, there are many different ways to do that a similiar concept would be something like this:

      <?php
      $usertype = $typeofuser
      <img src="logo_".$usertype.".png" />
      ?>

      These examples are not ready to go live on your site, since I have no link to your site, or even a remote idea of how your users are setup these are only short examples of how you can tell the html to generate a different logo for different users. Some coding will be needed and this is probably a moderate to advanced script.

      Good Luck
    • Jessica Kennedy

Time to create page: 0.062 seconds