Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: dougiefresh in April 03, 2018, 02:37:26 VORMITTAG

Titel: Automatically get DropBox images to show using Share link....
Beitrag von: dougiefresh in April 03, 2018, 02:37:26 VORMITTAG
In Sources/Subs.php, find this line:
Code (Find) Auswählen
$data = strtr($data, array('<br>' => ''));
and replace it with this line:
Code (Replace) Auswählen
$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!
Titel: Re: Automatically get DropBox images to show using Share link....
Beitrag von: -Rock Lee- in April 19, 2018, 05:24:57 NACHMITTAGS
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!
Titel: Re: Automatically get DropBox images to show using Share link....
Beitrag von: dougiefresh in April 22, 2018, 09:07:56 NACHMITTAGS
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....
Titel: Re: Automatically get DropBox images to show using Share link....
Beitrag von: kenadams in März 12, 2019, 07:30:36 VORMITTAG
thanks for this useful information i was using dropbox for a long time but i didn't knew about this feature