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

2 sites integration
#1

Hello,

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.
Reply
#2

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?
Reply
#3

Many thanks Steven.

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

What could I do ?

Is it possible to integrate a specific style after mini.style.css of commentics ?
Like : domain.com.css if file is present ?
Reply
#4

Hi Ben,

To fix that error you'll need to open the file /system/library/page.php and remove this line:
PHP Code:
<?php 
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:
<?php 
$this
->data['commentics_url'] = $this->url->getCommenticsUrl();

Add this:
PHP Code:
<?php 
$this
->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:
Code:
@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">
@endif

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?
Reply
#5

Many thanks for your answers.
Reply


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: 2 Guest(s)