News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Automatically get DropBox images to show using Share link....

Started by dougiefresh, April 03, 2018, 02:37:26 AM

Previous topic - Next topic

dougiefresh

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!

-Rock Lee-

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!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

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....

kenadams

thanks for this useful information i was using dropbox for a long time but i didn't knew about this feature


Advertisement: