302 posts The Joomla Guy
  • Author Level 12
  • Power Elite Author
  • Winner
  • Featured Item
+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

3804 posts
  • Elite Author
  • Author Level 11
  • Trendsetter
  • 7 Years of Membership
+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..

3804 posts
  • Elite Author
  • Author Level 11
  • Trendsetter
  • 7 Years of Membership
+12 more
KrownThemes
says

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

302 posts The Joomla Guy
  • Author Level 12
  • Power Elite Author
  • Winner
  • Featured Item
+12 more
hogash
says

Hi ,

I am glad it works :)

Best regards, Stefan

3 posts
  • Collector Level 2
  • Exclusive Author
  • 4 Years of Membership
sgeray
says

Hi,

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

Kind regards.

161 posts Can't stop the signal
  • Elite Author
  • Weekly Top Seller
  • Exclusive Author
  • Author Level 7
+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
  • Collector Level 2
  • Exclusive Author
  • 4 Years of Membership
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
1899 posts Multimedia Artistry
  • Elite Author
  • 4 Years of Membership
  • Freebie
  • Most Wanted Winner
+4 more
dnp_theme
says

Thank you everybody, updated my code :)

974 posts Rock 'N' Roll
  • Elite Author
  • Author Level 8
  • 2 Years of Membership
  • Most Wanted Winner
+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.

500 posts Keep Walking
  • Trendsetter
  • 4 Years of Membership
  • Elite Author
  • Author Level 9
+5 more
UXbarn
says

It works great! Thank you so much. :)

by
by
by
by
by
by