152 posts
  • Exclusive Author
  • Has been a member for 4-5 years
partnuz says

Hi Thomas

Thanks for the great work, but it doesn’t seem to work like it should. If one of the plugins is out of date i simply get the notice. But there is no option for the user to update the plugin.

This is how it currently looks:

This is how Stefan’s version looks:

You’ll see the difference. With your version i do get the notice, but there’s absolutely no way to update the plugin.

It doesn’t have this option. I asked the author some time ago and he replied few days ago https://github.com/thomasgriffin/TGM-Plugin-Activation/issues/163

@hogash perhaps you could create your version but instead of modifying core file you could use OOP inheritance. For example

class Original{ code… }

class Yours extends Original{ overwrite few functions }

This way it would be much easier to allow other developers to improve your code.

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 working on a new Wordpress theme, however, i have many things to take care before integrating the new version TGM plugin.

As soon as i reach the step where i need to implement TGM i will have another shoot at it and share the code with all of you.

Best regards, Stefan

3 posts
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
  • Europe
artless says

Hi,

i’ve merged the new tgmpa version ( 2.4.0 ) and hogash update function together. Also added “Update” function as “Bulk Action” to update more than one item at once and for easier usability.

http://pastebin.com/b9t1YQLC

It works for me, but test it before you implement it to your projects.

Have a nice day! Christian

89 posts Live. Love. ASAP
  • Elite Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Sold between 100 000 and 250 000 dollars
  • Most Wanted Bounty Winner
  • Author had a Free File of the Month
  • Romania
+2 more
liviu_cerchez says

Hi,

i’ve merged the new tgmpa version ( 2.4.0 ) and hogash update function together. Also added “Update” function as “Bulk Action” to update more than one item at once and for easier usability.

http://pastebin.com/b9t1YQLC

It works for me, but test it before you implement it to your projects.

Have a nice day! Christian

Thank you Christian, I’ll probably be testing and using this updated version in my items. If you ever modify it, post an update on this thread please. I appreciate your work and time on this.

3 posts
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
  • Europe
artless says

You’re welcome.

Little Update: The original version 2.4.0 has a bug, which appears when you click on the “Install” link for a single plugin and your plugin source url has parameters, for example: http://s3.amazon.com/?parameter1=3232&parameter2=23232

I’ve fixed the bug and updated the pastebin: http://pastebin.com/b9t1YQLC

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

I’ve updated the gist to version 2.4.0. Thanks @artless

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

As always test before deploying.

922 posts
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Power Elite Author
  • Most Wanted Bounty Winner
  • Bought between 500 and 999 items
  • Referred between 500 and 999 users
  • Interviewed on the Envato Notes blog
  • Envato Studio (Microlancer) Beta Tester
  • Won a Competition
+8 more
MDNW says

I noticed that on Multisite installations, updating more than one plugin at once (ie: checking all boxes and hitting update) will trigger a blank-page-fail (and it will only update the first plugin that it attempts)... but updating them one at a time seems to work fine.

It’s not really a huge issue, but it’s worth logging in case anyone else encounters this (or if anyone has a solution!). For the time being, I’m just going to add text to instruct users to update plugins “one at a time” to be safe :)

Question: What does the “THEMENAME” declaration at the top of your config file do? Is that necessary?

Great work though – this little modification is awesome!

3 posts
  • Exclusive Author
  • United Kingdom
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 1 and 9 items
Artivity says

Question: What does the “THEMENAME” declaration at the top of your config file do? Is that necessary?

Looks like it’s been taken from the version that hogash posted originally and just declares a text domain that’s referenced in the main tgm plugin file. No need for it at all in the version that FranklinM2 has put up on GitHub as the main tgm file on there has a text domain already hard coded in as per the original plugin class.

As you say though, very handy this!

34 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 3-4 years
  • Exclusive Author
  • Europe
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
fireform says

Hi guys,
I’m using FranklinM2’s version and have been noticed that plugins hosted at WordPress Repository and which need to be updated aren’t visible on “Install Required Plugins” page. Also no nag about newer version. But all is good with pre-packaged plugins. Any thoughts?

Example:
array(
    'name' => 'Contact Form 7',
    'slug' => 'contact-form-7',
    'version' => '3.8.3',
    'required' => true,
    'external_url' => ''
),
So current CF7 version is 3.9 and it isn’t visible and no message about update.
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

HI @fireform,

Now that you mention it I have noticed it too. I’ll look into the code and see what’s going on.

by
by
by
by
by
by