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: please clarify this
#1465
please clarify this 14 Years, 9 Months ago Karma: 0
In the com_multisites/models/manage.php after makeDB function

if eorror array is empty returning that array..

while creating slave site with new database, only database creating and tables are not created.

after comment the return $error, tables created..

is that return statement kept purposely or any thing wrong from my side while installing component... please clarify me.




// Duplicate the DB
if ( !empty( $fromSiteID)) {
// If duplicate in the same DB ?
if ( ($toConfig->getValue( 'config.dbtype') == $fromConfig->getValue( 'config.dbtype'))
&& ($toConfig->getValue( 'config.host') == $fromConfig->getValue( 'config.host'))
&& ($toConfig->getValue( 'config.db') == $fromConfig->getValue( 'config.db'))
)
{} // Do nothing
// Else try Create the "to DB" when it does not exists
else {
$errors = MultisitesDatabase::makeDB( $fromConfig, $toConfig);
if ( empty( $errors )) {
return $errors;
}
}

// Connect on the "From" DB
if ( $fromSiteID == ':master_db:') {
$fromDB =& Jms2WinFactory::getMasterDBO();
}
else {
$fromDB =& Jms2WinFactory::getSlaveDBO( $fromSiteID);
}
}
else {
$fromDB =& Jms2WinFactory::getMasterDBO();
}
hassanali20
Senior Boarder
Posts: 51
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1466
Re:please clarify this 14 Years, 9 Months ago Karma: 54
Which JMS release do you use.
It seems you are not using the RC5 that fix a bug in this routine.

See change history
www.jms2win.com/faq/change-history-v12x


The test is NOT empty

$errors = MultisitesDatabase::makeDB( $fromConfig, $toConfig);
if ( !empty( $errors )) {
return $errors;
}


I suggest that you get the latest version
See FAQ for procedure /faq#sec-122
/get-latest-version
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/08/05 13:24 By edwin2win.
The administrator has disabled public write access.
 
#1487
Re:please clarify this 14 Years, 9 Months ago Karma: 0
Thanks,

we upgraded to new version.

one small help needed, is there any possibility to use different design (css) for different slave sites.

suppose i created 2 slave sites like slave1 and slave2, the components and modules are sharing from master site.If i want different design (layout and css) for master, slave1 and slave2. how can i achieve this.
hassanali20
Senior Boarder
Posts: 51
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1488
Re:please clarify this 14 Years, 9 Months ago Karma: 54
You just have to go in the admin of your slave site and select the default Joomla template that you want.
Each slave site can select its own template.

If you want specific directory for the themes (template folder), this is also possible when you setup the slave site definition or JMS template themes folder.
See the user manual that give you the different possibilities depending on the plaform.
Sometimes this is a copy and sometimes this is a Symbolic Link and sometimes this is a templates directory with Symbolic Links for each themes.

All depends on the platform and the value that you enter (or not) in the slave site definition (themes folder field)

On Unix with Symbolic Link allowed, when you enter a value in the "themes folder", this create a templates directory in which each themes are initialy created as Symbolic Link.
In this case, the slave site can un-install the themes and re-install it to have its own copy rather than a link. The slave site can also install themes that are NOT present in the master website because it has its own templates directory.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/08/07 12:37 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