17-Apr-2012, 02:23 AM
Hi guys,
I've been using Commentics as the commenting app for one of the websites that I manage. However, as I'm writing a mobile version of the website with the same content, I want the mobile pages to also show the comments.
This itself hasn't been hard, as both the main site and the mobile share the same account, I typed the following into the comment section of the mobile site:
I've been using Commentics as the commenting app for one of the websites that I manage. However, as I'm writing a mobile version of the website with the same content, I want the mobile pages to also show the comments.
This itself hasn't been hard, as both the main site and the mobile share the same account, I typed the following into the comment section of the mobile site:
PHP Code:
<?php
$page_id = "con";
$reference = "Constitution";
$path_to_comments_folder = "../../mahrs.org/comments/";
define ('IN_COMMENTICS', 'true'); //no need to edit this line
require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line
?>
This was successful in actually grabbing the information to display, however it seems that it cannot show the stylesheet for Commentics in general. So it looks quite horrible. Is there a solution to this rather than having to install two instances pointing to the same database?
Original site:
http://mahrs.org/misc/constitution.php
Unfinished Mobile site:
http://m.mahrs.org/misc/constitution.php
Thanks for your help.