Hey,
So I saw
So basically lets begin..
Step 1) Find app/tpl/skins/(THE SKIN YOUR USING)/news.php
Step 2) Find '<div id="column2" class="column">'
Step 3) Before the closing </div> add this code:
Step 4) Find app/tpl/class.forms.php
Step 5) Find 'final public function getPageNews()'
Step 6) Change this query;
To this:
Step 7) Under that query add this '$template->setParams('newsID', $news['id']);'.
Step 8) Enjoy.
---------------
Credits to:
Credits to:
Credits to
So I saw
You must be registered for see links
and I enjoyed it, but I then found another way of doing it much easier/less effort and no database needed..So basically lets begin..
Step 1) Find app/tpl/skins/(THE SKIN YOUR USING)/news.php
Step 2) Find '<div id="column2" class="column">'
Step 3) Before the closing </div> add this code:
PHP:
<div class="habblet-container ">
<div class="cbb clearfix notitle ">
<div id="article-wrapper">
<div class="fb-comments" data-href="{url}/index.php?url=news&id={newsID}" data-num-posts="10" data-width="530"></div>
</div>
</div>
</div>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Step 4) Find app/tpl/class.forms.php
Step 5) Find 'final public function getPageNews()'
Step 6) Change this query;
PHP:
$news = $engine->fetch_assoc("SELECT title, shortstory, longstory, author, published FROM cms_news WHERE id = '" . $engine->secure($_GET['id']) . "' LIMIT 1")'
PHP:
$news = $engine->fetch_assoc("SELECT id, title, shortstory, longstory, author, published FROM cms_news WHERE id = '" . $engine->secure($_GET['id']) . "' LIMIT 1");
Step 7) Under that query add this '$template->setParams('newsID', $news['id']);'.
Step 8) Enjoy.
---------------
Credits to:
You must be registered for see links
for the inspiration.Credits to:
You must be registered for see links
for a nice helping hand.Credits to
You must be registered for see links
(Me) or the rest.