Forums / Cotonti / Extensions / Problems with Attachments 1.1.0

Heater
#1 2010-11-22 08:08
I have some problems with this plugin, Where do i add "enctype"multipart/form-data" to forms"?
What forms?
Can you help me to compile my sskin TPL file ?

Thank you very much.
[url=http://www.fightercombatsims.net]FighterCombatSims[/url]
This post was edited by Heater (2010-11-22 08:36, 13 years ago)
Kingsley
#2 2010-11-22 09:03
open up forums.post.tpl

search for:

<form action="{FORUMS_POSTS_NEWPOST_SEND}" method="post" name="newpost">
<div style="width:100%;">{FORUMS_POSTS_NEWPOST_TEXTBOXER}</div>
<div class="valid"><input type="submit" value="{PHP.L.Reply}" /></div>
</form>

replace with:

<form action="{FORUMS_POSTS_NEWPOST_SEND}" method="post" name="newpost" enctype="multipart/form-data">
<div style="width:100%;">{FORUMS_POSTS_NEWPOST_TEXTBOXER}</div>
<div style="width:100%;">{FORUMS_POSTS_NEWPOST_ATTACH}</div>
<div class="valid"><input type="submit" value="{PHP.L.Reply}" /></div>
</form>
Heater
#3 2010-11-23 01:55
Tnx Kingsley,
I replace this code for "forums.post.tpl", but for edit.post.tpl and new.topic.tpl ?
I must replace the same code ?

Sorry for my bad English
[url=http://www.fightercombatsims.net]FighterCombatSims[/url]
Kingsley
#4 2010-11-23 03:52
almost the same code yes.

search for similar parts and just add enctype="multipart/form-data" to form tag

and this: <div style="width:100%;">{FORUMS_POSTS_NEWPOST_ATTACH}</div>
(change NEWPOST to EDITPOST in the tag)

at around the same place, and you'll be fine..
Heater
#5 2010-11-23 04:48
thank you very much Kingsley...
[url=http://www.fightercombatsims.net]FighterCombatSims[/url]