Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Article Poll

Poll I found this article to be
Very Helpful
Helpful
Not Helpful
Not Very Helpful
[ Results | Polls ]
Comments:0 | Votes:0

Custom Images Per Section?

posted by Krow on 06:15 AM July 8th, 2002   Printer-friendly   Email story
I've got my colors customized per section, and I trimmed away the line borders from comments and stories and the fancyboxes. But I would like to have a custom logo (slashhead.gif) image per section. The only way I see to do this would be to change the IMG SRC in the header(117) template to say "IMG SRC=[% section %]/images/slashhead.gif" and then put an images/ directory and appropriate GIF in each section subdirectory under htdocs. But this doesn't work, and the % section % part is ignored. Am I using the right name? Do I have to do something extra to get custom images per section? Any help is appreciated. Thanks!
--
Greg Day
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • I swear this was asked before.

    Anyway...

    1. Don't refer to templates by #, the numbers can change per each slash installation. Don't refer to templates by their
    name only. Instead, refer to them by name;page;section.

    2. If section is being ignored, then it's probably not being passed to the header template.

    You need to follow the process through:

    someone hits  /index.pl

    index.pl calls header() with what?
    does header() eventually call slashDisplay('header') or
    slashDisplay('header',{section => $sect
    --
    lottadot [lottadot.com]
  • On EDUSlash.com, I made the slashhead with a blue background, and black around the edges. Then I just made the blue transparent, and on the page itself I assigned the background of that cell block to user.bg(1) or whatever. So, for each section, the background color for that section shows through. This is visible by going to http://eduslash.com then http://eduslash.com/index.pl?section=clemson
    --

    ~~~~~~~~~~~~~~~~~~~
    EDUSlash - We put the EDU in .EDU [eduslash.com]