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: 1234
TOPIC: params.ini
#5152
params.ini 14 Years, 3 Months ago Karma: 0
Hi Edwin

We are currently using the template that you setup to build sites. I am now having an issue where I install a new template on a slave and set the params. I get a file written called params_<site_id>.ini

The problem is the site is writing the changes to the params_<site_id>.ini but the site is reading the params.ini

Any help?
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5154
Re: params.ini 14 Years, 3 Months ago Karma: 54
Perhaps you are using a templates that hack the reading of the params.ini file.
This is the case of RocketThemes gantry framework.
So if you are using such kind of templates, this is normal.
Perhaps you have to report that to the author of the template.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5156
Re:params.ini 14 Years, 3 Months ago Karma: 0
If you are reusing using the same configuration for all the slave sites, there is a workaround.

Look at the RocketTheme template's html and you will see that very near the top of the document the default variables for the site configuration are declared. If a 'params' file exists, those values override the default. If not, the default is used.

Simply, change the default settings to match those that appear in the params file. Save the template and put a copy in templates folder of the master.

Cheers!
danshaffer317
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5177
Re:params.ini 14 Years, 3 Months ago Karma: 0
No, this is a Joomlashack template and the default params.ini is being used.

Code:

<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<?php
$affiliate = $this->params->get( 'affiliate', "" );
$HeaderScr = $this->params->get( 'headerscript',"" );
$FooterScr = $this->params->get( 'footerscript', "" );
$cPanel       = ($this->params->get("cPanel", 1)  == 0)?"false":"true";
$cPanelheight     = $this->params->get("cPanelheight", "100");
$cPanelSpeed      = $this->params->get("cPanelSpeed", "200");
$cPanelText       = $this->params->get("cPanelText", "Bulletin");
$user456suffix    = $this->params->get("user456suffix", "S5");
$user345suffix   = $this->params->get("user345suffix", "S4");
$color     = $this->params->get("color", "blue");

DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5183
Re:params.ini 14 Years, 3 Months ago Karma: 54
If (as you say) this is a standard params.ini file then it should be read by the source /librariies/joomla/document/html/jhtml.php file where a JMS Multisites patch proceed to the reading of the correct params.ini file depending on the site ID.

Search the function render()

So debug this html source to check that it reads the correct params.ini file.
I suspect that another extension (or plugin) read the params.ini file and that is not the standard joomla peace of code.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/02 12:34 By edwin2win.
The administrator has disabled public write access.
 
#5217
Re:params.ini 14 Years, 3 Months ago Karma: 0
Hi,
I'v got the same problem. I don't use a Rocketemplate but a self made one where I put the colorswitch code in from the rhuk_milkyway template.
So when I alter my colors in the administration of the template, the params.ini doesn't get overwritten, but a new one with the site id is made: params_{site_id}.ini
I located the html.php with the JMS2Win alteration, but when I set everything to just params.ini, there's still a new one made...

Cheers,
Guy
dustdog
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1234
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla