Solved: 1 Year, 3 Months, 3 Weeks ago NetPen {$attachbox} not working
#1
Solved: 1 Year, 3 Months, 3 Weeks ago
hi! 

NetPen
https://community.mybb.com/mods.php?action=view&pid=727

Somehow {$attachbox} is not working in the new reply 

so something is missing in thas theme 

Spend way too much of time to adjust it to my needs just to find out such a bug 

Where else except of "newreply" should I have a look? 

Thanks

sorted

template post_attachments_new

<input type="file" name="attachment" size="30" class="fileupload" />

should be shanged to
<input type="file" name="attachments[]" size="30" class="fileupload" multiple="multiple" />
Reply
#2
Solved: 1 Year, 3 Months, 3 Weeks ago
I have the same problem, the attachments are not working on NetPen theme.
Unfortunately the solution you are proposing is not working.

<input type="file" name="attachments[]" size="30" class="fileupload" multiple="multiple" />

It results the "post reply page" to dissapear.

edit: sorted

The correct code inside "post_attachments_new" is following

<tr>
<td class="trow1" width="1"><img src="{$theme['imgdir']}/paperclip.png" alt="" /></td>
<td class="trow1" style="white-space: nowrap"><strong>{$lang->new_attachment}</strong> <input type="file" name="attachments[]" size="30" class="fileupload" multiple="multiple" /></td>
<td class="trow1" style="white-space: nowrap" align="center">{$attach_update_options} {$attach_add_options}</td>
</tr>
<tr style="display: none;">
<td class="trow1" colspan="3">
<div id="upload_bar" style="background: #0066A2; height: 5px; width: 0%;"></div>
<div id="dropzone" style="padding: 50px 0; margin: 5px 10px 10px; cursor: pointer; border: 2px dashed #CCC; text-align: center;">
<div style="pointer-events: none;"></div>
</div>
</td>
</tr>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)