Customizing SMF > Tips and Tricks

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

(1/1)

dougiefresh:
In Sources/Subs.php, find this line:

--- Code: (Find) ---$data = strtr($data, array('<br>' => ''));
--- End code ---
and replace it with this line:

--- Code: (Replace) ---$data = strtr($data, array('<br>' => '', 'www.dropbox.com/' => 'dl.dropboxusercontent.com/'));
--- End code ---
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!

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

Navigation

[0] Message Index

Go to full version