Topic Title: Problem with phpBB attach_mod and Gallery2

Forum Index » phpBB2 / Gallery 2 Integration » Problem with phpBB attach_mod and Gallery2
Topic URL: http://www.nukedgallery.net/postt4335.html

AuthorMessage
Post Title: Problem with phpBB attach_mod and Gallery2
mdt55
Joined: Oct 20, 2008
Posts: 7

Posted: Sat Feb 14, 2009 2:40 am
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

AuthorMessage
Post Title: Re: Problem with phpBB attach_mod and Gallery2
jettyrat
Joined: Nov 28, 2005
Posts: 1144

Posted: Tue Feb 17, 2009 10:40 am
Thanks Mark! I don't work with this mod any more, but that would be most helpful to those that still do.

AuthorMessage
Post Title: Re: Problem with phpBB attach_mod and Gallery2
Jacob7846
Joined: Dec 19, 2010
Posts: 1

Posted: Sun Dec 19, 2010 2:40 pm
where can i find a tutorial for php?

AuthorMessage
Post Title: Re: Problem with phpBB attach_mod and Gallery2
jamie3
Joined: Dec 25, 2010
Posts: 1

Posted: Sat Dec 25, 2010 4:47 pm
Here's a basic tutorial: http://www.w3schools.com/php/default.asp [w3schools.com]

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group