English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Changing Site Status
#4282
Changing Site Status 14 Years, 7 Months ago Karma: 0
Hello

When changing the site status with updatestatus() can you call that from the onDeploy_OK function or is that to early in the process.

Also is it possible to set a site to 'Confirmed' in the onDeploy_OK function? ( I am using billable and have plenty of quota )

Thanks
Dave
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4286
Re: Changing Site Status 14 Years, 7 Months ago Karma: 54
The "OnXXXX" function are only called from the front-end and are used by the plugin or to execute the speciific scripts from the front-end.

If you want to modify the status of a website into the onDeploy_OK, this is possible.
In general, it is recommended to wait that the payment is performed but this is possible.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4287
Re: Changing Site Status 14 Years, 7 Months ago Karma: 0
Thanks for your reply.

If I wanted to set $order status manually what would the correct syntax be? eg:

I would like $order_status = $d["order_status"]; to be set to Confirmed would this translate to $order_status = 'Confirmed'; ?

Thanks
Dave
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4296
Re: Changing Site Status 14 Years, 7 Months ago Karma: 54
Yes you can put the word "Confirmed".
It is case sensitives and checked literally.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4301
Re: Changing Site Status 14 Years, 7 Months ago Karma: 0
Thanks again for your reply.

Is there any reason why I couldn't use site_id or owner_id?

Code:

MultisitesUtils::updateStatus( 'site_id', $site_id, $newStatus);

Code:

MultisitesUtils::updateStatus( 'owner_id', $owner_id, $newStatus);
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/06/01 02:36 By DaveC.
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla