Results 1 to 4 of 4

Thread: Conditional stylesheet?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2009
    Posts
    20

    Conditional stylesheet?

    Hopefully an easy one for somebody...

    The template I use for all of my pages looks at the style.css to get the header image. I want to change it so that it looks at who logs in and displays an image based on who they are.

    This could be either multiple css or a line in the stylesheet. Either:

    [username code to grab who logs in]/style.css

    or

    [username code within the stylesheet to point to a folder with their reqd image]

    Any ideas folks?

  2. #2
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    Re: Conditional stylesheet?

    Is it just the header image that needs to change or are there other styles that should be specific to every user.

    Roughly how many users are we talking about?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2009
    Posts
    20

    Re: Conditional stylesheet?

    It's only the image header/ I've created a folder for the unique image and I'll point to the folder using session variables to grab who they are then go to that folder. The image will be located in their own folder. There are approximately 50 users

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jun 2009
    Posts
    20

    Re: Conditional stylesheet?

    I've solved it by having the requirded image appear on the page itself rather than in the master - much easier and just as effective for my project

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width