Webmastersite.net
Register Log In

Image attachment for cats

Comments on Image attachment for cats

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 08, 2006 - 2:11 AM:

Can we have an image attached to the catagories, so that each category can have it's own graphic? If not, is this likely to be available in future?


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 08, 2006 - 8:22 AM:

See scripts.webmastersite.net/w...nks/wsnmanual/articles/161
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 19, 2006 - 1:22 AM:

Thanks Paul, but I am having a little problem

I added a new field BREEDPHOTOATTACH. All it added to my template was the field and a browse button - no attach button

Just click browse didn't upload the image so I copied that attach button from the suggestlink.tpl I have the following on my edit and suggest templates...

<input type="file" name="breedphotoattach" />
<input type="submit" name="breedphotoattach" value="Attach" class="button" />
<br />
Delete
<input type="checkbox" name="breedphotoattachdelete" value="1">



Which is obviously incorrect but I don't know how to do it. To display the image I have...

<img src="download.php?id={CATID}&amp;attachid={BREEDPHOTOATTACH}" />


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 19, 2006 - 11:16 AM:

You click "submit" (or add category or edit category or whatever the button says) at the bottom of the page to upload it, there is no distinct "attach" button.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 19, 2006 - 11:03 PM:

Paul wrote:
You click "submit" (or add category or edit category or whatever the button says) at the bottom of the page to upload it, there is no distinct "attach" button.


I had tried that to begin with, when it didn't work I tried the "attach". Just tried it again - nope, photo does not upload

EDIT - got it working now! don't know what was wrong but who cares <G>


babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 20, 2006 - 7:29 AM:

I have the following but it still shows the empty image box when I have no image for that category

<IF {BREEDPHOTOATTACH}><p>
<img src="thumbnail.php?catid={CATID}&field=breedphotoattach&thumbwidth=100&thumbheight=100"></p>
</IF>

What have I done wrong?
befeleme
Experienced

Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic

Total Topics: 48
Total Comments: 82
Posted Jan 20, 2006 - 1:49 PM:

Hallo,

I think, you must have <IF {CATBREEDPHOTOATTACH}>.


babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 20, 2006 - 2:01 PM:

THANK YOU! Sometimes you can look at something and you just don't see it <G>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.