I just got finished modifying the cimi theme to match the rest of my site, and realized... there's no search box in cimi. Hmmm... How difficult is it for a non-developer to add a search box & functionality to a theme? Is there a bit of code I can cut from some other theme & paste into an appropriate place in the cimi .php file(s)? Or, is this more complex than I could handle that way?
Comments
It'd be nice (and surprising) if there was just some additional line of code that I need to tweak somewhere to get the search.php to recognize the Cimi theme, but I'm not holding my breath on that one.
Any other advice? fwiw, my gallery is here:
www.phlumf.com/gallery/
There are very few photos in there now, but I have hundreds... I might be switching themes around back-and-forth, trying some things... so I can't guarantee what it'd look like at any given point. I've been using the search term "mushroom" for debugging...
Ok, well, I found that key piece of code... it was near the top of the of the search.php - the "sylesheet" and "themeroot" stuff. I just copied that off another page, and that took care of like 85% of the job. Then I did a bunch of hunt-n-peck to figure out the rest. It seems I managed to get this working/looking OK, see:
www.phlumf.com/gallery/
Again, not much on the gallery at the moment, but I'm stoked about the format.
One more thing: I'd like to get the forward back arrows on the image pages to not be stacked on top of each other. I can't figure out why there are line breaks between the elements. I'd like them to be next to each other, and centered above the image. I've tried a lot of experiments, but can't seem to get it working right. Hmm... Any tips would be helpful.
One last thing: At what point has one modified a theme enough such that it becomes a new theme?
Thanks for reading this & replying - I'm grateful. Maybe somebody can use the modified cimi with search when I'm all done?
To the black errors: You probably need to use `float` on their CSS statements. There are actually two parts of the theme, the design and the coding (especially if some special functions are involved). Generally a theme design is a new one if you can't really tell the origin.
As to the modification, we surely can put that on our themes page (without official supporting as usual).
Change:
#imgnav #prev { background-image: url(back.gif); background-position: center center; background-repeat: no-repeat; }
#imgnav #forw{ background-image: url(forward.gif); background-position: center center; background-repeat: no-repeat; }
To:
#imgnav #prev { background-image: url(back.gif); background-position: center center; background-repeat: no-repeat; float: left; }
#imgnav #forw{ background-image: url(forward.gif); background-position: center center; background-repeat: no-repeat; float: right; }
Not sure if it'll work, but it's something to start with. If that doesn't work for some reason you'll want to play with the #imgnav css some. It could be stacking them because you have the #immgnav div width at 55px, but that seems like it should be plenty considering how small the images are...
I tried changing the 55px, but the nav buttons were still stacked on top of each other... just wider. Maybe I'll tackle this again sometime.
I would like to learn things like php, but just don't have the time. And the trouble is that for what I really need to do, it's hard to justify spending the amount of time it'd take. It's just a dilemma, I guess.
Thanks for visiting my gallery, but I didn't see any comments. Now I wonder if that's working correctly. I did do some test comments myself, and those seemed to work. I guess I'll try some other testing.
Anyway, in the coming weeks, I'll be adding quite a bit to the gallery (hopefully). My goal is to combine this with a wordpress blog and just have a more dynamic site than what I have now at phlumf.com.