Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Loading Image  (Read 3738 times)

0 Members and 1 Guest are viewing this topic.

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Loading Image
« on: February 27, 2006, 10:07:21 pm »

Hi all

I wanted to add this to the background of the picture when loading and the picture loads over the top, where do I add it?

Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Loading Image
« Reply #1 on: February 27, 2006, 11:56:27 pm »

It has been previously done as part of a larger mod, but you can take the code that applies to your request (Loading... bg image). Find it here

http://forum.coppermine-gallery.net/index.php?topic=13718.msg63430#msg63430

As far as I know, it is not tested for 1.4.x so report back if you get it to work.
« Last Edit: February 28, 2006, 12:14:26 am by lordprodigy »
Logged

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Re: Loading Image
« Reply #2 on: February 28, 2006, 12:38:52 am »

I have tried to change theme.php with the following:

In your /themes/{theme_name}/theme.php find this:

Code:
$template_thumbnail_view = <<<EOT

In this block find
Code:
{THUMB}

change it to
Code:
<div id='photoholder'>{THUMB}</div>

find
Code:
$template_display_picture = <<<EOT

in this block find
Code:
{IMAGE}

and replace it with
Code:
<div id="photoholder">{IMAGE}</div>

I'm using Rainy Day theme and I cannot find any of this code that i need to replace in my theme.php file ???
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Loading Image
« Reply #3 on: February 28, 2006, 12:42:41 am »

if you dont have $template_thumbnail_view in the theme you are using, then copy it from the theme.php provided in the sample theme. Same goes for $template_display_picture. If you still have problems, be patient for a Dev to give you advice...
« Last Edit: February 28, 2006, 12:56:27 am by lordprodigy »
Logged

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Re: Loading Image
« Reply #4 on: February 28, 2006, 01:00:40 am »

Sorted that part now, thanks

Where do I add the following to template.html

#photoholder {
                  url('/themes/rainy_day/images/loading.gif') 50% 50% no-repeat;
}
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Loading Image
« Reply #5 on: February 28, 2006, 07:05:38 am »

that goes in your theme's css file.
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Loading Image
« Reply #6 on: February 28, 2006, 06:23:32 pm »

I tested it and it works. However you have to make few updates to bring the code up to date to 1.4.x:

instead of:
Code: [Select]
$template_display_picturelook for
Code: [Select]
$template_display_media
oh and the url was wrong. use this path
Code: [Select]
url('images/loading.gif') 50% 50% no-repeat;
as the css file and the images folder are in the same place.

make sure your bg image is really really small in kb otherwise it wont surve you well...
Logged

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Re: Loading Image
« Reply #7 on: March 03, 2006, 10:52:58 pm »

Done that but it still isn't working ???
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Loading Image
« Reply #8 on: March 06, 2006, 10:11:11 pm »

try again, and pay attention to the different steps involved. I did exactly what was said in the thread and it worked fine ...
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.