293 posts The Joomla Guy
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Power Elite Author: Sold more than $1M on Envato Market
  • Won a competition
  • Had an item featured on Envato Market
+12 more
hogash
says

Hi guys,

Just wanted to share with you my modified version of TGM plugin.

If you want to see it in action, please check this link : http://www.screenr.com/uYmH

I have added the following 2 features :

1. Plugin updating system : If you place an updated version of the plugin and configure it properly , the clients will get notified to update the plugin ( in my case , all the extra plugins are bundled inside the theme ) This will work like this :

  • a) You add a plugin version 1.0 inside the theme
  • b) In a future theme update , you want to also update the bundled plugin to version 1.1, so , you replace the old plugin with the new one, and also , change the plugin version name inside the TGM config file
  • c) Once your client will update the theme , he will also be notified that there is a newer version of the plugin available and he can update it from the TGM page.

2. WP 3.6 compatible ( Thanks to stmcan )

The modified version can be found here : http://pastebin.com/0jh83Xmw The sample config file can be found here : http://pastebin.com/5BLEASpd

Please note that the changes were only tested for my needs so , before integrating it in a theme check to see that everything works for you.

Best regards, Stefan

3802 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Had an item that was trending
  • Has been part of the Envato Community for over 7 years
+12 more
KrownThemes
says

Hi Stefan

Thanks for the work! I tried it and i see the plugin update notice, but when i try to update it doesn’t work. This is what i get:

Unpacking the update…
Installing the latest version…
Removing the old version of the plugin…
Could not remove the old plugin.
Plugin update failed.
All plugins installed and activated successfully. Return to the Dashboard

Permissions are set to 755 on the WordPress plugins folder..

3802 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Had an item that was trending
  • Has been part of the Envato Community for over 7 years
+12 more
KrownThemes
says

Nevermind, i’ve made a mistake.. All works well! :)

293 posts The Joomla Guy
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Power Elite Author: Sold more than $1M on Envato Market
  • Won a competition
  • Had an item featured on Envato Market
+12 more
hogash
says

Hi ,

I am glad it works :)

Best regards, Stefan

3 posts
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 4 years
sgeray
says

Hi,

@hogash, links are not working any more. Any chance to post it again?

Kind regards.

159 posts Can't stop the signal
  • Elite Author: Sold more than $75,000 on Envato Market
  • Had an item that became a weekly top seller
  • Sells items exclusively on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
+4 more
FranklinM2
says

Thanks for sharing this. I’ve created some gists for those using github.

Main: https://gist.github.com/FrankM1/6327490
Config: https://gist.github.com/FrankM1/6327495

3 posts
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 4 years
sgeray
says

Much appreciated. Cheers.


Thanks for sharing this. I’ve created some gists for those using github. Main: https://gist.github.com/FrankM1/6327490
Config: https://gist.github.com/FrankM1/6327495
1895 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme
says

Thank you everybody, updated my code :)

962 posts Rock 'N' Roll
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Won a Most Wanted contest
+4 more
LSVRthemes
says

Really great, thank you! It works, but it throws a following notice:

Plugin updated successfully

Notice: Undefined index: repository_id in … /wp-content/plugins/installer/classes/wprc-installer.php on line 638

All plugins installed and activated successfully. Return to the Dashboard

Not a big issue as I am assuming that not many buyers have debug mode enabled, but is there a solution to fix this? I am updating my plugins from theme’s folder.

498 posts Keep Walking
  • Has been part of the Envato Community for over 4 years
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Had an item that became a weekly top seller
+4 more
UXbarn
says

It works great! Thank you so much. :)

by
by
by
by
by
by