forum.coppermine-gallery.net

Support => cpg1.4 themes/skins/templates => cpg1.4.x Support => Older/other versions => cpg1.4 theme contributions => Topic started by: François Keller on August 25, 2008, 10:41:41 pm

Title: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 25, 2008, 10:41:41 pm
Hey All,

I've ported the grey-style-20 wordpress theme to cpg

I've overwritten some of the configuration settings by using variables in the theme.php file and added a new variable for retrieving the album description. The reason for this is to prevent the standard settings in the Configuration tables set by you from "breaking" the theme. These changes are:

Code: [Select]
// These parameters overide what the user inputs in the Configuration setup to prevent the theme from breaking.
$CONFIG['max_film_strip_items'] = 4; //overrides the number of thumbnails.
$CONFIG['thumbcols'] = 4; //overrides the number of columns for thumbnails.
$CONFIG['main_table_width'] = '100%'; //overrides the Width of the main table (pixels or %).
$CONFIG['picture_table_width'] = '100%'; //overrides the Width of the table for file display (pixels or %).

Icons in the img folder come from http://www.vistaico.com
This theme comes with a multilingual menu title:
in the theme folder you find a lang folder with some language files (english, french, german).
feel free to add your own lang file an share it on the coppermine forum

Thank's to Gizmo for his work, it helps me to do port this theme.

new version 1.0.2 attached
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Joachim Müller on August 25, 2008, 11:37:26 pm
Hello Francois,

the theme looks very promising. I have uploaded the theme as-is to our demo (http://coppermine-gallery.net/demo/cpg14x/index.php?theme=grey-style-20), but imo the left column is way too wide (or the middle column to narrow) - see screenshot (taken with FF2 on Linux with 1280x800 resolution). Could you please look into this (or even get rid of the left column, since I can't see the point of it anyway)? Thanks

Joachim
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 26, 2008, 07:25:25 am
Thank's Joachim,

i can't replicate your problem
see the screen shots with FF3 and IE7 on Windows XP with 1440 x 900
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Joachim Müller on August 26, 2008, 07:57:46 am
The center column is wrapped inside a block named "content", which has a margin-left property of 195 pixels. I can not replictae why this is not the case for you. More screenshots attached. I recommend testing with 1024 or 1280 pixels screen width.
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 26, 2008, 09:40:36 am
I have tested it with other screen width without problems.
But i will look into this problem this evening and hope i will find what's happend.
It would be helpfull to have other reports to see if other users have this problem
Thank's for your report
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: phill104 on August 26, 2008, 09:52:09 am
It looks fine in IE7 on my machine with a resolution of 1024 but in FF2/3 and Safari I get the same problem as Joachim

By adjusting the margin in wp-style.css from
Code: [Select]
margin: 0 195px 20px 195px; to
Code: [Select]
margin: 0 0px 20px 0px; does seem to fix the wasted space but still leaves some display problems in FF only.

The header also displays in a different font in FF to IE7 but that could be my problem.

Great looking theme.
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Gizmo on August 26, 2008, 04:26:46 pm
Hi Francois,

After making the changes suggested by phill104 the theme started coming together. Below are my suggestions.

I'll look at this more later today but it's a great start!

Cheers,

Billy
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 26, 2008, 05:25:06 pm
Hi Billy
Thank's for your suggestions, i'll have a look on this this evening...
of course you can use all my solutions for your ported themes (icons and language script)  :D
and thank's to phil104 for your suggestions
together we will do a super theme  :D
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 26, 2008, 10:38:44 pm
I've made few changes in the themes to fix the problem and to add Gizmo's suggestions
The new archive is attached at the very first post (version 1.0.1)
I've also an other little problem: I wanted to replace the picture admin (see sceen shot)menu with icons, but i have not found how to get ride the html_picture_menu() function who is in the displayimage.php file...
If someone has an idea...
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Gizmo on August 26, 2008, 11:49:29 pm
I forgot to add this morning that you have 1 too many </div> in your template.html file. Just remove the last one. Another thing I can't seem to figure out is why this theme won't load in my XAMPP installation. All the other themes do so I can only upload to my server space where my other test gallery is located. Strange.  ???
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: phill104 on August 27, 2008, 12:17:22 am
Fantastic job. Love the theme.

Two tiny things (and it is probably being really picky). In FF there is a line under the gallery menu title and it vanishes in IE7. When you enable the theme chooser it is well spaced in the links menu but in IE7 it touches the coppermine gallery title.

Safari displayes everything the same as FF.
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 27, 2008, 07:31:21 am
I forgot to add this morning that you have 1 too many </div> in your template.html file. Just remove the last one.
done, thank's for reporting that
Another thing I can't seem to figure out is why this theme won't load in my XAMPP installation. All the other themes do so I can only upload to my server space where my other test gallery is located. Strange.  ???
i have no problem on my WAMP server  :-\
When you enable the theme chooser it is well spaced in the links menu but in IE7 it touches the coppermine gallery title.
corrected
In FF there is a line under the gallery menu title and it vanishes in IE7.
You're right, but i can't figure out why, i'm searching...
Thank's for your test

P.S. Corrected files in the archive on the very first post
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Joachim Müller on August 27, 2008, 09:08:03 am
Wow (that "wow" goes for the beauty of the theme)! Thanks for looking into the issues - I think we're getting another potential candidate for the new default theme ;) (although I'm a bit concerned about the extra JS going into the core as default, but that should be discussed someplace else).

Anyway, here are the "official" links: Demo (http://coppermine-gallery.net/demo/cpg14x/index.php?theme=grey-style-20) - Download (http://downloads.sourceforge.net/coppermine/cpg14x_theme_grey-style-20.1.0.1.zip)

Joachim

P.S. Please don't forget to count up the zip file version number after the theme name, and please use the naming convention as per my reply to one of Gizmo's contributions:
If possible, could you rename your files when attaching to avoid confusion for end users: the naming scheme for themes is "cpgX.Y.Z_theme_ThemeName_ThemeVersion.zip" (e.g. "cpg1.4.x_theme_ocadia_v1.3.zip") - thanks.

Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 27, 2008, 09:12:26 am
Quote
P.S. Please don't forget to count up the zip file version number after the theme name, and please use the naming convention as per my reply to one of Gizmo's contributions:
Ok, i'll do so next time  ;)
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: phill104 on August 27, 2008, 08:09:41 pm
I have uploaded the theme as-is to our demo (http://coppermine-gallery.net/demo/cpg14x/index.php?theme=grey-style-20)Joachim

At the moment on the demo page the theme displays over the top of the theme selector. Could you sort this out as I forsee users getting stuck on this theme.
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Joachim Müller on August 27, 2008, 08:58:12 pm
Doesn't happen for me (using FF2): the theme selector displays just fine - see screenshot.
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: phill104 on August 27, 2008, 09:04:48 pm
Must be an IE (both 6 & 7 on different machines) problem as it works in FF for me too.

Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Gizmo on August 27, 2008, 09:33:02 pm
I get the messed up header on Mac with both FF & Safari.
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 27, 2008, 10:40:33 pm
i have the same problem with IE but it works with FF3  :-\
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Gizmo on August 28, 2008, 04:11:34 am
I noticed you used the truncation function but you aren't displaying the full album description on the album page. You need to add this variable to your theme.php and then it will show the description at the top of the album page.

Code: [Select]
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="alblink"><h2>{ALBUM_NAME}</h2></td>

                        </tr>
                        <tr><td>
                        <p>{$album_desc}</p>
                        </td></tr>
                        </table>

EOT;
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 28, 2008, 07:02:56 am
oh yes, thank's billy, i haven't see this. I'll modifiy the theme.php to correct this
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on August 28, 2008, 10:54:12 am
Ok, version 1.0.2 attached on the very fisrt post.
This version fix the problem reported by Gizmo for displaying full album name as page title
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Su8Z3r0 on November 17, 2009, 08:58:18 pm
hi  got stramms pms v1.1 installed and cant seem to get the images working on this theme .It works on other themes so was just wondering were the problem is. If anyone be so kind to help plz.

thanks

EDIT: Ive just find out why it doesnt work. Just seen that ur theme images folder is named img. So i just made new folder called images and put stramms pm images in there and works.
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: Joachim Müller on November 23, 2009, 09:39:27 am
@François: I have edited your attachment in the initial posting, taking into account the naming conventions outlined in the upcoming documentation for cpg1.5.x. As a negative impact, the download counter was reset.

@All: Demo (http://coppermine-gallery.net/demo/cpg14x/index.php?theme=grey-style-20) - Download (https://sourceforge.net/projects/coppermine/files/Themes/1.4.x/cpg1.4.x_theme_grey-style-20_v.1.0.2.zip/download)
Title: Re: [cpg1.4.x]: Wordpress Grey-style-20 theme ported to CPG
Post by: François Keller on November 23, 2009, 10:47:49 am
@ Joachim
Thank's for the renaming.
@All
I'm working on porting this theme for cpg1.5.x. I'll post it ASP  ;)