PDA

View Full Version : categories duplicated on details


duncani
11-23-2007, 12:40 PM
Hi guys. It's my first post here so don't flame me too much!!!
I have installed 1.7 and everything went fine, no problems to report. I also have installed the addons AjaxCategManager and imagestats. It seems all to be working fine except for the fact I have two Categories titles in my image details.
It looks like this:
Categories: Categories: [18-70mm AF-S] [B&W] [D80]

I have turned my two extra installed addons off and this still hasn't made a difference.
If you want to have a look try this
(http://www.creativeleak.net)
Also here's my server info:
PHP-version 5.2.3 (Pixelpost's min requirement: PHP version: 4.3.0 )
Session save path /tmp
MySQL version 5.0.24a-standard-log (Pixelpost's min requirement: MySQL: 3.23.58 )
GD-lib bundled (2.0.34 compatible) with JPEG support
File Uploads to Pixelpost site are possible.
Server Software Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
EXIF Pixelpost is using exifer v1.5 for EXIF-information.

Do you have any ideas as to whats my problem?
Thanks Duncan

dhdesign
11-23-2007, 12:58 PM
That doesn't have anything to do with the addons. The problem is in the template you are using is called it twice. Open image_template.html and look for the code:

<p>Categories: <span class="exif">Categories: .....

Remove the one that is in bold above and that should solve your problem.

If you're not sure, post the code from that section of image_template.html and someone here will tell you what part to delete.

Hope this helps!

duncani
11-23-2007, 01:27 PM
Hi dhdesign, thanks for your quick reply.

I understand what your saying but the template code doesn't have the duplicated cats.
Heres the code and I've highlighted the line in question
<div id="description">
<div id="notes">
<p><IMAGE_NOTES></p>
<p>Lens: <span class="exif"><EXIF_FOCAL_LENGTH></span> | Aperture: <span class="exif"><EXIF_APERTURE></span> | Shutter: <span class="exif"><EXIF_EXPOSURE_TIME></span> | ISO: <span class="exif"><EXIF_ISO></span></p>
<p>Categories: <span class="exif"><IMAGE_CATEGORY></span></p>
<p>Number of views this month: <span class="exif"><IMAGE_COUNTER></span></p>
<p>Number of views today: <span class="exif"><IMAGE_TODAY></span></p>
</div> <!-- notes -->
</div> <!-- description -->
Now if I delete the first categories title, the second one will have the exif class tag applied which is not what I want.
Any ideas?

dhdesign
11-23-2007, 01:38 PM
I took a look at the stylesheet for this template to see what properties the exif class has - all it does is change the text color to the light blue. Change the line you have highlighted in red to read as follows:

<p><IMAGE_CATEGORY></p>

That will remove one of the Categories:, and it removes the css style so that the word Categories: will be the same color as the rest of the text on the page.

duncani
11-23-2007, 01:56 PM
I now feel a bit dense, your answer was so simple I should have really guessed it!
What I don't understand is how my site has this duplicated cats problem, but the template demo (http://www.sotolicious.com/delicious/index.php) doesn't. Could it be 1.7?
Thanks again for your help

dhdesign
11-23-2007, 02:01 PM
No, it's not PP 1.7. I downloaded a copy of the template from the Extend section here this AM, and the error is in the version that is available for download. Jay must have fixed it on his demo site.

Glad you got it all sorted out! :)