forum.coppermine-gallery.net

Support => cpg1.4 themes/skins/templates => cpg1.4.x Support => Older/other versions => cpg1.4 theme contributions => Topic started by: Shane on December 05, 2008, 01:50:18 pm

Title: WP Antique theme by LVIV converte for CPG 1.4.x
Post by: Shane on December 05, 2008, 01:50:18 pm
I began playing with a Wordpress installation (cpg link (http://philmontforum.com/shanehoffman.com/cpg)) and decided to try to convert its theme to Coppermine.  The theme is ANTIQUE by LVIV (can be downloaded on the WordPress site).  Zip file and screenshots are attached.

I have incorporated a few hacks into the theme:
link (http://forum.coppermine-gallery.net/index.php/topic,37962.0.html) - Display videos from YouTube in Coppermine
link (http://forum.coppermine-gallery.net/index.php/topic,40315.0.html) -     
Short (Truncated) Album Description and Displaying on Thumbnail Page
link (http://forum.coppermine-gallery.net/index.php/topic,8166.40.html) - add 'previous' and 'next' to page tabs

As you can see from the screenshots, the theme is pretty much a match for the original WP theme.  I cannot figure out how to finish the boxes around the cpg menu items the way they are finished around the wp menu items.  If one of you code gurus can add a fix for that, the theme would be a complete match.

Hope someone finds this useful.

Thanks GIZMO for the great walk through on how to convert a WP theme to CPG (http://forum.coppermine-gallery.net/index.php/topic,38508.0.html)!  The steps needed were dead on, and I couldn't have done this without your help.

* Added new zip to first post - HT *

Title: Re: WP Antique theme by LVIV converte for CPG 1.4.x
Post by: Hein Traag on December 05, 2008, 02:01:51 pm
Very nicely done! Maybe you could add a line to the cpg theme which explains which wordpress theme was converted (for credits etc).
Title: Re: WP Antique theme by LVIV converte for CPG 1.4.x
Post by: Shane on December 05, 2008, 02:13:38 pm
Updated zip file to include proper theme credits on theme.php file.
Title: Re: WP Antique theme by LVIV converte for CPG 1.4.x
Post by: Joachim Müller on December 21, 2008, 12:47:06 am
Had to perform some minor edits. Thanks for your contribution.

Demo (http://coppermine-gallery.net/demo/cpg14x/index.php?theme=antique) - Download (http://downloads.sourceforge.net/coppermine/cpg1.4.x_theme_antique_v1.5.zip)
Title: Re: WP Antique theme by LVIV converte for CPG 1.4.x
Post by: Shane on December 21, 2008, 02:22:37 pm
I fixed the css and theme issues so that the menu "boxes" are shown correctly on the CPG version of this template.

Updated .zip attached.  I updated the numbering to v1.4.  I tested these files on my live site and they worked for me.

Joachim - I made changes to the style.css, style_wp.css, and theme.php files.  I'm not sure what you had to edit, so you may want to check to see if I undid anything you added.

Live site using this theme is here (http://shaneandpamela.com/cpg).
Title: Re: WP Antique theme by LVIV converte for CPG 1.4.x
Post by: Joachim Müller on December 22, 2008, 07:37:48 pm
Joachim - I made changes to the style.css, style_wp.css, and theme.php files.  I'm not sure what you had to edit, so you may want to check to see if I undid anything you added.
You based your edit on my version, so that should be fine. I used a diff viewer to perform a three-way comparison - I suggest to do the similar thing in the future. Diff viewers like WinMerge a great tools to understand the essentials of code edits performed by others. Therefor, diff viewers are a great tool to learn from others and be able to quickly get an idea about changes.

The only tiny flaw you made was the naming convention and the nesting of folders within the archive. That's what I changed accordingly and created a new package with a new version number - but that's mainly for end user friendliness and to make all theme download packages the same.

I have edited my above posting to make the links in the posting point to the updated version.

Thanks for your edit.