4images already handles remote image, either, from the upload page or from the ACP - > images pages.
jeez...read again the question would you?
@marod0er:
I think this was requested before, and I havent seen anyone coded such mod yet.
But, if you have a little mysql knowlege here is an idea what you can do:
1) add a new field into 4images_images table in the database, lets call it as
image_url (obviosly the name is your choice
). Make it
VARCHAR(255)2) add the infromation about that field into
includes/db_field_definitions.php:
$additional_image_fields['image_url'] = array("URL to an external site", "text", 0);
3) in
includes/functions.php find:
if ($open_window) {
insert above:
global $image_row;
if (!empty($image_row['image_url']))
{
$thumb = "<a href=\"".$image_row['image_url']."\" target=\"externalsite\">".$thumb."</a>";
}
else
4) if you upload images from ACP then this is it, but if you want upload images from members upload page, you'll need add
{lang_image_url} and
<input type="text" value="{image_url}" name="image_url"> tags into member_uploadform.html template.
a few notes:
- image upload is required
- the url must contein http://, https://, ftp:// or etc protocol part, otherwise it will appent the url into the url of your page.