MTM2.com

A forum for mtm2 discussion
FAQ :: Search :: Members :: Groups :: Register
Login
It is currently Thu Nov 28, 2024 8:31 pm



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Picture uploading
PostPosted: Thu Oct 28, 2004 11:43 am 
Member
User avatar

Joined: Mon Oct 25, 2004 11:05 pm
Posts: 10
Location: South Dakota
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 11:55 am 
Glow Ball
User avatar

Joined: Tue Feb 02, 1999 7:00 pm
Posts: 23
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 12:23 pm 
Trackologist
User avatar

Joined: Wed Jan 03, 2001 2:01 pm
Posts: 1027
Location: Nebraska
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 :).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 1:00 pm 
MTM2 Fanatic

Joined: Thu Sep 04, 2003 1:48 pm
Posts: 680
Here, this one is the best available.

http://www.imagehosting.us/index.php


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 1:43 pm 
Trackologist
User avatar

Joined: Wed Jan 03, 2001 2:01 pm
Posts: 1027
Location: Nebraska
Hmmm upon first glance that seems like a pretty nice alternative to those who have no other means of uploading pics, Mat.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 1:45 pm 
Member
User avatar

Joined: Mon Oct 25, 2004 11:05 pm
Posts: 10
Location: South Dakota
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 3:41 pm 
Free Image Hosting Directory


Top
  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 5:10 pm 
Member
User avatar

Joined: Mon Oct 25, 2004 11:05 pm
Posts: 10
Location: South Dakota
Thanks for the links guys! :D


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 29, 2004 7:46 pm 
Member

Joined: Thu Mar 02, 2000 2:01 pm
Posts: 539
Location: Phoenix, AZ
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 ©¿©¬


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 29, 2004 8:23 pm 
Glow Ball
User avatar

Joined: Tue Feb 02, 1999 7:00 pm
Posts: 23
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:
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:
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:
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 29, 2004 9:43 pm 
Member

Joined: Sat Feb 26, 2000 2:01 pm
Posts: 621
Location: Mississippi , USA
Here...



http://brandonbatson.com/upload/

_________________
<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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group