Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Closed Thread
Converting forum user image hot links to locally archived images
Old 10-25-2006, 12:22 AM Converting forum user image hot links to locally archived images
A&N
Junior Talker

Posts: 1
Trades: 0
Hi, I'm new to this forum and would like to apologize in advance for the "general" nature of this question. I am a new moderator for another Forum type website. The website has for years had no image upload feature and had users place in their posts external links to free photo hosting sites.

Recently, the website added a feature to upload images directly onto their server, allowing them to be locally archived rather than remotely linked to the other photo hosting website.

Now, 99.9 % of the Forum users have never purchased prints from the photo hosting site, including myself. Though the host site has never sent me any notification on my account, the older picture links on my posts have ceased to work, displaying only red X's instead. This is now beginning to happen all over the Forums, creating a slow errosion of images from the older posts.

It would be ideal to create some type of program or utility to "saveas", then convert all of the older images to the new local hosting, thus eliminating the problem. This would solve the problem for the newer externally linked images - unfortunately the older ones are probably lost.

+++++++++++++++++++++++++++++++++++++++++++

This seems like the logical way to go about it:

1) Mod temporarily locks topic for "maintenance" and copies thread to "backroom" area of the Forum.

2) Mod then runs a utility that:

a) Searches the thread for URL bbcode to indicate external image hotlinks,

-and-

b) Performs "saveas" of http://[freephotohostingsite].com/[FILENAME] to http://[forumwebsite].com/[SAME FILENAME] (Archiving the external image link to the local server)

-then-

c) Does a find/replace search through the thread's body text to replace all occurances of the phrase "http://[freephotohostingsite].com" with the phrase "http://[forumwebsite].com".

3) The mod does a quick Q.C. check the next day and if everything looks good, overwrites the old thread with the new corresponding "image converted" thread, and unlocks the topic.

+++++++++++++++++++++++++++++++++++++++++

Does anyone have any sample code or good ideas on implementing the items 2a, 2b, and 2c above?

Any help would be much appreciated!

A&N
A&N is offline
View Public Profile
 
 
Register now for full access!
Closed Thread     « Reply to Converting forum user image hot links to locally archived images
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08872 seconds with 12 queries