Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: dougiefresh on April 03, 2018, 02:37:26 AM

Title: Automatically get DropBox images to show using Share link....
Post by: dougiefresh on April 03, 2018, 02:37:26 AM
In Sources/Subs.php, find this line:
Code: (Find) [Select]
$data = strtr($data, array('<br>' => ''));and replace it with this line:
Code: (Replace) [Select]
$data = strtr($data, array('<br>' => '', 'www.dropbox.com/' => 'dl.dropboxusercontent.com/'));You must do this twice!

Now using images from your DropBox account is easier than ever!  You don't need to change the share link at all in order to show the image!
Title: Re: Automatically get DropBox images to show using Share link....
Post by: Rock Lee on April 19, 2018, 05:24:57 PM
You did not publish a mod on it already? -my memory starts to fail or I see the future :P- although it gives me ideas to apply other things ... Very good tip @dougiefresh


Regards!
Title: Re: Automatically get DropBox images to show using Share link....
Post by: dougiefresh on April 22, 2018, 09:07:56 PM
It's too small to be a mod and wouldn't be approved by the Customization Team.....  Other small mods have been rejected by them, and they advised to post on the Tips and Tricks board.  So that's what I did....
Title: Re: Automatically get DropBox images to show using Share link....
Post by: kenadams on March 12, 2019, 07:30:36 AM
thanks for this useful information i was using dropbox for a long time but i didn't knew about this feature