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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Very simple mod ; Image uploading
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 03 January 2005 :  06:38:05  Show Profile  Visit MarcelG's Homepage
Here's a VERY simple mod, that requires only the addition of a link to ImageShack.
In fact it isn't even a mod.
Anyway ; If you'd use this 'mod' in a default 3.4.05 forum, you'd need to do this:
Step 1:
Find these lines in post.asp (lines 1302 and 1303)
Response.Write	"              <tr>" & vbNewline & _
		"                <td bgColor=""" & strPopUpTableColor & """> </td>" & vbNewline & _


Replace these two lines with this:
Response.Write	"              <tr>" & vbNewline & _
"                <td bgColor=""" & strPopUpTableColor & """>"
if strIMGInPosts = "1" then
	if strRqMethod = "Edit" or strRqMethod = "EditTopic" or _
	strRqMethod = "Reply" or strRqMethod = "ReplyQuote" or _
	strRqMethod = "Topic" or strRqMethod = "TopicQuote" then 
Response.Write "		<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize  & """>" & vbNewLine & _
	"                    <a href=""http://www.imageshack.us"" target=""_new"">" & getCurrentIcon(strIconPaperclip,"Upload picture using ImageShack","align=""absmiddle""") & "</a>" & vbNewLine & _
	"                  <a href=""http://www.imageshack.us/"" title=""Upload a picture using ImageShack"" target=""_new"">" & vbNewLine & _
	"                  Upload picture</a> " & vbNewLine & _
	"                  </font>"
	end if
end if
Response.write " </td>" & vbNewline & _


Step 2: Enable images in posts.
That's it!
ImageShack provides the forumcode required to include the files on your forum. It even provides code for clickable thumbnails!
Example:
[URL=http://img90.exs.cx/my.php?loc=img90&image=vinci17ku.jpg][IMG]http://img90.exs.cx/img90/556/vinci17ku.th.jpg[/IMG][/URL]
This code doesn't work on snitz, but it's easily modified: Just add the quotes before the actual URL ;
[URL="http://img90.exs.cx/my.php?loc=img90&image=vinci17ku.jpg"][IMG]http://img90.exs.cx/img90/556/vinci17ku.th.jpg[/IMG][/URL]
Result:


Perhaps, another mod could make the forumcode that Imageshack suggests working....
Anyway ; enjoy!

Edited by - MarcelG on 03 January 2005 06:54:07

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 03 January 2005 :  06:44:44  Show Profile  Visit MarcelG's Homepage
Woeps...I forgot one thing completely ;
You also need to add this line to inc_iconfiles.asp:
Const strIconPaperclip = "attachment.gif|16|16"

And, safe this file into your images folder, as attachment.gif :
That's all.


portfolio - linkshrinker - oxle - twitter
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 03 January 2005 :  13:18:06  Show Profile  Visit muzishun's Homepage
I think dayve is working on a photo uploading MOD that will do this as well. The difference is that you won't have to host the pics somewhere else... I'll dig around for the thread.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 03 January 2005 :  13:30:01  Show Profile  Visit MarcelG's Homepage
Bill, I know that ; there are various file attachments mods out there, but the beauty of this one is that it doesn't require you to really upload anything on your forum, and doesn't require any file uploads on your site/server.
It just 'opens up' the features of the ImageShack environment.
The reason I build this, was because at oxle I do have an upload environment set up, but I haven't given every user the right to upload to my server.
So, every non-authorised user gets this functionality instead of the actual upload facility.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 03 January 2005 :  16:16:29  Show Profile  Visit muzishun's Homepage
Understandable. If it works for ya, I say keep it.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 04 January 2005 :  10:43:53  Show Profile  Visit dayve's Homepage
you might also want to check out http://tinypic.com . they give you a nice short url and host the image for you. they don't give you thumbnails, but it is a nice alternative and they provide you with the following formats for use.

http://tinypic.com/162zah
<img src="http://tinypic.com/162zah">
[img]http://tinypic.com/162zah[/img]
http://tinypic.com/view.html?pic=162zah



Edited by - dayve on 04 January 2005 10:46:07
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 04 January 2005 :  10:53:50  Show Profile  Visit MarcelG's Homepage
Yeah, but they won't host any nudity lol
thanks, perhaps this mod could be 'tuned' to include a variable destination URL and href title to enable the board-administrator to dynamically assign the service to be used.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 04 January 2005 :  11:01:41  Show Profile  Visit dayve's Homepage
quote:
The following types of files may not be uploaded under any circumstances:

Files that are pornographic. This includes, but is not limited to, files depicting genetalia, nudity, or sexual situations


neither does imageshack.

Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 04 January 2005 :  11:09:51  Show Profile  Visit MarcelG's Homepage
mmmm....
time for plan B

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

jeffery
Junior Member

USA
176 Posts

Posted - 14 March 2005 :  14:35:49  Show Profile
quote:
Originally posted by muzishun

I think dayve is working on a photo uploading MOD that will do this as well. The difference is that you won't have to host the pics somewhere else... I'll dig around for the thread.



Is this photo uploading mod available?

www.thomasforum.com
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.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07