Topic: Have a question about "Add Facebook Comments to CuteNews"

Now I am tedious with all of these issues. I know.

But I have a small question about the "Add Facebook Comments to CuteNews". Anyone who can be found on [url=h]https://cutephp.com/forum/index.php?showtopic=42268[/url]. It says that you should paste the first code, "Include the first code to page elsewhere showing not news, right after body tag." Now I do not know if it is i who think crazy, but it is not the "show_news.php"?

And it's that side, so there's no "body tag" to paste the code itself for. For the whole is more, even large <php> page. So the question is when, it is me who is completely way off with this? Or is it that it's me thinking all wrong? Not completely impossible.

For the second piece, the one with "add fade Add comment form box (in CuteNews) the code which is in the second box.", i understand.
So what I am wondering, is whether it is "show_news.php" page is the page you will paste the first code in, or who or what is it for the page you mean?

I liked the description on the page in question was a bit fuzzy.

Re: Have a question about "Add Facebook Comments to CuteNews"

It's the page where you use the cutenews include code, ie

$number = '5';
$template = 'something';
include('cutenews/show_news.php');


3 (edited by 2012-05-22 00:56:52)

Re: Have a question about "Add Facebook Comments to CuteNews"

It's the page where you use the cutenews include code, ie

$number = '5';
$template = 'something';
include('cutenews/show_news.php');


Well .. Now I do not know if it was a bit wrong. What I want, it's what page i should add "<div id="fb-root"> </ div>" to?

http://img221.imageshack.us/img221/3521/cutenewsq.gif

For if i go to "https://developers.facebook.com/docs/reference/plugins/comments/" and I typed them the data needed, and I then click on "get code", and I take or choose "Hmtl5". So it says:

Include the JavaScript SDK on your page once, ideally right after the opening <body> while.

That is to say "<div id="fb-root"> </ div>". But I wonder, in which page I'm going to paste the code in simply? 
That is where my doubts come in.

Could be me that is a little bad at explaining. Sorry about that

Re: Have a question about "Add Facebook Comments to CuteNews"

Is there nobody who knows?

Re: Have a question about "Add Facebook Comments to CuteNews"

it's what page i should add "<div id="fb-root"> </ div>" to?

It's the page where you use the cutenews include code, ie
CODE
$number = '5';
$template = 'something';
include('cutenews/show_news.php');

sorry but the original answer seems quite clear to me.

the sacond part of the code goes in the template under the comments form part.

6 (edited by 2012-05-22 16:28:32)

Re: Have a question about "Add Facebook Comments to CuteNews"

But if I now open the temples which I have now, that is, the "Default", see below.


<?PHP
///////////////////// TEMPLATE Default /////////////////////
$template_active = <<<HTML
<div style="width:420px; margin-bottom:30px;">
<div><strong>{title}</strong></div>

<div style="text-align:justify; padding:3px; margin-top:3px; margin-bottom:5px; border-top:1px solid #D3D3D3;">{short-story}</div>

<div style="float: right;">[full-link]Read more •[/full-link]  [com-link]{comments-num} Comments[/com-link]</div>

<div><em>Posted on {date} by {author}</em></div>
</div>
HTML;


$template_full = <<<HTML
<div style="width:420px; margin-bottom:15px;">
<div><strong>{title}</strong></div>

<div style="text-align:justify; padding:3px; margin-top:3px; margin-bottom:5px; border-top:1px solid #D3D3D3;">{full-story}</div>

<div style="float: right;">{comments-num} Comments</div>

<div><em>Posted on {date} by {author}</em></div>
</div>
HTML;


$template_comment = <<<HTML
<div style="width: 400px; margin-bottom:20px;">

<div style="border-bottom:1px solid black;"> by <strong>{author}</strong> @ {date}</div>

<div style="padding:2px; background-color:#F9F9F9">{comment}</div>

</div>
HTML;


$template_form = <<<HTML
  <table border="0" width="370" cellspacing="0" cellpadding="0">
    <tr>
      <td width="60">Name:</td>
      <td><input type="text" name="name"></td>
    </tr>
    <tr>
      <td>E-mail:</td>
      <td><input type="text" name="mail"> (optional)</td>
    </tr>
    <tr>
      <td>Smile:</td>
      <td>{smilies}</td>
    </tr>
    <tr>
      <td colspan="2">
      <textarea cols="40" rows="6" id=commentsbox name="comments"></textarea>

      <input type="submit" name="submit" value="Add My Comment">
      <input type=checkbox name=CNremember  id=CNremember value=1><label for=CNremember> Remember Me</label> |
  [url=java script:CNforget();]Forget Me[/url]
      </td>
    </tr>
  </table>
HTML;


$template_prev_next = <<<HTML
<p align="center">[prev-link]<< Previous[/prev-link] {pages} [next-link]Next >>[/next-link]</p>
HTML;
$template_comments_prev_next = <<<HTML
<p align="center">[prev-link]<< Older[/prev-link] ({pages}) [next-link]Newest >>[/next-link]</p>
HTML;
?>

Should I then put in the code itself "<div id="fb-root"> </ div>" at the beginning of the page? Or what? Order than how you look and twisted it around, so there is still no <body> in the templetsen that I use out of.

Hmm, I do not know. hmm
Is it to be so ridiculously hard to get to this?

Re: Have a question about "Add Facebook Comments to CuteNews"

It's the page where you use the cutenews include code, ie

i'm not sure how you think this would be default.tpl?
Open the file that has your CN include code.
Put it their right under the <body> tag of your site.
The <body> tag isn't even part of CuteNews, but is part of your site.

8 (edited by 2012-05-23 01:30:13)

Re: Have a question about "Add Facebook Comments to CuteNews"

<html>
<head>
<title>This is the title of my site</title>
</head>
<body>
<div id="fb-root"> </ div>
Welcome to my site bla bla bla
<?php
include('cutenews/show.news.php');
?>
</body>
</html>


I am ofc assuming that you are using the proper tags in your site (something that's not a given, even today...) https://cutephp.com/forum/style_emoticons/default/biggrin.gif

Posts: 9

Pages 1

You must login or register to post a reply

CutePHP Forums → Problem Solving / Help & Support → Have a question about "Add Facebook Comments to CuteNews"



The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.