What is happening is that if I submit one new link with only one photo, all the other empty files are somehow automaticly completed with the title of the last photo uploaded so in this case I have
{LINKFOTO2ATTACHTITLE}, {LINKFOTO3ATTACHTITLE}, etc with the same title of the first photo attached even though I have not uploaded the second not the third photo. So as I use this file to check if there´s a photo as you can see on my template code, all no uploaded photos are presented as blank files clickeables but there´s nothing to download.
So the not uploaded files shall not be automaticly filled with the title. {LINKFOTO2ATTACHTITLE}, {LINKFOTO3ATTACHTITLE}, etc shall be emply.
Every not uploaded attach file has a title value but it shall not have them.
I have created a new attach link field called filetest2. I have not uploaded anything. Take a look at your link edited. You will see that the value of {LINKFILETEST2ATTACHTITLE} reads "download.php?objecttable=linkstable&objectid=1&field=testat tach" but it shall be void.
Look at your customlink template: <tr> <td class="labelscolumn"><span class="labels">filetest2</span></td> <td class="optionscolumn"><input type="file" name="filetest2attach" /> <IF {LINKFILETEST2ATTACHTITLE}><br /><a href="{LINKFILETEST2ATTACHDOWNLOADURL}">{ LINKFILETEST2ATTACHTITLE}</a></IF></td 62; </tr> This is not working fine because {LINKFILETEST2ATTACHTITLE} is not empty when nothing has being uploaded.
Every not uploaded attach file has a title value but it shall not have them.
Please write that in English.
You will see that the value of {LINKFILETEST2ATTACHTITLE} reads "download.php?objecttable=linkstable&objectid=1&field=testat tach"
No, it doesn't. It shows as not a valid template variable.
I did discover that it gets prefilled with the title of the previous custom file attachment on that link. Maybe that's what you're talking about though it certainly doesn't sound like it.
I shall correct the word file by field so to read as every not uploaded attach field... It seems correct english to me, noun: attach-field, adjectives: not-uploaded, isn't it ?
Anyway now it looks working fine. It seems you have fixed this.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on attached photos not presented
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Paul,
Before upgrading attached photos were looking fine, but now they do not show and after clicking on them they download a file named: "download.php"
This is my template code inside the combined details and comments template :
<td class="details_fotos" align="center">
<IF {LINKFOTO1ATTACHTITLE}>
<a href="download.php?id={LINKID}&field=foto1attach" target="_blank"> <img src="thumbnail.php?id={LINKID}&field=foto1attach&thumbwidth=75&thumbheight=75" border="0" ></a>
<br>{FUNC_WRAPLINES[{LINKNOMBREFOTO1} <,> 25]}
</IF>
</td>
Await for your solution please,
Daniel.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Paul,
I have 6 fields for submitting photos per link.
What is happening is that if I submit one new link with only one photo, all the other empty files are somehow automaticly completed with the title of the last photo uploaded so in this case I have
{LINKFOTO2ATTACHTITLE}, {LINKFOTO3ATTACHTITLE}, etc with the same title of the first photo attached even though I have not uploaded the second not the third photo. So as I use this file to check if there´s a photo as you can see on my template code, all no uploaded photos are presented as blank files clickeables but there´s nothing to download.
So the not uploaded files shall not be automaticly filled with the title. {LINKFOTO2ATTACHTITLE}, {LINKFOTO3ATTACHTITLE}, etc shall be emply.
Awaiting for your solution please.
Daniel.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Ok I have changed
{LINKFOTO2ATTACHTITLE}, {LINKFOTO3ATTACHTITLE}, etc.,
to {LINKFOTO2ATTACHNAME}, {LINKFOTO3ATTACHNAME}, etc. and it´s working now
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Every file I attach has a title value. Example: sandbox.wsnforum.com/box29/...9/c/test-attachment-1.html . Please illustrate for me. Username admin password temp.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Every not uploaded attach file has a title value but it shall not have them.
I have created a new attach link field called filetest2. I have not uploaded anything. Take a look at your link edited. You will see that the value of {LINKFILETEST2ATTACHTITLE} reads "download.php?objecttable=linkstable&objectid=1&field=testat tach" but it shall be void.
Look at your customlink template:
<tr>
<td class="labelscolumn"><span class="labels">filetest2</span></td>
<td class="optionscolumn"><input type="file" name="filetest2attach" /> <IF {LINKFILETEST2ATTACHTITLE}><br /><a href="{LINKFILETEST2ATTACHDOWNLOADURL}">{ LINKFILETEST2ATTACHTITLE}</a></IF></td 62;
</tr>
This is not working fine because {LINKFILETEST2ATTACHTITLE} is not empty when nothing has being uploaded.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Every not uploaded attach file has a title value but it shall not have them.
Please write that in English.
You will see that the value of {LINKFILETEST2ATTACHTITLE} reads "download.php?objecttable=linkstable&objectid=1&field=testat tach"
No, it doesn't. It shows as not a valid template variable.
I did discover that it gets prefilled with the title of the previous custom file attachment on that link. Maybe that's what you're talking about though it certainly doesn't sound like it.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
I shall correct the word file by field so to read as every not uploaded attach field...
It seems correct english to me, noun: attach-field, adjectives: not-uploaded, isn't it ?
Anyway now it looks working fine. It seems you have fixed this.