| Author |
Message |
mdt55
Beginner


Joined: Oct 20, 2008 Posts: 7
|
Posted: Sat Feb 14, 2009 2:40 am Post subject: Problem with phpBB attach_mod and Gallery2 |
|
|
If you are installing Gallery2 on a phpBB2 site that also has the popular attach_mod installed, you may find that the "Add Attachment" function in the posting screen stops working after you install the Gallery2 integration.
This is because the modified Gallery2 posting template (posting_body.tpl) omits a required variable field that attach_mod added to the template.
In /templates/subSilver/posting_body.tpl:
The Gallery2 template has the following line:
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">
The line should be:
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>
The {S_FORM_ENCTYPE} field at the end of this line is required for the Add Attachment function in attach_mod to work properly.
I hope this helps... It took me quite some time to find the problem.
Mark |
|
| Back to top |
|
|
AdBot
|
| Post subject: Problem with phpBB attach_mod and Gallery2 |
|
|
|
|
|
| Back to top |
|
 |
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1161
|
Posted: Tue Feb 17, 2009 10:40 am Post subject: Re: Problem with phpBB attach_mod and Gallery2 |
|
|
| Thanks Mark! I don't work with this mod any more, but that would be most helpful to those that still do. |
|
| Back to top |
|
|
|
|
|
|
|