Webmastersite.net
Register Log In

Image attachments set to 1 problem

Comments on Image attachments set to 1 problem

babrees
Expert

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

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

In the display links page I have the attachments ....

<!-- BEGIN 1 LINK ATTACHMENTS -->
<img src="thumbnail.php?id={LINKID}&amp;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
barrykilby
Member

Usergroup: Customer
Joined: Jun 30, 2003
Location: England

Total Topics: 7
Total Comments: 48
Posted Jan 04, 2006 - 4:21 AM:

i can take a look at this if you like.. (thought i'd ask first!)
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 04, 2006 - 6:55 AM:

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????
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 05, 2006 - 6:38 AM:

The problem has to do with multiple instances of <!-- BEGIN ATTACHMENTS --> on the same page I think. Looking into it.
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 05, 2006 - 6:52 AM:

thanks paul


Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 05, 2006 - 6:57 AM:

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.
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 07, 2006 - 11:26 PM:

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.



Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 09, 2006 - 3:36 AM:

Attached template code and the resulting appearance.

Attached Files:
babrees
Expert

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

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 09, 2006 - 6:12 AM:

Thanks Paul. Not sure what I had done wrong, but started the begin link attachments from scratch and it now works fine.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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