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: Using Variables
#4236
Using Variables 14 Years, 7 Months ago Karma: 0
Is there any reason why the $owner_id wouldn't be available when calling a Payment script? I can get $site_id just fine.

$conDat = array('_SiteId1' => $site_id, //passes the site id into IS
'_OwnerId' => $owner_id,
'_PaymentRef' => $payment_ref); //passes the Owner id into IS

$owner_id is always blank. If I assign it before the array it populates just fine so I know it isn't a problem with the array.

Any help would be appreciated.
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/25 05:56 By DaveC.
The administrator has disabled public write access.
 
#4241
Re: Using Variables 14 Years, 7 Months ago Karma: 54
The owner ID is computed by the front-end and is the standard current Joomla user ID

$user =& JFactory::getUser();
$owner_id = $user->id;

It corresponds to the current logged user and is used when creating the slave site.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/25 23:39 By edwin2win.
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