How to convert a wordpress theme to coppermine? How to convert a wordpress theme to coppermine?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to convert a wordpress theme to coppermine?

Started by donnoman, November 10, 2006, 08:06:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

donnoman

Gizmo, how do you convert a Wordpress theme to Coppermine?  Are there certain css equivelancies that you've documented between Coppermine and Wordpress?

Have you developed a systematic process to convert the themes?

Gizmo

Well... "not as yet". Most of the WP themes that I've done so far use a different styling (some more than others). Basically what I do is take the header.php, main (called the index.php), footer.php and if it exists, the sidebar.php and put them together into a single file. Then I strip out the WP code and replace with the Coppermine code and edit the Coppermine style.css to match the theme. The first couple of themes I ported, I copied only the WP styling that's needed into the Coppermine style sheet but when I needed to edit a theme for someone, I had to do it twice, once for WP and then for CPG. Now what I do is leave the WP style.css intact so that if someone wants to change the theme, all they have to do is copy it over to CPG (in theory anyway).

Unfortunately, this has not been as straightforward as I had hoped. Putting a photo gallery inside a blog theme requires a bit of css knowledge but I am working on a "starter" sheet for this process. I tend to let the WP theme control the duplicate css styling so that means removng it from the CPG style.css. The biggest issue is keeping IE and the larger Config tables such as Groups, Users, etc from busting out at the seams. They don't like narrow fixed themes especially if the sidebar is on the righthand side.

What I could do is take a simple WP theme and document it's conversion for use with Coppermine. We can start with a simple theme with a lefthand sidebar. Some WP themes have lots of <div>s with classes defined which are the hardest to manage.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision