Advertisement:

Author Topic: Automatically get DropBox images to show using Share link....  (Read 395 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,670
  • Mod King
    • XPtsp.com Community
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!
News: Missing GitHub repository...

My Free Simple Machines mods on XPtsp.com, Simple Machines Customization Site, and at GitHub!
Problem uninstalling mods?  Try Arantor's Sortable Packages (and Installed Time) mod!  It's super helpful!

Offline Rock Lee

  • SMF Hero
  • ******
  • Posts: 1,483
  • Gender: Male
  • Digitalizando un nuevo mundo :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Automatically get DropBox images to show using Share link....
« Reply #1 on: Yesterday at 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!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!