Help: More than two attachments

Started by dracomiconia, May 12, 2004, 09:18:26 AM

Previous topic - Next topic

dracomiconia

How can I attach more than 2 attachments?

Ben_S

Edit your post and you will see more fields.
Liverpool FC Forum with 14 million+ posts.

tomsl

Thankz. But is it not possible to have more choices when posting the topic?

[Unknown]

It is indeed possible, just not done that way in the default theme right now.

-[Unknown]

Oldiesmann

Quote from: tomsl on May 13, 2004, 12:41:11 AM
Thankz. But is it not possible to have more choices when posting the topic?

Easy enough to do...

In Post.template.php

Search for
' . ($context['attached'] != '' ? $txt['attach_preview'] . $context['attached'] . '<br />' : '') . '
<input type="file" size="48" name="attachment[]" onchange="updateFields();" /><br />
<input type="file" size="48" name="attachment[]" onchange="updateFields();" /><br />


And keep adding
<input type="file" size="48" name="attachment[]" onchange="updateFields();" /><br />

below that until you have the number of input fields you want.
Michael Eshom
Christian Metal Fans

dracomiconia

Thanks....

I found it, but I forget the Theme I was working in.... and I didn't saw any changes....

Oldiesmann

Well, unless you're using a highly modified theme, that file would only be in Themes/default or Themes/classic.
Michael Eshom
Christian Metal Fans

ceewee

Quote from: Oldiesmann on May 13, 2004, 02:57:04 PM
Quote from: tomsl on May 13, 2004, 12:41:11 AM
Thankz. But is it not possible to have more choices when posting the topic?

Easy enough to do...

In Post.template.php

Search for
' . ($context['attached'] != '' ? $txt['attach_preview'] . $context['attached'] . '<br />' : '') . '
<input type="file" size="48" name="attachment[]" onchange="updateFields();" /><br />
<input type="file" size="48" name="attachment[]" onchange="updateFields();" /><br />


And keep adding
<input type="file" size="48" name="attachment[]" onchange="updateFields();" /><br />

below that until you have the number of input fields you want.

Hmm I don't see that line in smf 1.14 default !?


Ben_S

Thats because SMF 1.1 has a link to click to add more attachments so this topic is no longer relevant.
Liverpool FC Forum with 14 million+ posts.

Advertisement: