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

Not showing
#1

I just install the scripts
but example page is not show anything just is it showing the text

http://www.djsomali.com/comments/example2.php
Reply
#2

Hi,

Move example2.php to the root of your website, i.e. http://www.djsomali.com/example2.php

If you move example2.php to another location, such as in a folder e.g. domain.com/article/example2.php, then you must update the $cmtx_path variable in the integration code. For example:

PHP Code:
<?php 
$cmtx_path
= '../comments/';

Never put example2.php inside the /comments/ folder. Any other folder is okay.

Have you completed the interview?
Reply
#3

For some reason your website is not showing PHP errors. This would really help when diagnosing issues like this. You could try adding the following lines before the integration code:

PHP Code:
<?php 
@error_reporting(-1); //show every possible error
@ini_set('display_errors', 1); //display errors

For example:

PHP Code:
<?php
@error_reporting(-1); //show every possible error
@ini_set('display_errors', 1); //display errors

$cmtx_page_id = '1';
$cmtx_reference = 'Page One';
$cmtx_path = 'comments/';
define('IN_COMMENTICS', 'true'); //no need to edit this line
require $cmtx_path . 'includes/commentics.php'; //no need to edit this line
?>

Have you completed the interview?
Reply
#4

Thank you for you replay

Now is working on example.
But si not working on the PHP scripts im using i but the code the comments is not showing

in end of the page you can see the code can you check if i have something wrong

Thank you





<?
global $id,$cat,$data,$url,$settings,$phrases,$data_singer,$scripturl,$links,$no_singer_name,$without_tables,$style,$global_align_x,$data_video;

$is_member = check_member_login();


open_table($data['name']);


run_player($url);


print "<center>

<table><tr>
<td align=center>
<a href=\"".$scripturl."/".str_replace(array('{cat}','{id}'),array($cat,$id),$links['song_download'])."\" title=\"$phrases[download]\"><img src=\"$style[images]/save_mid.gif\" alt=\"$phrases[download]\"></a>
</td>

<td align=center>
<a href='http://www.facebook.com/sharer.php?u=".urlencode($scripturl."/".str_replace(array('{cat}','{id}'),array($cat,$data['id']),$links['song_listen']))."' target=_blank title='Share it on Facebook'><img src='images/facebook_mid.gif' alt='Share it on Facebook' border=0></a>
</td>";

if($settings['snd2friend']){
print "<td align=center><a href=\"javascriptConfusedend($data[id])\" title='$phrases[send2friend]'><img src='images/send_mid.gif' alt='$phrases[send2friend]' border=0></a></td> ";
}

//-------- playlist ----------//
print "<td align=center><a href=\"javascript:;\" onClick=\"".iif($is_member, "playlist_add_song($data[id]);","alert('$phrases[please_login_first]');")."\" title='$phrases[add_to_playlist]'><img src='images/playlist_add_mid.gif' title='$phrases[add_to_playlist]' border=0></a></td>";

//----------- report -------
if($settings['reports_enabled']){
print "<td align=center>
<a href=\"javascript:;\" onClick=\"report($data[id],'song');\"><img src=\"$style[images]/report.gif\" title=\"$phrases[report_do]\" border=0></a>
</td>";
}
//-------------------------


print "
</tr></table>

</center>";

//------- rating -----------
print "<br><br><center>";
print_rating('song',$data['id'],$data['rate']);
print "</center>";

//----------------------------


print "
<img src='$style[images]/add_date.gif'> &nbsp; <b>$phrases[add_date] : </b>".get_date($data['date'])."<br>";
print "<img src='$style[images]/views.gif'> &nbsp; <b>$phrases[listens] : </b>".$data["listens_{$cat}"];

if($data['video_id']){
print "<br><img src='$style[images]/video.gif'> &nbsp; <b>$phrases[video] : </b> <a href=\"".str_replace('{id}',$data['video_id'],$links['video_watch'])."\">$data_video[name]</a>";
}


?>
<br>
<br>
<table width=100%>
<TBODY>

<!-- AddThis Button BEGIN -->
<div class="fb-like" data-href="http://www.facebook.com/pages/djsomalicom/94085252289" data-send="true" data-width="468" data-show-faces="true" data-font="tahoma"></div>
<!-- AddThis Button END -->


<?php
session_start();
ob_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Example 2</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="comments/css/stylesheet.css"/>
</head>
<body>

<h1>Example 2</h1>



<?php
$cmtx_page_id = '2';
$cmtx_reference = 'Page Two';
$cmtx_path = '../comments/';
define('IN_COMMENTICS', 'true'); //no need to edit this line
require $cmtx_path . 'includes/commentics.php'; //no need to edit this line
?>


</TBODY>
</table>
<?


close_table();


?>
Reply
#5

Please read the Integration Guide.

This part should be at the very top of your page:
PHP Code:
<?php
session_start
();
ob_start();
?>

This part should be in the <head> tag of your page:
PHP Code:
<?php 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<
link rel="stylesheet" type="text/css" href="comments/css/stylesheet.css"/>

This part should be in the <body> tag of your page:
PHP Code:
<?php
$cmtx_page_id
= '1';
$cmtx_reference = 'Page One';
$cmtx_path = 'comments/';
define('IN_COMMENTICS', 'true'); //no need to edit this line
require $cmtx_path . 'includes/commentics.php'; //no need to edit this line
?>

Have you completed the interview?
Reply
#6

Thank you Smile
Now is show the comments fine on the pages

But some comments in all the pages
you look att this

http://www.djsomali.com/song_listen_1401_1.html

http://www.djsomali.com/song_listen_1483_1.html
Reply
#7

Everthink working fine now
Perfect Thank you for your support Great Script
Keep up great jobb
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
29-Jul-2020, 08:34 AM
Last Post by Steven
25-May-2019, 05:50 PM
Last Post by Steven
04-Feb-2014, 09:25 PM
Last Post by kevbo22
17-Nov-2011, 06:43 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)