Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Styling Multiple File Inputs
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #1
Styling Multiple File Inputs
I am trying out using the multiple file inputs on my forum. I have set the field up in my Custom Thread Fields, and all is working well except the Display Item Format.

My settings:

Display Format  = {VALUE}

Multiple Value Delimiter  =  

Display Item Format

Code:
1
2
3
4
5
6
7
8
9
<form action="{URL}" method="get">
<button type="submit" class="altbutton icon-download icon-large">CLICK TO DOWNLOAD FILE</button>
</form>
<span class="smalltext"><strong>Filesize&nbsp;</strong><em>{$GLOBALS['threadfields_x']['mupload']['items'][index]['filesize_friendly']}</em> |
<strong>File Name&nbsp;</strong><em>{$GLOBALS['threadfields_x']['mupload']['items'][index]['filename']}</em> | <strong># of Downloads&nbsp;</strong><em>{$GLOBALS['threadfields']['mupload']['items'][index]['downloads_friendly']}</em>
<if ($GLOBALS['threadfields_x']['mupload']['items'][index]['update_date']) == ($GLOBALS['threadfields_x']['mupload']['items'][index]['upload_date']) then>&nbsp;</span><else>
<br />
<strong>File Updated&nbsp;</strong><em>{$GLOBALS['threadfields_x']['mupload']['items'][index]['update_date']}</em></span></if>
<hr>


What I am trying to do is output the values for each of the files; I cannot figure out the value I need to use for index.

This is my current output:  http://www.leefish.nl/mybb/showthread.php?tid=5649

Please can you advise how I can access the index for each of the files?



[Image: leelink.gif]
MYBB1.6 & XThreads
05-17-2014 11:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Styling Multiple File Inputs - leefish - 05-17-2014 11:35 PM
RE: Styling Multiple File Inputs - leefish - 05-19-2014, 12:46 AM
RE: Styling Multiple File Inputs - leefish - 05-19-2014, 10:12 AM
RE: Styling Multiple File Inputs - leefish - 05-19-2014, 07:32 PM
RE: Styling Multiple File Inputs - leefish - 05-22-2014, 10:00 PM

 Standard Tools
Forum Jump: