176 posts The Joomla Guy
  • Won a Competition
  • Power Elite Author
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Most Wanted Bounty Winner
  • Bought between 100 and 499 items
  • Referred between 500 and 999 users
  • Has been a member for 5-6 years
+4 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

3434 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 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..

3434 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

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

176 posts The Joomla Guy
  • Won a Competition
  • Power Elite Author
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Most Wanted Bounty Winner
  • Bought between 100 and 499 items
  • Referred between 500 and 999 users
  • Has been a member for 5-6 years
+4 more
hogash says

Hi ,

I am glad it works :)

Best regards, Stefan

3 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
foxendesign says

Hi,

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

Kind regards.

84 posts
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Exclusive Author
  • Has been a member for 3-4 years
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
  • Exclusive Author
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
foxendesign 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
1674 posts Multimedia Artistry
  • Author had a Free File of the Month
  • Has been a member for 3-4 years
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
dnp_theme says

Thank you everybody, updated my code :)

501 posts
  • Slovakia
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 1-2 years
  • Most Wanted Bounty Winner
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Exclusive Author
LubosVolovar 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.

403 posts Keep Walking
  • Has been a member for 3-4 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 100 and 499 items
  • Referred between 100 and 199 users
  • Exclusive Author
UXbarn says

It works great! Thank you so much. :)

by
by
by
by
by
by