How do I change the header in a page from selecting image on another page

I am working on a multisite that will allow each site administrator the option of selecting an banner image to use for headers on each of their pages (the headers can be different on each of the pages). These pages are from the same page template I created so I can manipulate the page pretty easily. I have created a button that shows on each of their pages for admins only that will take them to a banner page (and it passes a parameter to that page to show what page sent the request). I have created the page that has the banners shown and I want them to be able to select which banner they want and have it update the banner on the page they came from (the parameter that was passed will tell them which page). I'm just stuck at figuring out how to pass it back to the page to change the header and make it stay unless they choose to change it again. I figure I'll set a variable for the image src but not sure how to set that variable.
Would it be best to somehow set these image paths in a database table and do a select from that table to set the variable or is there a different way to go about this?
I think I will work on the custom database table option for now but wanted to bounce ideas off everyone on here to see what they think is a good option.
I will let everyone know if I am able to solve it and what method (and who it comes from) works out the best.

Thanks in advance.

Dustin

  • Dustin
    • Design Lord, Child of Thor

    PC

    That plugin is pretty close to what I am needing to do. I looked through the documentation for it but don't see anything that says if I can specify one specific folder for it to look into for the banners. We have a folder created that contains all the banners we want to let them use so I have to make sure that is where it looks. If I can do that, I think I can make that plugin work for my purposes. Might be easier than creating a table to store the header and site information to retrieve on each page. I will look through the code of the plugin to see if I can find anything that specifies where it looks for the images at (hopefully I can find that).

    Thanks and I will keep plugging away and let you know if I come up with anything.

    Dustin

  • Dustin
    • Design Lord, Child of Thor

    I'm going to use that plugin. I had to change the theme to make it work right because the Genesis Corporate Child theme puts those images in a weird directory that is different for each individual site. I just changed to the twenty eleven theme and looks like I can make it work. I just have to convince my partners that this is the best option. In still going to play with the other way of doing it as I have time to see if I can make it work too. Changing themes wasn't bad because I'm using customized page templates that I've coded so I just had to add a few parts into the CSS file to bring everything across. Thanks for the quick response and great suggestion. It really saved some time.

    Dustin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.