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...
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.
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>
Comments on Image attachment for cats
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
See scripts.webmastersite.net/w...nks/wsnmanual/articles/161
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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}&attachid={BREEDPHOTOATTACH}" />
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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>
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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?
Experienced
Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic
Total Topics: 48
Total Comments: 82
Hallo,
I think, you must have <IF {CATBREEDPHOTOATTACH}>.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
THANK YOU! Sometimes you can look at something and you just don't see it <G>