PDA

View Full Version : Another skinning tut.


N-Sanity
22-04-2005, 08:54 PM
Its not really a tutorial yet, just an idea.
Not sure it will work though either...
Anyway, make global variables in ur index.php for each td's height and width... also imgsource as well, like i did in http://www.infernoforums.com/showthread.php?t=124&page=10&pp=10

Anyway, then make a page with a skin selecter thing.
On selection of a skin, have it change the variables to the widths, heights, and imgsrc's of ur site.

If all goes well, should work like magic... A hell of a lot of variables tho...
Hope it works, and hope u ppl apreciate the idea.

Unfortunately im only 14, and know practically no syntax of php, and neither do i have time to learn it.
That is y i have to rely on people like u to transform my ideas into goods:D
Thats actually the way i mastered the syntax of c#.

Hope u guys can make it happen, c ya.

btw mail me at n.saneman@gmail.com if u have ideas, or answers. :o

N-Sanity
22-04-2005, 08:58 PM
Oh, btw td's are tables lol if some of u didnt get that right away

like this:



<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
</a></td>

N-Sanity
24-04-2005, 03:08 PM
K guys... cmon help me out.
I believe the way to go with storing the $skin variable is cookies.
I dunno **** about them so plz help me out on how to do that.
I dun have time nor money to read up on this, so PLZ HELP OUT.

IH-James
20-05-2005, 03:50 AM
N-Sanity,

I believe that the better way to go for this would be to have several PHP files:

eg
index.php (default skin)
skin1.php
skin2.php
etc

I'm not 100% sure how you would go about making all links go to the currently selected user skin.

However, I would not use this feature for the visitor to select a sking - a web site should be well defined and conistent, and as such I would not allow the visitor to select a different skin.

I would use this feature for different sections in my web site. ie:
index.php?p=x would be used for most pages, but i could also have
members.php?p= which would be the template that would be used for my members area.
products.php?p= would be used for my product info pages.

How does this idea sound?

N-Sanity
20-05-2005, 08:00 PM
cool - thnx. I finished with the skins actually and it works too :D
Works like magic, and so easily manageable as well.
My client wanted this so i had to do it:D
Thnx again - l8r

Instinct
28-05-2005, 10:43 AM
N-sanity,

why not use css to accomplish ure idea? its easier to manage and using links you can call different css files to be used. There are so many different templating options available if you mix php with css.

Don't make the mistake of only learning one programming style! :cool:

(btw CSS- Cascading Style Sheets - http://www.w3schools.com/css/default.asp)