PDA

View Full Version : Question on perl scripting.


Verity
01-03-2004, 12:53 AM
Hi,

This might not even relate to perl but I figure I should try here first. I have a forum that is run in perl. It's run by Ikonboard. I have modified their html skins template so that the forum is inside a table. The table is set at a specified width of 600px. This is the look that I want for my forums, but this is where it gets dicy.

I would like there to be an option for my users that would allow them to say click a link or button that would change the width of the forum to fit their screen resolution. Not everybody will be fond of a set width so this would be a great addition.

I've tried asking the people at Ikonboard, but it seems like they just don't want to help me with this. Not that I'm complaining, they have always been great to me. So I'm looking else where for a little help.

Any ideas would be greatly appreciated.
Thanks,
Verity

Jeff Mott
01-03-2004, 01:57 AM
If it looks fine at different widths then why not just set the width to 100%?

mlseim
01-03-2004, 05:27 PM
But in case you don't know what that means ...

You can set the table width property in either
pixels or percent. By setting to "width=100%"
it will automatically fill the browser window at
any width, even if someone resized their focused
window.

--Max

Verity
01-05-2004, 01:28 AM
No, nobody gets what I'm talking about. lol Not your fault, but mine cause I don't explain things very well.

I don't want the forum at 100% width. I want it at a fixed width of 600px. That is the way it is supposed to look. However if someone say, who has a hard time seeing or can't get used to the narrow width, would like to just change the way they are seeing it, I would love to be able to give them a way to change the width just for them by say clicking a button. Then clicking that button would widen up the forum to fit their screen and it would be just for them. Then the default and the way it looks for everyone else would remain at 600px wide.

Does this make anymore sense? Sorry if it doesn't.

dswimboy
01-05-2004, 03:37 PM
i'm not sure about the specifics, but i would recommend using a cookie. the script should check for the cookie named something like "IkonboardWidth" and if it exists get the value. if the cookie doesn't exist, use a default.
now you can have a seperate page (if you want) where the user would be able to select the number of pixels, or just small, medium or large. that page would set the cookie.

Verity
01-05-2004, 04:28 PM
Originally posted by dswimboy
i'm not sure about the specifics, but i would recommend using a cookie. the script should check for the cookie named something like "IkonboardWidth" and if it exists get the value. if the cookie doesn't exist, use a default.
now you can have a seperate page (if you want) where the user would be able to select the number of pixels, or just small, medium or large. that page would set the cookie.

Thank you very much. I'll definitely look into that.