Author |
Topic |
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 03 January 2005 : 06:38:05
|
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
|
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 |
|
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 03 January 2005 : 13:18:06
|
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) |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 03 January 2005 : 13:30:01
|
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 |
|
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 03 January 2005 : 16:16:29
|
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) |
|
|
dayve
Forum Moderator
USA
5820 Posts |
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 04 January 2005 : 10:53:50
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 04 January 2005 : 11:01:41
|
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. |
|
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
|
jeffery
Junior Member
USA
176 Posts |
Posted - 14 March 2005 : 14:35:49
|
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 |
|
|
|
Topic |
|