No.Is there a way to allow members to opt out of this?
I've not heard any complaints, but on my site people are generally just linking to images they have found on the internet, and not their own images (which they tend to upload as attachments).Generally speaking, how's everyones experience? Don't they complain about this? It's their images, so they might want to have "full controll". Maybe I am wondering little to much , but I love the idea!
Can you assign this to a forum by forum basis?
Or to resources only?
For my site the resource section is very screenshot dependent and members already host the images on an external site so they dont want to download and then reupload as an attachment. The attachments are the only way to trigger the pop up viewer that has the carousel/slider navigation and that is an integral part in keeping all the images nice and organized to help other users discover the resource.
I would like apply this addon to resolve that barrier.
// for signatures, we are actually modifying the user profiles.
if ($options->MetaMirror_CacheSigImages)
{
// Can't use attachments for signatures yet
self::$use_attachments = 0;
// We would never want to append info to a sig. Messes it up, and multiple changes would accumulate.
self::$append = 0;
self::$content_type = 'signature';
self::$table_name = 'xf_user_profile'; // table that we look for files in
self::$id_name = 'user_id'; // id field for this table
self::$column_name = 'signature'; // the name of the column that contains the message text (post body, or sig body)
self::runForContentType();
}
// NEW CODE, ASSUMES THE TABLE EXISTS,
self::$use_attachments = 0;
self::$append = 0;
self::$content_type = 'resource_update';
self::$table_name = 'xf_resource_update'; // table that we look for files in
self::$id_name = 'resource_update_id'; // id field for this table
self::$column_name = 'message'; // the name of the column that contains the message text (post body, or sig body)
self::runForContentType();
Are you using attachments for the RM with the extra code?Yep I can verify that that simple code mod has it working perfectly in the RM.
They seem to be direct links so there is probably something else that needs to be done to make them attachments.Are you using attachments for the RM with the extra code?
Can this be modified to also be used as an image SEO tool?
When rehosting the image as an attachment on our server can we set the name of the attachment/image to be /domain-username-thread-attachment#.jpg?
I'll add that code and try it with attachments enabled and see how it goes on my test version.
Hi @Mick West thanks for this great resource. I have a request regarding image names... Would it be possible to scramble the image names? Currently the hosts names are added to the image.
$new_name = md5($new_name).'.'.$safe_extension;
// absolute filename of file within that folder
$filename = "$path/$new_name";
Yeah, you could easily do:
PHP:$new_name = md5($new_name).'.'.$safe_extension;
before the line (currently 703):
PHP:// absolute filename of file within that folder $filename = "$path/$new_name";
I'll see if I can roll in that as an option in when I have time for an upgrade, along with an option for Resources, and maybe some other requests.
I use Attachments option on my website. Picture are not deleted on the server when i hard delete threads.
I run hourly clean up manualy and only "standard" attached files are deleted.
We use essential cookies to make this site work, and optional cookies to enhance your experience.