View Single Post
Old 05-20-2010, 02:13 AM   #5 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
event wise it could be fairly simple to get a local copy working, not saying it needs doing, I must be bored . But customizing the vbulletin save/modify event isn't for everyone.
Code:
user adds/modifies post:
for each img tag
  if img url is not em based (begins with http...ecomodder.com)
    convert url to filename (uuencode?) and add original extension.
    if file doesn't exist 
      get image data into local filesystem (socket read) using filename
      convert filename to EM url (i.e. add appropriate http:// prefix)
  use em url for img url
preview can use whatever url is in the message

also, might want to secure the em url path so only logged in users can see pics if bandwidth is an issue.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 05-20-2010 at 02:18 AM..
  Reply With Quote
The Following User Says Thank You to dcb For This Useful Post:
Christ (05-20-2010)