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: Get Site_id
#2912
Get Site_id 14 Years, 4 Months ago Karma: 0
I want to add a few new fields at the registration from for different sites.
for example:
Site A will have country and city fields
Site B only add on country field.

I added a few lines code at the registration form as following require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_multisites'.DS.'classes'.DS.'utils.php');
$session =& JFactory::getSession();
$site_id=$session->get('site_id', null,'contracts');
echo $site_id;

I got no return value of $site_id

Any idea of how to get the value of $site_id?
Thank you,
Amy Foy
cphillips31
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2914
Re: Get Site_id 14 Years, 4 Months ago Karma: 54
First condition to have the script executed, is that you have the "billable website" functionality enabled when you define the "mutlsites" menu entry.
Only billable website can execute scripts or plugins.

The second condition is to process the "billable website" functionality is that you have website quota avaialble.
You can order such quota when you go in the "settings" menu.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/01/06 18:32 By edwin2win.
The administrator has disabled public write access.
 
#2915
Re: Get Site_id 14 Years, 4 Months ago Karma: 0
where is the "setting menu" ?
cphillips31
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2916
Re: Get Site_id 14 Years, 4 Months ago Karma: 54
In JMS, you have
- Manage Site
- Template
- Check patches
- User manual
- Check for update
- SETTINGS <--------------- HERE
- About us
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
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