Forum

Questions and discussions

category images

Script's setup and configuration

category images

Postby codeice » Wed May 01, 2013 8:07 am

I'm would like to add images to display with each Category title.
I browse to a jpg which appears to upload but does not actually display on the front end categories screen.
Any ideas, thanks.
(using template 17)
Peter
codeice
 
Posts: 25
Joined: Sat Jul 21, 2012 4:20 pm

Re: category images

Postby admin » Thu May 02, 2013 8:13 am

This is a category page with the previews:
http://demo.photostockscript.com/members/categories.php
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: category images

Postby codeice » Fri May 03, 2013 12:05 am

Hi, yes that's what I want to achieve.
If I upload a jpg image on the category edit screen it does not preview on either the category edit screen nor the category front end.
I've placed a screengrab http://www.uglybugimages.com/categories_screengrab.jpg showing what I mean. The circled category title "animalia" shows what I am getting.
Is there a specific size for these category images? Not sure where I am going wrong!
Thanks Peter
codeice
 
Posts: 25
Joined: Sat Jul 21, 2012 4:20 pm

Re: category images

Postby admin » Fri May 03, 2013 8:58 am

You should edit the file:
/content/.htaccess

and replace:
Code: Select all
RewriteRule ([A-Za-z0-9_-\s]+)/((?!thumb)[A-Za-z0-9_-\s]+)\.([A-Za-z0-9_-\s]+)$ ../members/download.php?u=$1/$2.$3


with:
Code: Select all
RewriteRule ([0-9]+)/((?!thumb)[A-Za-z0-9_-\s]+)\.([A-Za-z0-9_-\s]+)$ ../members/download.php?u=$1/$2.$3
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: category images

Postby codeice » Fri May 03, 2013 10:40 am

Great, works perfectly!
Many thanks, Peter :D
codeice
 
Posts: 25
Joined: Sat Jul 21, 2012 4:20 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 2 guests

  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.