Page 1472 of 1475

Re: Attachment Mod

Posted: Fri Sep 05, 2008 8:22 pm
by DavidIQ
I believe this is what you're missing from your edits:

Code: Select all

# 
#-----[ OPEN ]-----------
# 
templates/yourtemplate/posting_body.tpl

# 
#-----[ FIND ]-----------
# around line 258
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">

# 
#-----[ REPLACE WITH ]-----
# 
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>

Re: Attachment Mod

Posted: Fri Sep 05, 2008 8:28 pm
by doomtop
That was it!

I made the edit, but somehow it was on the wrong line and basically was commented out.

Thanks for pointing out where I went wrong, saved me a bunch of time. Much appreciated!!

Re: Attachment Mod

Posted: Fri Sep 05, 2008 8:39 pm
by DavidIQ
Glad to have been of service :ugeek:

Re: Attachment Mod

Posted: Mon Sep 08, 2008 11:59 pm
by jnse
Is it possible to convert a phpBB2 (2.0.22) forum, that uses Attachment mod, to a phpBB3 forum and still see all the images that's been posted?
Thanks.

Re: Attachment Mod

Posted: Tue Sep 09, 2008 12:23 am
by momentum
Yes. When converting to v3 all of the attachments will be retained.

Craig.

Re: Attachment Mod

Posted: Thu Sep 11, 2008 5:43 am
by comboman
Hello all,

This is my first post here, although I have been a reader for a long time.

I have this wonderful "Attachment mode" working correctly in my forum, but now I have added two combos to my "Posting" page. The problem is that, when the user uploads an attachment, the posting page is reloaded (as usual with this mode to show the uploaded file and wait for another attachment). After this reload, all the data introduced in the form is recovered and shown correctly.... except for my new combos.

This is one of the combos that I have added to "posting_body.tpl"

Code: Select all

<select name="tipo"><option value="0">perro</option><option value="1">gato</option></select>
"tipo" is something that I am storing in my data base. When mode is "newtopic" I am setting "tipo" to 0, and I "select" this value with this javascript on "initialize"

Code: Select all

document.post.tipo.options[{TIPO}].selected= true;
With this, when mode is "newtopic", the default combo selection is "perro".

When mode is "edit" I set "tipo" to the value stored in the data base.

The problem comes when I start a new topic. I fulfil the form including the combo but I have not submited anything yet. Now I attach a file and the posting page is reloaded. Everything that I wrote in the form comes back correctly, but not the combo slection that I made.

I think that the problem is that it is not a new topic (therefore "tipo" is not set anywhere and {TIPO} is empty , and in the other hand, as I have not submitted the post yet, there is nothing stored on my database, therefore, {TIPO} is still empty --> It produces a javascript error.

Could any of you help me with this?.

Thanks

Re: Attachment Mod

Posted: Thu Sep 11, 2008 12:17 pm
by DavidIQ
That's not an attachment mod problem as I bet that if you add polls to the posting the same thing happens. You'll need to get help in the 2.0 support forum. All I can tell you is that you're not persisting the value on your page postback like the message textbox does.

Re: Attachment Mod

Posted: Fri Sep 12, 2008 6:17 am
by comboman
Thanks David,

I know that it is not a problem of the Attachment mode itself. It has been working perfectly in my forum for a long time. It is just that I thought that somebody with knoledge about how the "page postback" is performed could help me.

I will try to get help in the 2.0 support forum.

Cheers,
Isaac

Re: Attachment Mod

Posted: Fri Sep 12, 2008 1:03 pm
by DavidIQ
I'll lurk around for your post when it arrives. I wasn't trying to brush you off...just directing you to the right place in case someone else has a quick fix for it. Tech support usually doesn't browse around the MOD forums.

Re: Attachment Mod

Posted: Fri Sep 12, 2008 3:38 pm
by comboman
It´s OK. My english is not too good and my post could seem what I didn´t mean.
I appreciate your effort to redirect me to the correct place. See you there.
Thanks
Isaac

Re: Attachment Mod

Posted: Sun Sep 14, 2008 5:10 pm
by kumade
hello everybody.
I have attachment mod installed on phpbb 2.0.23 and i have following problem:
newly registered users cannot attach files to my forum (attach box just doesnt appears and in the bottom of the page, where all users rights are listed, there is a message "You cannot attach files in this forum". all settings of quotas etc are default), only when i promote them to admins.
is that normal? this mod doesn't works for simple users, or i miss some config?

Regards.

Re: Attachment Mod

Posted: Sun Sep 14, 2008 5:17 pm
by DavidIQ
You haven't set the forum permissions to allow uploading of attachments.

Re: Attachment Mod

Posted: Thu Oct 02, 2008 2:38 pm
by dalyman
Hello all...

I am using the Attachments Mod with the Extensions Mod... I have it configured so when people upload images it displays the picture inline. But the problem is that it is only displaying to logged in users. I want it to display to all users & guests.

Please advise...

Thanks!

Re: Attachment Mod

Posted: Thu Oct 02, 2008 2:41 pm
by Brf
You need to go into Forum Admin Permissions for each forum. Go into Advanced Mode and set the Download Files to "All".

Re: Attachment Mod

Posted: Thu Oct 02, 2008 2:45 pm
by dalyman
Thanks! I knew it had to be something easy!

You guys rock!