coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Warped-Photography on November 30, 2004, 08:30:26 PM

Title: Problem with Top Rated Page
Post by: Warped-Photography on November 30, 2004, 08:30:26 PM
When you click on my top rated page, it does not show what rating the photo's have been given. Instead you get a failed image icon (box with a red cross in it)

See it here

http://www.warped-photography.co.uk/gallery/thumbnails.php?album=toprated&cat=0
Title: Re: Problem with Top Rated Page
Post by: Tranz on November 30, 2004, 09:34:10 PM
Have you modified the theme? The images src is currently pointing to http://www.warped-photography.co.uk/gallery/themes/hardwired%20shop/images/rating5.gif That goes to a 404 and results in (https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.warped-photography.co.uk%2Fgallery%2Fthemes%2Fhardwired%2520shop%2Fimages%2Frating5.gif&hash=e56e26c47383395124b93a03d6a804bd0080ed93). (if viewing in Firefox, nothing will show but IE will show an X).

I changed the address to the correct folder and: http://www.warped-photography.co.uk/gallery/themes/hardwired/images/rating5.gif or (https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.warped-photography.co.uk%2Fgallery%2Fthemes%2Fhardwired%2Fimages%2Frating5.gif&hash=a36cbb02ccc33e71e0e19ab7835dae057312786f)

If you are using a custom theme, you must upload the image files where the theme expects to find them.
Title: Re: Problem with Top Rated Page
Post by: Casper on November 30, 2004, 09:46:45 PM
You have used the shop hack, and obviously during testing you called the theme 'hardwired shop'.
As TranZNdance said, your theme.php is still pointing to that theme folder for the ratings graphics.
Title: Re: Problem with Top Rated Page
Post by: Warped-Photography on November 30, 2004, 10:30:28 PM
So what do I need to do?
Title: Re: Problem with Top Rated Page
Post by: chtito on December 01, 2004, 08:01:24 AM
Simple solution: remove (or comment) the line
define('THEME_HAS_RATING_GRAPHICS', 1);
in the theme.php file of your theme (hardwired shop).
Title: Re: Problem with Top Rated Page
Post by: Casper on December 01, 2004, 10:41:38 AM
You are using the hardwired theme, but your theme.php is pointing to hardwired shop for these graphics. So open your theme.php, find and replace '/hardwired shop/' with '/hardwired/'.

Title: Re: Problem with Top Rated Page
Post by: Tranz on December 01, 2004, 12:01:43 PM
It looks like Warped-Photography figured it out by putting the images in the hardwired shop/images folder. The images now show up in my post and in the Top Rated Page.
Title: Re: Problem with Top Rated Page
Post by: Joachim Müller on December 02, 2004, 10:16:09 AM
yeah, great thing he/she resolved the thread himself/herself by posting something like "I have figured out what needs to be changed, thanks for your help, topic is solved" :(...

Joachim