In the display links page I have the attachments ....
<!-- BEGIN 1 LINK ATTACHMENTS --> <img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}" hspace="5" vspace="5" align="left" /><br /> <!-- END LINK ATTACHMENTS -->
So that just one thumbnail shows. I think it is that which is causing a problem in the details page. As soon as I add a second attachment I get an error on the details page...
Line #85: <br> Line #86: <?php if (1) { ?> Line #87: <div align="center"><img src="download.php?id=10&attachid=11"></div> Line #88: <?php } ?> Line #89: <?php } else { ?> Line #90: <div align="center">
My original query was how to just show one thumbnail on the display links with the others within the details page. Paul had stated to simply add the number 1 to the display template. That works great until I attach another graphic. Looking at the error message I presume it is to do with the figure 1 in the display template????
I've revised 3.3.4 with the fix to this (templatefunctions.php being the only changed file from the previous 3.3.4, for the 10 of you who'd downloaded it).
Edit: looks like I need another quick revision to put upgrade instructions in the readme. Will be up within 5 minutes.
Re-edit: There, done. Note that 3.3.4 just collects bug fixes (all mentioned on the forum I think), nothing new.
Hi Paul, Just upgraded to 3.3.4 but it doesn't seem to have fixed this image problem. I even tried deleting the link along with attachments and resubmitting, but I'm still getting the error.
Comments on Image attachments set to 1 problem
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
In the display links page I have the attachments ....
<!-- BEGIN 1 LINK ATTACHMENTS -->
<img src="thumbnail.php?id={LINKID}&attachid={ATTACHID}" hspace="5" vspace="5" align="left" /><br />
<!-- END LINK ATTACHMENTS -->
So that just one thumbnail shows. I think it is that which is causing a problem in the details page. As soon as I add a second attachment I get an error on the details page...
Line #85: <br>
Line #86: <?php if (1) { ?>
Line #87: <div align="center"><img src="download.php?id=10&attachid=11"></div>
Line #88: <?php } ?>
Line #89: <?php } else { ?>
Line #90: <div align="center">
www.thehorsescene.co.uk/hor...hp?action=detail&id=10
Member
Usergroup: Customer
Joined: Jun 30, 2003
Location: England
Total Topics: 7
Total Comments: 48
i can take a look at this if you like.. (thought i'd ask first!)
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Of course you can! :-)
My original query was how to just show one thumbnail on the display links with the others within the details page. Paul had stated to simply add the number 1 to the display template. That works great until I attach another graphic. Looking at the error message I presume it is to do with the figure 1 in the display template????
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The problem has to do with multiple instances of <!-- BEGIN ATTACHMENTS --> on the same page I think. Looking into it.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
thanks paul
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I've revised 3.3.4 with the fix to this (templatefunctions.php being the only changed file from the previous 3.3.4, for the 10 of you who'd downloaded it).
Edit: looks like I need another quick revision to put upgrade instructions in the readme. Will be up within 5 minutes.
Re-edit: There, done. Note that 3.3.4 just collects bug fixes (all mentioned on the forum I think), nothing new.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Hi Paul, Just upgraded to 3.3.4 but it doesn't seem to have fixed this image problem. I even tried deleting the link along with attachments and resubmitting, but I'm still getting the error.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Attached template code and the resulting appearance.
Attached Files:
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Thanks Paul. Not sure what I had done wrong, but started the begin link attachments from scratch and it now works fine.