forum.coppermine-gallery.net

Support => cpg1.5 themes (visuals) => cpg1.5.x Support => cpg1.5 theme contributions => Topic started by: Timos-Welt on February 04, 2010, 03:57:41 pm

Title: New theme: rhinoswelt
Post by: Timos-Welt on February 04, 2010, 03:57:41 pm
Have fun!  :)
Title: Re: New theme: rhinoswelt
Post by: Joachim Müller on March 26, 2010, 09:13:34 am
Demo (http://coppermine-gallery.net/demo/cpg15x/?theme=rhinoswelt) - Download (https://sourceforge.net/projects/coppermine/files/Themes/1.5.x/cpg1.5.x_theme_rhinoswelt_v1.0.zip/download)
Title: Re: New theme: rhinoswelt
Post by: cyberdyne2 on July 26, 2010, 10:06:12 pm
Sorry to be a pain but none of my full sized images display with this theme.
Thumbnails are fine.

Thanks
Title: Re: New theme: rhinoswelt
Post by: cyberdyne2 on July 26, 2010, 10:09:25 pm
Transparent overlay was causing it. Turned it off, everything is fine. Turned it on, display problems again.
Title: Re: New theme: rhinoswelt
Post by: Makc666 on February 26, 2011, 02:02:03 am
There is a problem with this theme.
P.S. Copy here -> http://forum.coppermine-gallery.net/index.php/topic,71034.msg346101.html#msg346101

If on the page "Last comments"
http://coppermine-gallery.net/demo/cpg15x/thumbnails.php?album=lastcom&cat=0&theme=rhinoswelt

comments have smiles the URLs for smiles will be replaced at the end from *.gif to *.png causing them stop working.

To fix this one you have to:

Open file:
./rhinoswelt/theme.php

Find block of code (search for full code comparison, as there are other blocks of code like this one):
Code: [Select]
               $params = array(
                    '{CELL_WIDTH}' => $cell_width,
                    '{LINK_TGT}'   => $target,
                    '{THUMB}'      => $thumb['image'],
                    '{CAPTION}'    => str_replace('.gif','.png',$thumb['caption']),
                    '{ADMIN_MENU}' => $thumb['admin_menu'],
                );

Change line:
Code: [Select]
'{CAPTION}'    => str_replace('.gif','.png',$thumb['caption']),
For line:
Code: [Select]
'{CAPTION}'    => preg_match("#images/smiles/#i",$thumb['caption']) ? $thumb['caption'] : str_replace('.gif','.png',$thumb['caption']),