PDA

View Full Version : Unique inline CSS for each post?


eyefloater
04-08-2006, 04:00 AM
I'm not sure if this is even possible, but here's what I would like to do:

For each image I post, I'd like to add a bit of inline CSS to specify the background colour of my menu. The colour will be sampled from the image posted that day (ye olde graphic design standby maneuver).

Is this doable somehow? Since there's no separate/permanent .html file created for a given image, I can't even edit it by hand after it's been posted (since there's obviously no html preview option w/ Pixelpost). I'm scratching my head here - help me out with an idea if you can please.

- eyefloater

Joe[y]
04-08-2006, 11:03 AM
heres a hack:

http://forum.pixelpost.org/showthread.php?t=2277&highlight=background+changer

this is easy to change into an addon in 1.5

eyefloater
04-08-2006, 12:49 PM
*hi5*

eyefloater
04-10-2006, 02:53 AM
After a few days of reading through threads and articles on my two goals w/ Pixelpost, I've realized I'm in waaay over my head. The hack you posted ... is what it is, in that I suppose it works fine but I've read all over these forums that haks=bad and add-ons are the way to go. I just can't write php, unfortunately. Hopefully that will change in the near-ish future.

I'll see if I can find the appropriate thread to bring this up again (addon request, etc.), but here's what I'd like to accomplish w/ PP:

- with each new post, be able to specify a specific css to be used (specically designed for a vertical/horizontal/square image of predetermined size)
- with each new post (or while editing a post) be able to specify the background colour of a class/id'd div.

These two ideas would require extra info to be stored in my pixelpost database (I have no idea how to accomplish that) ... plus I'd have to figure out how to get the new index.php output from my add-ons (something I also have no idea about). I've been going through various admin addons but haven't found one with something that I can use as a concise example yet.

If anyone has one they can point me to, please offer it up.

- eyefloater