This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

2 sites integration


I correctly integrate a website into my installation of website.
But now I want to use my second site without installation.

How is it possible ?

I tried to integrate with iframe but I can not modify styles.

I tried to use with php : file_get_contents

But I do not know parameters.

Please help.

Hi Ben,

The only way to integrate a second website is to use the iFrame integration.

You can modify the styles using the built-in CSS Editor module, but the styles will affect both your first website and second website, so choose a style that suits both if possible.

Have you completed the interview?

Many thanks Steven.

Now, I have this error message : Error: Could not be loaded from the domain '' 

What could I do ?

Is it possible to integrate a specific style after of commentics ?
Like : if file is present ?

Hi Ben,

To fix that error you'll need to open the file /system/library/page.php and remove this line:
PHP Code:
die('<b>Error:</b> Could not be loaded from the domain \'' . $this->security->encode($referrer) . '\'');

To have different stylesheets, first open the file /frontend/controller/common/header.php.

Then after this line:
PHP Code:
->data['commentics_url'] = $this->url->getCommenticsUrl();

Add this:
PHP Code:
->data['site_id'] = $this->page->getSiteId();

Then open the file /frontend/view/default/template/common/header.tpl.

At the bottom of the file add this:
@if site_id equals 0
  <link rel="stylesheet" type="text/css" href="stylesheet0.css">
@elseif site_id equals 1
  <link rel="stylesheet" type="text/css" href="stylesheet1.css">
@elseif site_id equals 2
  <link rel="stylesheet" type="text/css" href="stylesheet2.css">

And adjust as needed. If you go to Manage -> Sites and edit a site, you'll see the Site ID at the end of the URL in your web browser.

Have you completed the interview?

Many thanks for your answers.

Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by nsuomine
20-Jan-2023, 08:32 AM
Last Post by Steven
23-Jan-2019, 02:07 PM
Last Post by news
18-Dec-2017, 09:15 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)