Advanced search  

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]

Pages: [1]   Go Down

Author Topic: New theme: rhinoswelt  (Read 13860 times)

0 Members and 1 Guest are viewing this topic.

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 808
    • Timos-Welt
New theme: rhinoswelt
« on: February 04, 2010, 03:57:41 pm »

Have fun!  :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: New theme: rhinoswelt
« Reply #1 on: March 26, 2010, 09:13:34 am »

Logged

cyberdyne2

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Posts: 75
Re: New theme: rhinoswelt
« Reply #2 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
Logged
v.1.5.22

cyberdyne2

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Posts: 75
Re: New theme: rhinoswelt
« Reply #3 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.
Logged
v.1.5.22

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Ðóññêèé (Windows)
    • Makc's home page
Re: New theme: rhinoswelt
« Reply #4 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']),
« Last Edit: February 28, 2011, 02:40:33 pm by Makc666 »
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.