|
#1
|
||||
|
||||
|
I've been struggling to make an optional field in the admin template to set the page background color on a post basis. I've made another column in the pixelpost table, called color, added a field with a variable named color to the admin template and added this variable into the mysql statement that adds all the other vars to the db on sumbit. Blah...nothing. I can enter anything but nothing is stored in the db. Can somebody please give me the code for this feature? Thanks.
my website : http://glimpse.zeeblo.com/pblog this is the code for the field: PHP Code:
PHP Code:
|
|
#2
|
|||
|
|||
|
I'm curious as to how to get this working as well.
|
|
#4
|
||||
|
||||
|
@GeoS: I don't think you got me, I'm not a php/mysql code, and I'm addressing to you guys for help because I can't do it. I'll gladly make the mod and everything, if I know HOW.
|
|
#5
|
|||
|
|||
|
Background changer
I managed to get something like this working on my site. Not sure if you are still trying to get it to work, but I put instructions and the modified files on pixelpost's site. http://www.pixelpost.org/v1/index.ph...ds&details=119
Hope it helps. |
|
#6
|
|||
|
|||
|
I can't thank you enough for your help Jason. This works great.
cheers |
|
#7
|
||||
|
||||
|
thats the coolest hack EVER!
__________________
i should say more clever stuff |
|
#8
|
||||
|
||||
|
I almost implemented this. What held me back is that I want the option of white, grey, dark grey and black backgrounds. For the first two colors I need black navigation hyperlinks. For the darker background I need white or light grey navigation links.
I suppose what I am looking for is the ability to set the style sheet for each post and not just the background. I have a style switcher already (running a modified version of Jasonpix's template). The default them is dark grey, and I suppose I could instruct people in the comments/info on which background I think is best, but what would be cool is to have it predetermined for each post and remove the user's ability to change it.
__________________
www.chromaticus.net |
|
#9
|
||||
|
||||
|
Quote:
this should work on the same principle - but rather defining a stylesheet in the databse rather than just a hex code.
__________________
Affordable Website Design in North Wales |
|
#10
|
||||
|
||||
|
Cool, I'll have to give that a try!
__________________
www.chromaticus.net |
| Post Reply |
| Thread Tools | |
|
|