Softaculous


Topic : Hooks - Unclear as how to use


Posted By: mylogon on November 17, 2011, 9:57 pm
If I read the hooks documentation correctly, all I have to do is rename the file post_upgrade.txt post_upgrade.php and say, insert the

// The id for WordPress is 26
    if($soft == 26){
        /* Do things only if its WordPress */   

but, then it shows arrays with username and passwords for each database.

Confused, does doing the above automatically update Wordpress every time
you door am I missing it?

Also, where is the list of Id's?


Posted By: mylogon on November 17, 2011, 9:59 pm | Post: 1
Whoops, I see the script id's file.

Posted By: Brijesh on November 18, 2011, 5:20 am | Post: 2
Hi,

The id '26' is the id for WordPress and whenever WordPress is installed the code written in the if condition will be executed.
You can find the script ids here:
/path-to-softaculous/enduser/scripts.php

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: mylogon on November 18, 2011, 5:50 am | Post: 3
No I found the id's - see second post - but have it set and it does not seem to update anything.  Trying to find out how I can force a test, or add an id after the fact to update all.

In the example all my Wordpress still say they need to be updated.

Posted By: Brijesh on November 18, 2011, 7:07 am | Post: 4
Hi,

What code are you trying to execute and what output do you desire ?
Can you please open a Support ticket so that we can help you better.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.