Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Proeders 1.2 file attach problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

fishincomau
Starting Member

5 Posts

Posted - 07 January 2009 :  20:05:58  Show Profile
i have a fresh install of snitz and the Proeders 1.2 file attach mod. Problem is that when i attach a file to the post the image does not appear in the post. Only the paper clip and "download attachment: picturename.jpg" will appear and a link to the image file.

here is what gets entered into the post after a image is attached

{img]http://www.example.com.au/forum/icon_paperclip.gif[/img] Download Attachment: http://www.example.com.au/forum/pictures/admin/20091812010_flatty.jpgflatty.jpg[/url}
28.09 KB

the filename of the picture is flatty.jpg

any help would be great.<

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 07 January 2009 :  20:50:12  Show Profile
I haven't tested this, but it should do the trick. That routine is located in "outputfile.asp". If you haven't modified yours, get this and save it as "outputfile.asp".<
Go to Top of Page

fishincomau
Starting Member

5 Posts

Posted - 07 January 2009 :  20:59:55  Show Profile
it still gives me the download attachment: and a link to the picture

here is what is in the post after i modified the outputfile.asp

Download Attachment: flatty.jpg
28.09 KB

here is the code

{img]http://www.fishin.com.au/forum/pictures/admin/200918125554_flatty.jpg Download Attachment: flatty.jpg
28.09 KB<
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 07 January 2009 :  22:05:14  Show Profile
OK, lookm for this line in outputfile.asp (approx: Line 91):

ImageFileType=false

and change it to:

ImageFileType=true

That should put the images in as inline. I hope that it helps.
<

Cheers,

David Greening
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 07 January 2009 :  22:27:59  Show Profile
quote:
http://www.fishin.com.au/forum/pictures/admin/200918125554_flatty.jpg


Where is the "200918125554_" coming from?<
Go to Top of Page

fishincomau
Starting Member

5 Posts

Posted - 07 January 2009 :  22:57:31  Show Profile
Still not working now i get

Insert Image:
http://www.fishin.com.au/Forum/Images/admin/200918145541_flatty.jpg" border="0">
28.1 KB

Thanks<

Edited by - fishincomau on 07 January 2009 22:58:54
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 08 January 2009 :  00:45:42  Show Profile
OK, around line 208 of the outputfile.asp file, replace the following code:
	  If ImageFileType=true then
    		%>
		    <script>
		    if (opener.document.PostTopic.Message.createTextRange && opener.document.PostTopic.Message.caretPos) {
		      var caretPos = opener.document.PostTopic.Message.caretPos;
		      caretPos.text = "\n\nInsert Image:
[img]<% =strForumURL %><% =SUBFOLDER %>/<% =filename %>[/img]
 <% =strFileSize %>";
		    } else {
		    opener.document.PostTopic.Message.value+="\n\nInsert Image:
[img]<% =strForumURL %><% =SUBFOLDER %>/<% =filename %>[/img]
 <% =strFileSize %>";
		    }
		    </script>
    		<%
  	    Else
    		%>
		    <script>
		    if (opener.document.PostTopic.Message.createTextRange && opener.document.PostTopic.Message.caretPos) {
		      var caretPos = opener.document.PostTopic.Message.caretPos;
		      caretPos.text = "\n\n[img]<% =iconimage %>[/img] Download Attachment: [url=\"<% =subfolder %>/<% =filename %>\"]<% =oldfilename %>[/url]
<% =strFileSize %>";
		    } else {
		    opener.document.PostTopic.Message.value+="\n\n[img]<% =iconimage %>[/img] Download Attachment: [url=\"<% =subfolder %>/<% =filename %>\"]<% =oldfilename %>[/url]
<% =strFileSize %>";
		    }
		    </script>
   		<%
  	    End If


With:

	  If ImageFileType=true then
    		%>
		    <script>
		    if (opener.document.PostTopic.Message.createTextRange && opener.document.PostTopic.Message.caretPos) {
		      var caretPos = opener.document.PostTopic.Message.caretPos;
		      caretPos.text = "\n\nInsert Image:
[img]<% =SUBFOLDER %>/<% =filename %>[/img]
 <% =strFileSize %>";
		    } else {
		    opener.document.PostTopic.Message.value+="\n\nInsert Image:
[img]<% =SUBFOLDER %>/<% =filename %>[/img]
 <% =strFileSize %>";
		    }
		    </script>
    		<%
  	    Else
    		%>
		    <script>
		    if (opener.document.PostTopic.Message.createTextRange && opener.document.PostTopic.Message.caretPos) {
		      var caretPos = opener.document.PostTopic.Message.caretPos;
		      caretPos.text = "\n\n[img]<% =iconimage %>[/img] Download Attachment: [url=\"<% =subfolder %>/<% =filename %>\"]<% =oldfilename %>[/url]
<% =strFileSize %>";
		    } else {
		    opener.document.PostTopic.Message.value+="\n\n[img]<% =iconimage %>[/img] Download Attachment: [url=\"<% =subfolder %>/<% =filename %>\"]<% =oldfilename %>[/url]
<% =strFileSize %>";
		    }
		    </script>
   		<%
  	    End If

This change is in addition to the earlier change I gave you.<

Cheers,

David Greening
Go to Top of Page

fishincomau
Starting Member

5 Posts

Posted - 08 January 2009 :  04:53:39  Show Profile
ok i have done this and when i try to attach a file nothing gets put into the post its just blank.<
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 08 January 2009 :  05:20:37  Show Profile
Did you get my e-mail. Some of the code for some reason gets taken out on here, so I e-mailed you the code.<

Cheers,

David Greening
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 08 January 2009 :  05:24:45  Show Profile
You can copy the version that I use at: http://www.classicmotorcycling.com.au/outputfile.txt

If that makes it easier for you.
<

Cheers,

David Greening
Go to Top of Page

fishincomau
Starting Member

5 Posts

Posted - 08 January 2009 :  16:45:35  Show Profile
Still did not work

Insert Image:
{img]http://www.fishin.com.au/forums/pics/admin/20091984413_flatty.jpg[/img]
28.02 KB<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.47 seconds. Powered By: Snitz Forums 2000 Version 3.4.07