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 attachment mod
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

spreadpoems
New Member

52 Posts

Posted - 31 July 2008 :  13:18:49  Show Profile
I'm having some issues with proeder's file attachment mod 1.2

When I upload a new image using browse, the tags and file name which are added to the topic look like this.(I replaced the brackets with curly braces)
quote:

[img]images/icon_paperclip.gif[img] Download Photo/File:
{url"http://www.mywebsite.com/forum/files/username/200873113230_image.png"}image.png{/url}

3.53 KB



When I insert a image which I have already uploaded the words "Insert Image" are added to the topic.

My visitors end up with an image of an attachment icon (icon_paperclip.gif), instead of the image they uploaded. To edit the forum topic is easy for me, but it leaves my members confused.

Any help would be appreciated. Thanks!

<

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 31 July 2008 :  14:07:43  Show Profile
Your second line should look like this:

{url="http://www.mywebsite.com/forum/files/username/200873113230_image.png"}image.png{/url}
<
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 31 July 2008 :  14:44:04  Show Profile
Do you have "Images in Posts" turned on in Admin Options --> Feature Configuration?<
Go to Top of Page

spreadpoems
New Member

52 Posts

Posted - 31 July 2008 :  18:13:30  Show Profile
"Images in Posts" is turned on.

Carefree, the second line did look as you suggest, my mistake when copying it here.<
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 31 July 2008 :  19:56:17  Show Profile
If nobody takes this on before I finish the other one I'm doing, I'll tackle it.<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 01 August 2008 :  01:30:03  Show Profile
The second problem is easy to fix. Just delete the two incidents of "insert image:" in lines 192 and 194 in OutputFile.asp and the one incident of "insert image:" in line 180 in myfiles.asp.

The first issue, I believe has to do with line 187 of outputFile.asp. That line is:
If ImageFileType=true then

I searched for ImageFileType and it is not defined anywhere. So, that is why for images it picks the files (other than images) attachments case. I could be wrong.<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 August 2008 :  09:00:22  Show Profile  Visit modifichicci's Homepage
you need to add

select case extension
case ".jpg", ".jpeg", ".gif", ".png", ".bmp"'##Image File extensions

ImageFileType=true
case else'##Downloadable file extensions
ImageFileType=false
end select

before

'###### Check for invalid chars in filename<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 01 August 2008 :  09:29:01  Show Profile
Thanks modifichicci
That does the trick! <
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 01 August 2008 :  13:30:14  Show Profile
Is it possible to make this mod independent of topic.asp. In other words, I want have a link for upload files and have the uploaded files go directly to the user's upload directory. In addition to keeping the current feature of attaching a file to a topic. I tried to open opo_upload_new.asp and do this but it doesn't look like it works that way.
Thanks<
Go to Top of Page

spreadpoems
New Member

52 Posts

Posted - 01 August 2008 :  16:33:30  Show Profile
texanman,
I did as you suggested and removed the "insert image:" in line 180 in myfiles.asp. and that fixed that issue.
The other problem is a bit more complicated.
I added the code as modifichicci suggested but now when I upload a new image I get the path twice like this

{br}{img}http://www.mywebsite.com/forum/http://www.mywebsite.com/forum/files/username/200881163821_image.png{/img}{br}

<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 01 August 2008 :  16:52:30  Show Profile
Do you have a txt file of your OutpufFile.asp?<

Edited by - texanman on 01 August 2008 16:52:53
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 01 August 2008 :  16:59:58  Show Profile
Use this file and see if it works for you
here<

Edited by - texanman on 01 August 2008 17:47:47
Go to Top of Page

spreadpoems
New Member

52 Posts

Posted - 01 August 2008 :  17:31:03  Show Profile
Ok, I fixed that problem...I think....If anyone has the same issue you can take a look at this discussion and get really confused http://forum.snitz.com/forum/topic.asp?TOPIC_ID=51110&whichpage=4

Basically you want to make sure outputFile.asp looks like this: (replace curly brackets with [])
{br}{img}<% =SUBFOLDER %>/<% =filename %>{/img}{br}

and does not include this:
"< % =strForumURL % >"<
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 04 August 2008 :  10:22:57  Show Profile
quote:
Originally posted by texanman

Is it possible to make this mod independent of topic.asp. In other words, I want have a link for upload files and have the uploaded files go directly to the user's upload directory. In addition to keeping the current feature of attaching a file to a topic. I tried to open opo_upload_new.asp and do this but it doesn't look like it works that way.
Thanks



If I understand what you are asking for, it is possible. I put a link in the user's myfiles page that will call pop_upload_new.asp. The file gets uploaded and added to the myfiles page but not associated with any post. The user can click on the attach and reuse from any post to use the file later.

The changes required can be found here.<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 04 August 2008 :  11:00:00  Show Profile
PPSSWeb:
That is exactly what I was asking. Thanks a million. You have been always helpful with this Mod.
I will take a look at what you have.
Thanks again.<
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 04 August 2008 :  11:58:29  Show Profile
PPSSWeb:
Seems to work fine but the pop_upload_new is not a pop anymore i.e. it will open in the current page you are at. Also, the file attach from a post is screwed now. First I get the pop_upload_new "two" "browse" boxes. when I try to uplaod a file, I get the following error:

Microsoft VBScript runtime error '800a01c9'
This key is already associated with an element of this collection
/upload.asp, line 37

where line 37 of upload.asp is: UploadRequest.Add name, UploadControl

<

Edited by - texanman on 04 August 2008 12:04:56
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07