Picture uploading

mtm2 and other sensible chat
Post Reply
User avatar
NIRc_uLtRaMaX_®
Member
Posts: 10
Joined: Mon Oct 25, 2004 11:05 pm
Location: South Dakota
Contact:

Picture uploading

Post by NIRc_uLtRaMaX_® »

How do I upload pictures to mtm2.com for use in the forums but with a hyperlink?


Ex. http://mtm2.com/~forum/images/traxxmaxgstand.jpg


If someone could explain it, I will test it in the "Testing the Message Board" section.
User avatar
Phineus
Glow Ball
Posts: 24
Joined: Tue Feb 02, 1999 7:00 pm

Post by Phineus »

Currently, there is no public image uploader. There used to be, once upon a time, but it was subject to much abuse. I know far more than before and can stop a lot of the problems, but I can't stop everything. And I'm pretty sure several others, both of this site and of others, would like to see these difficulties overcome. But unfettered wholesale uploading just isn't feasible. So, I'm willing to entertain ideas and suggestions if anybody has any.
User avatar
SLO_COPE
Trackologist
Posts: 1027
Joined: Wed Jan 03, 2001 2:01 pm
Location: Nebraska
Contact:

Post by SLO_COPE »

I'm not sure there's a way to do it without it getting abused, Phin. We used to have a public uploader, but before long people were using it for illicit pictures of all sorts and other things that went against the grain of its intended purpose. So we closed it off and made it a "SLO" only accessory.

I think most people have other avenues available for uploading their own pics nowadays. Max, I'm guessing you want a pic or pictures uploaded for a beta track. If so, just send em over and I'll hook you up, bud :).
Mat-Allum
MTM2 Fanatic
Posts: 680
Joined: Thu Sep 04, 2003 1:48 pm

Post by Mat-Allum »

Here, this one is the best available.

http://www.imagehosting.us/index.php
User avatar
SLO_COPE
Trackologist
Posts: 1027
Joined: Wed Jan 03, 2001 2:01 pm
Location: Nebraska
Contact:

Post by SLO_COPE »

Hmmm upon first glance that seems like a pretty nice alternative to those who have no other means of uploading pics, Mat.
User avatar
NIRc_uLtRaMaX_®
Member
Posts: 10
Joined: Mon Oct 25, 2004 11:05 pm
Location: South Dakota
Contact:

Post by NIRc_uLtRaMaX_® »

Hey cool! thanks for the cool link Mat! Ill add that to my favs and definetly use it sometime. But since COPE offered, I'm gonna take his offer. You should have mail in a few mins bud!! ;D
Link

Post by Link »

User avatar
NIRc_uLtRaMaX_®
Member
Posts: 10
Joined: Mon Oct 25, 2004 11:05 pm
Location: South Dakota
Contact:

Post by NIRc_uLtRaMaX_® »

Thanks for the links guys! :D
KC
Member
Posts: 539
Joined: Thu Mar 02, 2000 2:01 pm
Location: Phoenix, AZ
Contact:

Post by KC »

What I do to allow pic uploads on vales.com is rename the extention on save regardless of the inital file upload, and then block all display of the image via that unique extention if the reffer tag does not says vales.com

e.g. a Forum Pic uploaad gets .FP (for Forum Post) added to the end of it.
So myPic.jpg would be saved as myPic.jpg.FP
My html tags call the pic with that name, and display it fine.

Once you can rename the upload, you can set server rules for their access and not effect toher images (or files of any type) you might want outside acces to, like my sig image from my server.
It's a gif image, which I don't block, but you can't upload a .gif image on my site and display it here, it gets renamed on upload.

I am on an NT server, so I use aspSmart to get the UL and rename it, andISAPI/ReWrite to do the checking for file calls.

For a Unix box like this, the .htaccess? file (can't recall the name of the file) allows for Per rules like:

If it is call to an .FP file
then
if the call is from this web site serve it up.
else don't.
end if

Just find a way for your perl UL routine to modify the UL name and your set.
<IMG SRC="http://vales.com/sigs/KC.gif" border=0>
It's all how you look at things ©¿©¬
User avatar
Phineus
Glow Ball
Posts: 24
Joined: Tue Feb 02, 1999 7:00 pm

Post by Phineus »

Howdy stranger :-)

>> So myPic.jpg would be saved as myPic.jpg.FP

Man, I always wondered what that FP stood for, lol Forum pic.

> For a Unix box like this, the .htaccess?

Yes, that's exactly it. And I've used it before too but not for a long while. For example, I just had a quick look and found three different methods. I'll have to test to see which works best.

Code: Select all

SetEnvIfNoCase Referer "^http://forum.mtm2.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://forum.mtm2.com$" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
  Order Allow,Deny
  Allow from env=locally_linked
</FilesMatch>


Code: Select all

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} .*jpg$|.*gif$|.*png$ [NC]
RewriteCond %{HTTP_REFERER} ^[http|nttp].*$
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !forum\.mtm2\.com [NC]
RewriteRule \.(jpg|gif|png)$ - [F]


Code: Select all

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://forum.mtm2.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]


> Just find a way for your perl UL routine to modify the UL name and your set.

Perl has the best string handling functions of any scripting or programming language. And it allows a ton of other stuff to be done too. One of my biggest concerns is not so much the scripting but that this is a low-ish traffic, zero mod forum, and I'd sure like to keep it that way.


PS. FYI, a few people are using your vales gaming site to hot link images.
Psyco
Member
Posts: 621
Joined: Sat Feb 26, 2000 2:01 pm
Location: Mississippi , USA
Contact:

Post by Psyco »

<p><font color="#990000">"I regret not what I've done, but what I didn't do."</font></p>
<p><a href="http://brandonbatson.com"><font color="#000066"><b><font color="#006666">http://brandonbatson.com
</font></b></font></a> </p>
Post Reply