Fork me on GitHub

EasyPageComments

By Mike "Pomax" Kamermans

I needed some simple but full-featured, login-less comments for several pages I'm running for presenting loose technology snippets to the world that I don't want to present through some CMS because the styling's going to be completely different, or the subject is just not related to my specifically-purposed websites. As such, I needed it to be modular, and require almost no work to drop into newly written pages. Looking at what I already had written for my Primer on Bezier curves I figured I already had something close to what I needed, just a bit too part-of-the-page, so I lifted it out, cleaned the code up, and added some of the features that were still missing, ending up with exactly what I need: A simple but full featured "drop it in, and glue it on with less than 10 lines of code" commenting system.

The styling's all CSS, so style it to look like whatever you think looks best, and get some comments going on for pages that are just random pages, rather than CMS-ed pages.

Features:

"Installing" EasyPageComments

There's no real installation to speak of - just grab EasyPageComments from github, or just download a zip file with the code:

After obtaining all the files, drop the EasyPageComments.php file (and optionally the EasyPageComments.js file) in the same dir as your page. Then depending on your preferred method of use, either:

a) add

require_once("EasyPageComments.php");

at the top of your page, in a php block, or

b) add

<script type="text/javascript" src="EasyPageComments.js"></script>

to your page's <head> block.

Generating the comments

The PHP way

Generating the comment list could not be easier. Okay, no, that's a lie, I guess it could be. But it's pretty damn easy. Just find the place where you want the comments to show up, and insert:

<?php $EasyPageComments->createCommentsList(); ?>
<?php $EasyPageComments->createCommentForm(); ?>

This will, in fact, store and list messages for "the current page", which is whatever your URL bar shows, minus the domain name. This is super convenient, but it also makes moving the page a little bit of work. Which is inconvenient. To make life easier again, the function can also take a pagename argument:

<?php $EasyPageComments->createCommentsList("My Page Name"); ?>
<?php $EasyPageComments->createCommentForm("My Page Name"); ?>

And now messages are stored and retrieved using that page name, rather than getting the page name from the URL. Handy-dandy.

The upside

Super-no-work-at-all solution, requiring one line to include the EasyPageComments.php package, one line to inject the comment list, and one line to inject the comment posting form.

Does not rely in JavaScript in any way, so it even works when people have NoScript and the like turned on.

The downside

Does not rely on JavaScript in any way, so posting a new comment reloads the page. Your users may also not be able to reply to other user's posts at the moment, as this relies on JavaScript being available at the moment.

The JavaScript way (recommended, really)

EasyPageComments also works with plain .html pages, in case you don't want to give your pages a .php extension. Simply have some container elements on your page:

<div id="id-for-list-element"></div>
<div id="id-for-comment-form"></div>

And then implement these two functions for injecting the comments list and post form into your web page:

function showEasyPageComments(setname, data) {
  document.getElementById("id-for-list-element").innerHTML = data;
}
function showEasyPageCommentForm(setname, data) {
  document.getElementById("id-for-comment-form).innerHTML = data;
} 

And then trigger them (at page load or DOMReady or something) by calling:

EasyPageComments.createCommentsList("My Page Name");
EasyPageComments.createCommentForm("My Page Name");

Note that the "id-for-list-element" and "id-for-comment-form" are up to you. You can use whatever names you want, or even use some other form of identifying the elements you want the list and comment form generated in. The important part is that showEasyPageComments(setname, data) and showEasyPageCommentForm(setname, data) have some body code that lets them put data into the containers you dedicated to them on your page.

Also note that because you can have multiple comment forms on the page, there is a setname value that comes along with the data. If you have multiple comment sections, it's a good idea to make sure the HTML element containers you use indicate which set they're for, so you can do things like:

function showEasyPageComments(setname, data) {
  document.getElementById("list-for-"+setname).innerHTML = data;
}

As an illustration, this page uses the following code for the JavaScript version of EasyPageComments:

function showEasyPageComments(setname, data) {
  document.getElementById('EasyPageComments').innerHTML = data; }

function showEasyPageCommentForm(setname, data) {
  document.getElementById('EasyPageCommentForm').innerHTML = data; }

function addEasyPageComments() {
  EasyPageComments.createCommentsList('EasyPageComments');
  EasyPageComments.createCommentForm('EasyPageComments'); }

document.addEventListener("DOMContentLoaded", addEasyPageComments, false)

Because the javascript call makes it impossible for PHP to check which page it was called for (since you're calling the script directly, rather than as part of a specific page-request to the server), the page name is mandatory when using JavaScript.

Note that the JavaScript approach refreshes the comments list after posting a new comment, so make sure that showEasyPageComments(data) overwrites whatever is in your list container element, or things will look wrong for someone posting a comment.

The upside

Loading and posting is dynamic. You can add the comments block to your page only when the user requests comment functionality, and posting is handled in-place, without the page needing to be reloaded just to show the new comment, or errors with a faulty post.

The downside

If people block JavaScript, they won't get comment functionality until they unblock it. It's also a tiny bit more work to make it do its thing, although given the code already provided, it's about as much of a no-brainer to get things to work =)

A demonstrator

A demonstrator comments list for this page, inserted with PHP (and styled with this stylesheet):

PostyMan
Monday, October 31st 2011 - 7:09 am (GMT-7)
Feirst poast!
reply
Pomax
Monday, October 31st 2011 - 7:11 am (GMT-7)
Using the 'reply' link makes your message a reply to a specific message. Replies create comment threads, which can be indented (if so desired) by using a CSS margin. Additionally, messages by the page owner can be colored differently from regular messages so that they stand out.
reply
PostyMan
Monday, October 31st 2011 - 7:22 am (GMT-7)
The more a thread is replied to, the deeper it nests. Ideally this doesn't happen too much, because comments are generally not intended as forum, but just in case you do spark the kind of controversy that requires threading, it's there.
reply
Chris
Wednesday, March 14th 2018 - 2:02 pm (GMT-7)
Four score and seven years ago our fathers brought forth, upon this continent, a new nation, conceived in liberty, and dedicated to the proposition that all men are created equal.

Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived, and so dedicated, can long endure. We are met on a great battle field of that war. We come to dedicate a portion of it, as a final resting place for those who died here, that the nation might live. This we may, in all propriety do.

But, in a larger sense, we can not dedicate we can not consecrate we can not hallow, this ground The brave men, living and dead, who struggled here, have hallowed it, far above our poor power to add or detract. The world will little note, nor long remember what we say here; while it can never forget what they did here.

It is rather for us, the living, we here be dedicated to the great task remaining before us that, from these honored dead we take increased devotion to that cause for which they here, gave the last full measure of devotion that we here highly resolve these dead shall not have died in vain; that the nation, shall have a new birth of freedom, and that government of the people, by the people, for the people, shall not perish from the earth.
reply
Charlie Chocolate
Friday, April 27th 2018 - 9:34 pm (GMT-7)
Well, is this easy? Or is it easy? Dunno!
reply
Heather
Saturday, July 21st 2018 - 4:37 pm (GMT-7)
My name is HEATHER. I have be hearing about blank Blank ATM cards , I never paid any interest to it because of my doubt.They are very good helping us to actualized our major goal in life.Back to the point ,I inquired about the Blank ATM Cards.If it really exist or works.They told me yes and that its a card programmed for random money withdraws without being noticed also has a technique that make it impossible for CCTVs to detect, It can also be used for free online purchases of any kind.This was shocking and I still had my doubts
Then I gave it a trier and asked for the card and agreed to their terms and conditions.Within 24 hours I received my card,I went further to insert my blank ATM in the the ATM machine, It is miraculous believed...Magic happened, it was able to dispensed $2000 USD ....This card are both in Visa and Mastered Cards.It works at any ATM machine that accept Visa/mastered card worldwide.This is unbelievable, the happiest day of my life.I have being able to withdraw up to $42000 without any stress of being caught.
I don't know why I am posting this here, I need to pass across this vital information worldwide, I just felt this might help those of us in need of financial stability. Mrs Linda Barnett has really change my life via Mariam with powerful information. I believed they will also change your life too, making you rich and happy.......@DEAVONSCOTT69@GMAIL.COM
DEAVON SCOTT HACKING and Training members to exploit the world , in all sector of life, Banks, Election , Documents and computer hacking procedures....We have Hack various election using our Technologies that has high penetration, Accessibility, Detection and Analysis view...We are specialized in Hacking ,Programming, soft and hard ware..Join DEAVON SCOTT Hacking Organization Today...Make life easy and accessible , use grate computers tools to exploit the world...Making more money, money making machine, with great hackers, DEAVON
SCOTT @ ;;DEAVONSCOTT69@GMAIL.COM...The world is unconditional and unfavorable to does who want to use our life as a slave.We own this World? DEAVON SCOTT Great Hacking @ DEAVONSCOTT69@GMAIL.COM.

reply
patrice
Friday, October 26th 2018 - 11:57 am (GMT-7)
Haven't you heard about Mr Beckham blank ATM card and how other people had benefited from it? I am miss Patrice Eric, i want to share a blog and forums on how to get real blank ATM card, i thank Mr Beckham who helped me with an already hacked ATM CARD and i was so poor without funds that i got frustrated. One morning as i was browsing on the internet, i saw different comments of people testifying of how Beckham helped him from being poor to a rich man through this already hacked ATM CARD. I was skeptical if this was true, i decided to contact him to know if he is real he proved to me beyond all doubts that its was really for real so i urgently receive my blank ATM card. Contact his email mrbeckhamblankatmcard@gmail.com and today am also testifying on how Beckham helped me. I never believed in it until the card was sent to me, which am using today Contact the company now and become rich. Email: mrbeckhamblankatmcard@gmail.com
reply
patrice
Friday, October 26th 2018 - 11:57 am (GMT-7)
Haven't you heard about Mr Beckham blank ATM card and how other people had benefited from it? I am miss Patrice Eric, i want to share a blog and forums on how to get real blank ATM card, i thank Mr Beckham who helped me with an already hacked ATM CARD and i was so poor without funds that i got frustrated. One morning as i was browsing on the internet, i saw different comments of people testifying of how Beckham helped him from being poor to a rich man through this already hacked ATM CARD. I was skeptical if this was true, i decided to contact him to know if he is real he proved to me beyond all doubts that its was really for real so i urgently receive my blank ATM card. Contact his email mrbeckhamblankatmcard@gmail.com and today am also testifying on how Beckham helped me. I never believed in it until the card was sent to me, which am using today Contact the company now and become rich. Email: mrbeckhamblankatmcard@gmail.com
reply
Odum Ikechukwu
Thursday, July 25th 2019 - 12:49 am (GMT-7)
hhhhhhhhhhhhhhhhhhh
reply
mirvba
Sunday, December 2nd 2018 - 11:06 pm (GMT-8)
artbeauty29.ru
molotok-tomsk.ru
www.gokstroy.ru
www.verobuddismo.ru
reply
Blah
Wednesday, September 13th 2017 - 2:07 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Blah
Wednesday, September 13th 2017 - 2:04 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Cythia Armani
Thursday, October 11th 2018 - 3:44 am (GMT-7)
I am very happy to speak about my happiness on this site.
I received a Master Card just yesterday and it pays me $3000 (TREE THOUSAND USD)at a spot, I tried today again and thesame $3000 was paid out, This card will give me $3000 daily for 4 months. If you are in need of urgent money you can get this card as well from Classic Blank ATM Card.email: info.classicblankatmcard00@gmail.com
reply
patrice
Friday, October 26th 2018 - 11:15 am (GMT-7)
Haven't you heard about Mr Beckham blank ATM card and how other people had benefited from it? I am miss Patrice Eric, i want to share a blog and forums on how to get real blank ATM card, i thank Mr Beckham who helped me with an already hacked ATM CARD and i was so poor without funds that i got frustrated. One morning as i was browsing on the internet, i saw different comments of people testifying of how Beckham helped him from being poor to a rich man through this already hacked ATM CARD. I was skeptical if this was true, i decided to contact him to know if he is real he proved to me beyond all doubts that its was really for real so i urgently receive my blank ATM card. Contact his email {mrbeckhamblankatmcard@gmail.com}, and today am also testifying on how Beckham helped me. I never believed in it until the card was sent to me, which am using today Contact the company now and become rich. Email: mrbeckhamblankatmcard@gmail.com
reply
patrice
Friday, October 26th 2018 - 11:15 am (GMT-7)
Haven't you heard about Mr Beckham blank ATM card and how other people had benefited from it? I am miss Patrice Eric, i want to share a blog and forums on how to get real blank ATM card, i thank Mr Beckham who helped me with an already hacked ATM CARD and i was so poor without funds that i got frustrated. One morning as i was browsing on the internet, i saw different comments of people testifying of how Beckham helped him from being poor to a rich man through this already hacked ATM CARD. I was skeptical if this was true, i decided to contact him to know if he is real he proved to me beyond all doubts that its was really for real so i urgently receive my blank ATM card. Contact his email {mrbeckhamblankatmcard@gmail.com}, and today am also testifying on how Beckham helped me. I never believed in it until the card was sent to me, which am using today Contact the company now and become rich. Email: mrbeckhamblankatmcard@gmail.com
reply
patrice
Tuesday, April 23rd 2019 - 10:04 pm (GMT-7)
Good day everyone reading this, My name is patrice eric and am from USA I want to give a short testimony on how I was able to get a legit blank ATM card! As at last week I urgently needed money to pay my kids bills and get some stuffs for the home, I was having no were to get any help so I was online and I saw a post that Mr Beckham is giving out blank ATM card, So I have to give them a try because I needed money urgently I copied her email address and sent her a personal message applying for the blank card, I got a reply from him and I sent them all what they asked me to my greatest surprise they really delivered the card to me in my door steps, I got the card and went straight to the nearest ATM machine to give a try and it really works,I made a lot of money from the card!! Now am doing great and living good life with my family please if you are out there in need of help urgently please contact Mr Beckham via email mrbeckhamblankatmcard@gmail.com or website https://mrbeckhamblankatmcard.weebly.com
reply
STAINLESS
Friday, July 24th 2020 - 10:55 am (GMT-7)
Here is the latest world Good News about DS Blank  ATM, Helping people worldwide to bounce back to the Economy, it is easy and simple to use, It only has powerful devices that make it function properly.
I am very happy to speak about my happiness here. I received a Master Card  yesterday and it pays me $15, 000 USD,a more powerful and sophisticated ATM card produced for  5 year use and continuously.
in a simple diphase and simple mechanism that makes it used generally for Online, Bank ATM and POS and lot more. Approved world wide to help the COVID 19 out break and help everyone to have access to money and cash low both online and Bank ATM.
for further informations on usage and applications simply contact DS Blank ATM Company for directives and more.:Cardsblank@gmail.com ( DS blank Card hacking ] or Deavonscott69@gmail.com
Note is the best ATM Card ever produced with 15 countries licensed grant and support to help the needy and privileged ones.
our regard Ds Company and global COVID 19 Support worldwide. Cardsblank@gmail.com
 Deavonscott69@gmail.comHere is the latest world Good News about DS Blank  ATM, Helping people worldwide to bounce back to the Economy, it is easy and simple to use, It only has powerful devices that make it function properly.
I am very happy to speak about my happiness here. I received a Master Card  yesterday and it pays me $15, 000 USD,a more powerful and sophisticated ATM card produced for  5 year use and continuously.
in a simple diphase and simple mechanism that makes it used generally for Online, Bank ATM and POS and lot more. Approved world wide to help the COVID 19 out break and help everyone to have access to money and cash low both online and Bank ATM.
for further informations on usage and applications simply contact DS Blank ATM Company for directives and more.:Cardsblank@gmail.com ( DS blank Card hacking ] or Deavonscott69@gmail.com
Note is the best ATM Card ever produced with 15 countries licensed grant and support to help the needy and privileged ones.
our regard Ds Company and global COVID 19 Support worldwide. Cardsblank@gmail.com
 Deavonscott69@gmail.com  
reply
PostyMan
Monday, October 31st 2011 - 7:24 am (GMT-7)
Anyone can leave comments without needing to log in; all they have to do is get the security question right. This question and its posssible answers can be set in the EasyPageComments.php file, at the top. For this page, for instance, the correct answer is "10", but if you write it as "ten" or as "10" (using full-width unicode numbers) then those are acceptable answers, too, and your message will get posted.
reply
ポスちー万
Monday, October 31st 2011 - 7:27 am (GMT-7)
Which brings us to the matter of Unicode text: Use however much of it as you like. A non-ascii username, for instance, is just fine. And why wouldn't it be, this is the future, after all, and of course we all know that assuming ascii input was something they did in the dark ages. Right?
reply
Pomax
Monday, October 31st 2011 - 7:32 am (GMT-7)
If only the future was that nice. A lot of people still think that "ascii is fine", even though a lot of people in English speaking countries have names that cannot be spelled using just the ascii range. Luckily, SQLite does not care, so we don't suffer from that problem in this commenting package. 日本語など中国語など書いても当然によい。 ...That means you can write Japanese or Chinese without any problems.
reply
Blah
Wednesday, September 13th 2017 - 2:04 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Blah
Wednesday, September 13th 2017 - 2:05 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Blah
Wednesday, September 13th 2017 - 2:04 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Blah
Wednesday, September 13th 2017 - 2:06 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Blah
Wednesday, September 13th 2017 - 2:05 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Blah
Wednesday, September 13th 2017 - 2:05 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Blah
Wednesday, September 13th 2017 - 2:06 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
PostyMan
Monday, October 31st 2011 - 7:34 am (GMT-7)
You can also be notified by email whenever someone posts a comment, because you're not going to check your older pages every day for new comments. Nor would you want to set up RSS monitoring for them (why poll a site RSS every hour when it'll only receive a comment every few days?). This can be enabled or disabled in the EasyPageComments.php file too.
reply
Pomax
Friday, November 4th 2011 - 7:23 pm (GMT-7)
And last but not least, EasyPageComments is hash aware, so if you want to link to a specific post, even if you rely on the JavaScript approach to inject comments after page loading, EasyPageComments.js ensures that the page gets jumped to the request comment once the comments listing is generated.
reply
<script type="text/javascript"> alert("hi") </script>
Monday, November 14th 2011 - 6:48 am (GMT-8)
<script type="text/javascript">
alert("hi")
</script>
reply
Pomax
Monday, November 14th 2011 - 10:14 am (GMT-8)
hehe, yes, that gets securified. HTML, JavaScript and SQL are sanitized before insertion, and angled brackets never get converted back to real brackets (so HTML is demoted to text with html entities).
reply
planty
Friday, April 3rd 2020 - 12:50 am (GMT-7)
DS Hacking Company Newly Produced Blank ATM with powerful Hacking Technique that will withdraw Money all over the world.Cardsblank@gmail.com Deavonscott69@gmail.com .Apply for DS Blank ATM Today, Make your withdraw any amount of money worldwide;. This card are both in Visa and Mastered Cards. It works at any ATM machine that accept Visa/mastered card worldwide. Hacking and taking money directly from ATM Machine with the use of ATM programmed card which runs in automatic mode by DS Blank ATM and Hacking Company..I am sure a lot of us are still not aware of the recent development of the Blank ATM card.. An ATM card that can change your financial status within few days.DS Hacking is leading Hacking Company worldwide with 100% Guaranteed, Helping and resolving world poverty , Our Aim is to help poor and needing, change world suffering due to Collaboration of DS Company world, Combination of Five Countries to produced DS Company ,...You are next in Line, Change your life , get Richer and eliminate poor living/ Poverty.Here are the only ways to contact DS Company:
Cardsblank@gmail.com
Deavonscott69@gmail.com
reply
Mr Magoo
Sunday, July 23rd 2017 - 5:42 am (GMT-7)
testme
reply
Blah
Wednesday, September 13th 2017 - 2:07 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
etes
Sunday, July 30th 2017 - 10:52 pm (GMT-7)
dsdasd
reply
oğuzhan cengiz
Sunday, July 30th 2017 - 10:52 pm (GMT-7)
test
reply
Blah
Wednesday, September 13th 2017 - 2:08 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
hallow0rld
Monday, July 31st 2017 - 7:06 pm (GMT-7)
rwrwearerwawwatistis
reply
Blah
Wednesday, September 13th 2017 - 2:07 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
hallow0rld
Monday, July 31st 2017 - 7:28 pm (GMT-7)
rwrwearerwawwatistis
reply
ss
Monday, September 11th 2017 - 4:17 am (GMT-7)
asdsd1wed
reply
Blah
Wednesday, September 13th 2017 - 2:08 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
ss
Tuesday, September 12th 2017 - 6:14 am (GMT-7)
test
reply
Blah
Wednesday, September 13th 2017 - 2:03 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Blah
Wednesday, September 13th 2017 - 2:03 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Sam
Saturday, March 3rd 2018 - 1:03 am (GMT-8)
Testing the comments form ...
reply
Blah
Wednesday, September 13th 2017 - 2:08 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Blah
Wednesday, September 13th 2017 - 2:09 am (GMT-7)
Give a kiss to your hand (left hand)
2.- Say the name of your love.
3.- Close your hand
4.- Say the name of a weekday
5.- Say your name
6.- Open your hand
7.- paste this to 15 comments and the day you said (step # 4 he/she will tell you that they like you and maybe even engages or maybe kiss you. If you don't do it something will go wrong in about an hour Thursday
reply
Antonio desde Valencia
Tuesday, December 26th 2017 - 5:03 am (GMT-8)
Y este es mi comentario para probar las bonanzas de este sistema.
<b>negrita</b>
<i>italica</i>
ToniFDZ
reply
toni
Tuesday, December 26th 2017 - 5:04 am (GMT-8)
Respondiendome a mi mismo
reply
Tonico
Tuesday, December 26th 2017 - 5:05 am (GMT-8)
Y me sigo respondiendo por lo que veo que se pueden anillar las respuestas
reply
Robert Shaw
Thursday, February 1st 2018 - 9:17 pm (GMT-8)
INSTEAD OF GETTING A LOAN,, I GOT SOMETHING NEW

Get $5,500 USD every day, for six months!

See how it works.

Do you know you can hack into any ATM machine with a hacked ATM card?? Make up your mind before applying, straight deal... Order for a blank ATM card now and get millions within a week!: contact us via email address:: johnhart0022@gmail.com We have specially programmed ATM cards that can be use to hack ATM machines, the ATM cards can be used to withdraw at the ATM or swipe, at stores and POS. You order for:: via johnhart0022@gmail.com
reply
Anna
Monday, June 4th 2018 - 5:27 pm (GMT-7)
very interesting and looks beautiful, and simple! and it seems to be indexed?
<a href="http://pomax.nihongoresources.com/pages/EasyPageComments" target="_blank"></a>

<img src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" />
reply
Anna
Monday, June 4th 2018 - 5:28 pm (GMT-7)
very interesting and looks beautiful, and simple! and it seems to be indexed?
<a href="http://pomax.nihongoresources.com/pages/EasyPageComments" target="_blank"></a>

<img src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" />
reply
acha
Monday, June 4th 2018 - 5:38 pm (GMT-7)
просто тестовый ответ
reply
acha
Monday, June 4th 2018 - 5:45 pm (GMT-7)
просто тестовый ответ
reply
acha
Monday, June 4th 2018 - 5:58 pm (GMT-7)
просто тестовый ответ
reply
Debbie
Friday, June 8th 2018 - 10:00 am (GMT-7)
orlistat 120 mg capsule o liban orlistat 120
mg weight loss abilify generic name (https://canadian-prices-pharmacy.net)
Hi, i think that i saw you visited my website thus i came to “return the favor”.I'm attempting to find things
to enhance my web site!I suppose its ok to use a
few of your ideas!! sulfonylurea drugs
reply
dera
Friday, August 17th 2018 - 4:49 am (GMT-7)
http://www.unn.edu.ng/
http://www.unn.edu.ng/
http://www.unn.edu.ng/
http://www.unn.edu.ng/
http://www.unn.edu.ng/
http://www.unn.edu.ng/
http://www.unn.edu.ng/
http://www.unn.edu.ng/
http://www.unn.edu.ng/
http://www.unn.edu.ng/
reply
herbal
Friday, September 21st 2018 - 11:25 pm (GMT-7)
Terimaksih atas kunjunganya.
http://herdiana.my.id/
http://obatasamurat.site/
http://qncjellygamat.link/
https://www.quora.com/profile/Her-Diana
http://herdiana.my.id/qnc-jelly-gamat/
http://herdiana.my.id/obat-kanker-serviks/
http://herdiana.my.id/obat-kencing-manis/
http://herdiana.my.id/obat-benjolan-di-leher/
http://herdiana.my.id/obat-kanker-paru-paru/
http://herdiana.my.id/obat-asma/
http://herdiana.my.id/obat-hernia/
http://herdiana.my.id/obat-wasir/
http://herdiana.my.id/obat-sinusitis/
http://herdiana.my.id/obat-gondok-beracun/
http://herdiana.my.id/obat-leukimia/
http://herdiana.my.id/obat-tbc/
http://herdiana.my.id/obat-polip-hidung/
http://herdiana.my.id/obat-benjolan-di-selangkangan/
http://herdiana.my.id/sehat-sendi/
http://herdiana.my.id/bersih-wanita/
http://herdiana.my.id/obat-keputihan/
http://herdiana.my.id/obat-radang-sendi/
http://herdiana.my.id/obat-anak-sering-mimisan/
http://herdiana.my.id/obat-tenggorokan-sakit/
http://herdiana.my.id/obat-telinga-berair/
http://herdiana.my.id/obat-sakit-pinggang/
http://herdiana.my.id/obat-batuk-kering/
http://herdiana.my.id/obat-penambah-darah/
http://herdiana.my.id/obat-sesak-nafas/
http://herdiana.my.id/obat-rematik-tulang/
http://herdiana.my.id/obat-asam-lambung/
http://herdiana.my.id/obat-rahim-kering/
http://herdiana.my.id/obat-rematik/
http://herdiana.my.id/obat-encok/
http://herdiana.my.id/obat-radang-usus/
http://herdiana.my.id/obat-nyeri-haid/
http://obatasamurat.site/
http://obatasamurat.site/2018/08/21/maju-terus/
https://www.blogger.com/profile/05032734693624226564
http://obatkolesterol.top/
https://derisalponso.blogspot.com/
http://utamakansehat.com/
http://derisalponso.blogspot.com/p/hrefhttpherdiana.html
https://www.bukalapak.com/u/alwiherbalnet
https://medium.com/@herdiana728/obat-sakit-pinggang-14da1496164f
https://www.bukalapak.com/p/kesehatan-2359/obat-suplemen/herbal/lo2ysi-jual-qnc-jelly-gamat?from=&product_owner=normal_seller
http://linkbun.ch/087pa
https://medium.com/@arimbiarbi/qnc-jelly-gamat-6f9c6409684a
http://linkbun.ch/0873w
https://medium.com/@rizkaaryani34/obat-maag-kronis-6791269286fd
https://medium.com/@anaherdi500/cara-menghilangkan-bau-di-miss-v-b92f6058b394
https://medium.com/@anaherdi500/cara-menghilangkan-bau-di-miss-v-489c2dfb4bd
https://medium.com/@anaherdi500
https://medium.com/@marisaputri730/obat-diabetes-93b5f93aafa9
https://medium.com/@marisaputri730
https://medium.com/@herdiana728
https://medium.com/@satrioherdiana
https://medium.com/@herdianaherbal
https://medium.com/@herdianaherbal/qnc-jelly-gamat-a78dec73a634
https://medium.com/@rizkaaryani34/walatra-bersih-wanita-cb296bc5588e
https://medium.com/@semarmesum8/obat-diabetes-9acf9a6d5188
https://medium.com/@yuliaarbi4/obat-diabetes-e01acd8db1df
https://medium.com/@dangherbal_71592/obat-maag-kronis-271c9272bd7b
https://medium.com/@satriopiningit130/qnc-jelly-gamat-7ac40f4b24be
https://medium.com/@satriopiningit130
https://medium.com/@majulancar91/obat-diabetes-1a8556a1ca59
https://medium.com/@majulancar91
https://medium.com/@rindudia30
https://medium.com/@rindudia30/w-e-w-1f9e907da8d6
https://medium.com/@satrioherdiana
https://medium.com/@satrioherdiana/herbal-tradisonal-d960555a4655
https://medium.com/@senjayaherdiana
https://medium.com/@asenherdiana/obat-diabetes-830996d2e88d
https://medium.com/@asenherdi
https://medium.com/@asenherdi/sehat-nikmat-a3de9281063f
https://medium.com/@arherdiana133
https://medium.com/@riwehpisan9
https://medium.com/@riwehpisan9/https-bit-ly-2xysqna-6c6535e5fa97
https://medium.com/@salametlancar401/http-obatmaagkronis-my-id-qnc-jelly-gamat-492d5790198b
https://medium.com/@salametlancar401
https://medium.com/@salametlancar401/obat-asam-lambung-fc1a9f2f45c3
https://medium.com/@bidarasini
https://medium.com/@bidarasini/obat-maag-7c5c3f81fa3b
https://medium.com/@bidarasini/obat-maag-7c5c3f81fa3b?email=bidarasini%40gmail.com&g-recaptcha-response=03AHqfIOnInSqmL_Ilr9WXMt1EyqbE2G8ZTEX3KCBkDdtp_y0S5o0WAnj4weSNVx4TQZtxAU8BOR-pBNXfaAcGGuq1LjacXdJ7dQFLCUnWNrBjyXLYDoofPppSTakowWFts53pP4b39Pmx1kNP685DwTktUn1OvCTXe8RXuVxhKk29Iwx0OCeoMSj6NAFwY5fnJQcrXsQKIl2tF6htvnGW1pSOAo43fr5-rwfn43-opmT7MgajvXvavrNhn8NAIIwDzcdJg-xTpJ8l_t8zCKt-rXP6YOSzMeHnUQ
https://medium.com/@widaralaut0
http://derisalponso.blogspot.com/p/hrefhttpherdiana.html
https://www.facebook.com/nank.peacelove/posts/1675834235872932?__tn__=K-R
https://www.pinterest.ca/arherdiana/
https://medium.com/@herdiana728/obat-anak-sering-mimisan-a4cfee67f371
https://medium.com/@herdiana728/obat-tenggorokan-sakit-82902ed4dd2a
https://medium.com/@herdiana728/obat-telinga-berair-8d20d4df9f00
https://medium.com/@herdiana728/obat-batuk-kering-69d8d80500be
http://herdiana.my.id/
http://obatasamurat.site/
http://herdiana.my.id/qnc-jelly-gamat/
http://herdiana.my.id/obat-kanker-serviks/
http://herdiana.my.id/obat-kencing-manis/
http://herdiana.my.id/obat-benjolan-di-leher/
http://herdiana.my.id/obat-kanker-paru-paru/
http://herdiana.my.id/obat-asma/
http://herdiana.my.id/obat-hernia/
http://herdiana.my.id/obat-wasir/
http://herdiana.my.id/obat-sinusitis/
http://herdiana.my.id/obat-gondok-beracun/
http://herdiana.my.id/obat-leukimia/
http://herdiana.my.id/obat-tbc/
http://herdiana.my.id/obat-polip-hidung/
http://herdiana.my.id/obat-benjolan-di-selangkangan/
http://herdiana.my.id/walatra-sehat-sendi/
http://herdiana.my.id/walatra-bersih-wanita/
http://herdiana.my.id/obat-keputihan/
http://herdiana.my.id/obat-radang-sendi/
http://obatmaagkronis.my.id/
http://obatmaagkronis.my.id/obat-maag/
http://obatmaagkronis.my.id/qnc-jelly-gamat/
http://obatmaagkronis.my.id/obat-asam-urat/
http://obatmaagkronis.my.id/obat-stroke/
http://obatmaagkronis.my.id/obat-herpes-genitalis/
http://obatmaagkronis.my.id/obat-paru-paru-basah/
http://obatmaagkronis.my.id/obat-thalasemia/
http://obatmaagkronis.my.id/obat-epilepsi/
http://obatmaagkronis.my.id/obat-penambah-nafsu-makan/
http://obatmaagkronis.my.id/obat-insomia/
http://obatmaagkronis.my.id/obat-radang-sendi/
http://obatmaagkronis.my.id/obat-tbc-tulang/ ?
http://obatmaagkronis.my.id/obat-tulang-keropos/
http://obatmaagkronis.my.id/obat-malaria/
http://obatmaagkronis.my.id/obat-asam-lambung/
http://obatmaagkronis.my.id/vitamin-penambah-berat-badan/
http://obatmaagkronis.my.id/obat-lemah-syahwat/
http://obatmaagkronis.my.id/obat-bantu-ginjal/
http://obatmaagkronis.my.id/obat-mani-encer/
http://obatmaagkronis.my.id/obat-diabetes/
http://obatmaagkronis.my.id/obat-ejakulasi-dini/
http://obatmaagkronis.my.id/obat-syaraf-terjepit/
http://obatmaagkronis.my.id/obat-rematik/
http://obatmaagkronis.my.id/obat-vertigo/
http://obatmaagkronis.my.id/obat-kanker-tulang/
http://obatmaagkronis.my.id/obat-kanker-kandung-kemih/
http://obatmaagkronis.my.id/obat-encok/
http://obatmaagkronis.my.id/obat-batu-empedu/
http://obatmaagkronis.my.id/obat-telinga-berair/
http://obatmaagkronis.my.id/obat-eksim/
http://obatmaagkronis.my.id/obat-kusta/
http://obatmaagkronis.my.id/obat-kanker-payudara/
http://obatmaagkronis.my.id/obat-kista-payudara/
http://obatmaagkronis.my.id/obat-kanker-tenggorokan/
http://obatmaagkronis.my.id/obat-kanker-ovarium/
http://obatmaagkronis.my.id/obat-lupus/
http://obatmaagkronis.my.id/obat-herpes/
http://obatmaagkronis.my.id/obat-amandel/
http://obatmaagkronis.my.id/obat-hipertensi/
http://obatmaagkronis.my.id/obat-jantung-koloner/
http://walatrabersihwanita.my.id/
http://walatrabersihwanita.my.id/cara-merapatkan-miss-v/
http://walatrabersihwanita.my.id/cara-menghilangkan-bau-di-miss-v/ ?
http://walatrabersihwanita.my.id/cara-mengembalikan-keperawanan/ ?
http://walatrabersihwanita.my.id/masker-wajah-spirulina/
http://walatrabersihwanita.my.id/obat-penyubur-kandungan/
http://walatrabersihwanita.my.id/obat-nyeri-haid/
http://walatrabersihwanita.my.id/obat-sakit-vagina/
http://walatrabersihwanita.my.id/obat-rahim-kering/
http://walatrabersihwanita.my.id/obat-keputihan/
http://walatrabersihwanita.my.id/obat-pendarahan-vagina/
http://walatrabersihwanita.my.id/obat-kanker-lidah/
http://walatrabersihwanita.my.id/obat-pelancar-haid/
http://walatrabersihwanita.my.id/obat-turun-rahim/
http://walatrabersihwanita.my.id/obat-benjolan-di-payudara/ ?
http://walatrabersihwanita.my.id/obat-liver/
http://walatrabersihwanita.my.id/obat-radang-tenggorokan/
http://walatrabersihwanita.my.id/obat-usus-buntu/
http://obatkolesterol.top/
http://obatkolesterol.top/obat-tbc-kelenjar/
http://obatkolesterol.top/obat-flu-tulang/
http://obatkolesterol.top/obat-susah-hamil/
http://herdiana.pbworks.com/w/page/128082927/FrontPage
http://derisalponso.blogspot.com/2018/08/qnc-jelly-gamat.html
https://www.bukalapak.com/p/kesehatan-2359/obat-suplemen/herbal/lo2ysi-jual-qnc-jelly-gamat?from=&product_owner=normal_seller
http://derisalponso.blogspot.com/2018/08/obat-diabetes.html
https://derisalponso.blogspot.com/
https://freewebsitetemplates.com/members/yuliaarbi/
http://derisalponso.blogspot.com/p/hrefhttpherdiana.html
http://utamakansehat.com/
reply
JustAtest
Saturday, November 10th 2018 - 5:53 pm (GMT-8)
This is not spam, or is it?
reply
JustATest
Saturday, November 10th 2018 - 5:55 pm (GMT-8)
I want to reply to this comment, just to test, test is my name.
👍 🆗 💪 🚲💨
reply
JustATest
Saturday, November 10th 2018 - 5:58 pm (GMT-8)
Reply did not get nested under the comment I was replying at..😏
reply
jack
Saturday, February 16th 2019 - 1:06 pm (GMT-8)
http://pomax.nihongoresources.com/pages/EasyPageComments/#EasyPageComment-form-Demonstrator

//testing a link
reply
gb
Wednesday, March 27th 2019 - 12:24 am (GMT-7)
comment to test, just for fun
reply
Cassie
Wednesday, May 8th 2019 - 11:09 am (GMT-7)
I'm truly enjoying the design and layout of your site.
It's a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you
hire out a designer to create your theme? Outstanding work!2019 funny food commercials
reply
ZAP
Friday, June 19th 2020 - 3:41 am (GMT-7)
Thank you for sharing
https://www.guidevillage.com/collections/waist-trainer-for-men
🔥 Find the top-quality waist trainer for men here. Men can wear waist trainer too. If you want to say goodbye to beer gut. Get the best waist trainer for men today. Shop GuideVillage today!Free and fast shipping worldwide.
reply
Miguel
Monday, March 15th 2021 - 8:41 pm (GMT-7)
This article was such a fantastic read which
I will definitely suggest it for the family members!
The last time I've read some thing as professionally written was at http://sangokumuso.lib.net/redirect.cgi?https://makeup-reviews.com/eyeliner/aqua-eyes-star-black-1l/. Thankyou for the professionalism and also an eye for the details.
Will be pleased to see more of your own writing!
reply
KATHY SHELL
Thursday, April 1st 2021 - 12:20 am (GMT-7)
d=DS COMPANY AND HACKING
BLANK ATM/CREDIT CARDS
Email: cardsblank@gmail.com or deavonscott69@gmail.com
WhatsApp: +351924365160  
_Increase Credit Scores
_western union, bitcoin and money gram hacking
_criminal records deletion_BLANK ATM/CREDIT CARDS.
We have several ATM Cards;;Platinum Mastercard ,Gold VISA-,
* Gold Mastercard,Platinum Visa, Infinity Visa,Infinity Mastercard with affordable price....DS Company is the world leading black ATM Card ,,
change your life today.
Email: cardsblank@gmail.com    or    deavonscott69@gmail.com
WhatsApp: +351924365160  
Also DS Blank ATM is also affiliations with Bitcoin:  mbitcoincompany@gmail.com
DS Company has 60 legit ways to make money online by completely eradicating world poverty and suffering ...
web;https://maplemoney.com/make-mroney-online/#comment-215146..
DS Company will support everyone worldwide with 50% in investment and support at all costs to help both sick, needy and suffering to have money to live and acquire all their needs.
for Bitcoin we support every one with    € 2,500  once they have starting up capitals ok.
for further  details contact us on ;Bitcoin:mbitcoincompany@gmail.com
               or  
Email: cardsblank@gmail.com or deavonscott69@gmail.com
WhatsApp: +351924365160  




















reply
Lorum
Friday, March 24th 2023 - 9:29 pm (GMT-7)
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
reply
lucy
Tuesday, November 21st 2023 - 4:23 pm (GMT-8)
HOW TO GET CROWN MAGIC ATM CARD
UNLIMITED CASH I took the risk and in exactly 6 days later my card was delivered to my home address here and that same evening i used the card was able to take out $50,000 for a start it's been just 3 weeks and my life has taken a new shape. I simply want to say thank you to this electronic company and help spread their fame abroad. If you ever are in need of this card details on how to get yours today, (WhatsApp +1(213)4218707 email crown_technology@yahoo.com
reply

You can also post test comments, but because the demonstrator uses straight PHP injection, rather than javascript, posting will reload the entire page. Note that any posts to the demonstrator section get deleted after a few hours. For normal comments, use the comment section at the bottom of this page =)

If I write a one, and then a zero, which number did I write?

Details

Nesting is automatic, and you can show it (or not) by using some CSS indenting. Custom styling for your own comments is also CSSable, so if you want to visually offset your own comments from everyone else's, you can.

In fact, there is quite a bit of styling that you can apply to the various elements, since essentially everything is either classed, or classless elements inside classed elements. All classes are prefixed with "EPC-" and certain elements in the post form have "EPC-..." id attributes, so you can hook into them with JavaScript, should you want to.

Every comment has its own anchor, and you can link to specific comments using them. For the PHP-generated code, hashes in the URL are not a problem, because the generated html already contains them. For the JavaScript-generated code, hashes in the URL are actually also just fine, because EasyPageComments.js will check for a URL hash, and keep it stored until you call the createCommentsList function, after which it'll tell the browser to jump to the specific comment indicated by the hash.

Email notification

EasyPageComments can send you an email every time someone posts a comment. This is enabled by setting the $notify variable to true, and filling in your email address as $to value. Note that even if you enable email notification, you will not receive emails for comments posted as yourself.

In additional to global notifications, EasyPageComments also lets people indicate whether or not they want to be notified by email whenever someone replies to their posts. This is done via a checkbox option in the comment posting form.

Getting the email #links right

NOTE: in order for the notification emails to contain the right comment #hash link, you must make sure that the $EPC_path variable points to your page. Thus, if your page is index.html, this variable should read:

$EPC_path = "index.html";

Owner posting by password

Because you know you're a trusted user, and because you don't want other people posing as you, filling in your nickname and email address and some comment that you would never write, posts by the owner are password protected. Rather than filling in your name and email address, plus answering the security question, you simply fill in your name, and the password you've set for your name in EasyPageComments.php:

// this is used to mark your own posts differently from everyone else's
var $admin_alias = "MyNickName";

// the owner nickname is password protected, which is used in place of an email address
var $admin_password = "This can be as long as you like; Unicode and case is respected.";

Even if you rely on PHP for your comment listing and post form, you will probably want to add EasyPageComments.js as on-page script, as its used to change the post form when the username happens to be yours. This is only a cosmetic change, but cosmetics are important on the web!

RSS

EasyPageComments will automatically set up RSS feeds for each comment thread you use, so you don't even have to worry about that. If you don't want this, you can turn off visibility for the "EPC-RSS-link" class, so the RSS link doesn't show, or you can turn RSS link generation off entirely by changing the EasyPageComments.php setting $rss = true; to $rss = false; instead.

Getting the RSS <link> URLs right

NOTE: in order for the RSS links to point to the correct webpage and #hash link, you must make sure that the $EPC_path variable points to your regular page. Thus, if your page is index.html, this variable should read:

$EPC_path = "index.html";

SQLite

Data is stored in SQLite databases, using SQLite3 format, with the following schema:

CREATE TABLE comments(id INTEGER PRIMARY KEY AUTOINCREMENT, page TEXT, name TEXT, email TEXT,
                      timestamp INTEGER, body TEXT, replyto INTEGER, notify INTEGER)

Thread topology uses the relation child.replytoparent.id and that's pretty much everything special about the layout. There is no separate users table, because that's something you would use user authentication for anyway, you don't overload a comment system with that.

If you need to manipulate the data, I recommend using SQLiteManager, which is an extension for FireFox. I know it's weird, but so far the best application for managing SQLite databases is a browser plugin. That said, it's a really good browser plugin (and ignore the nonsense comment about it crashing Thunderbird. Why you would try to install it for Thunderbird when it's a FireFox plugin, I have no idea) and you can use XULRunner to make it run stand-alone too, of course.

EasyPageComments creates one database file per 'page', so if you want to use multiple comment sections on a single page, the messages will be tracked using different databases, so that messages from one comment thread can't accidentally end up in another comment thread.

Customising EasyPageComments settings

If you want to customise the settings for EasyPageComments, simply open the EasyPageComments.php file and adjust the values at the start of the script. They are fairly self-explanatory:

// this is used to mark your own posts differently from everyone else's
var $admin_alias = "YourNameHere!";

// the owner nickname is password protected, which is used in place of an email address
var $admin_password = "Entire Unicode passphrases work!";

// what should be the security question for this page?
var $security_question = "If I write a three, and then a seven, which number did I write?";

// what are valid security answers for this page?
var $security_answers = array("37", "thirty seven", "thirty-seven", "thirtyseven", "37");

// should comment threads get an auto-generated RSS feed button?
// (if true, remember to also set the $EPC_path variable, below)
var $rss = true;

// should you be notified by email when someone posts a comment?
// (if true, remember to also set the $EPC_path variable, below)
var $notify = true;

// what's the email address to send those notifications to?
var $to = "test@example.org";

// what's the subject you'd like?
var $subject = "[EasyPageComments] page comment posted";

// where can the sqlite database be found
var $db_dir = "./sqlite";

// This variable should contain the name of your page. If your
// page is "myfunkypage.php", then this variable should be set
// to that. Relative locations such as "../index.html" are
// allowed.
//
// EPC_path is used for RSS feeds  elements as well as #hash
// links in email notifications, so if $rss and $notify are both
// set to "false", EPC_path will not be used, and its value is
// irrelevant.
var $EPC_path = "index.html";

Note that the $db_direntry simply says where you want your databases to reside. They don't need to exist yet, the script will make them if they don't exist yet, although the directory you want them to be in in has to exist. (The script won't make directories for you, only database files)

If you want to use the JavaScript approach, then you may want to put the .js and .php files in different directories. If this results in the JavaScript functions trying to call a .php file that isn't in the same directory as your page, you can modify the location the JavaScript should use for posting/getting the list by modifying the location in the EasyPageComments.js file:

EasyPageComments.EasyPageCommentLocation = "../moo/EasyPageComments.php";

Simply change this to the location of EasyPageComments.php relative to your page, and things should work just fine.

Using EasyPageComments with a user authentication system

If you have a user authentication system in place, you generally don't want the comment system to require your already-logged-in users to have to fill in their name and email address, and they're generally not required to fill in a security question, since they already logged in.

EasyPageComments lets you indicate that content is being generated for a trusted user by stating the user's name and email address before including EasyPageComments.php, using an associative array as follows:

// set the trusted user's name and email address
$EasyPageComments = array("name"  => "UserBot5000",
                          "email" => "bigbot@userbot.net");

// make EasyPageComments magic happen
require_once("EasyPageComments.php");

If you're using the JavaScript approach, you will probably want to use a passthrough file. Making one is relatively easy, so let's say we make a file called "EPC-passthrough.php", it will only need to have to following content:

<?php
  // session-based authentication handling code goes here
  require_once("user_authentication_script.php");
  $user = authenticate();

  // set the trusted user's name and email address
  $EasyPageComments = ($user->authenticated ? array("name"=>$user->name, "email"=>$user->email) : false);

  // make EasyPageComments magic happen
  require_once("EasyPageComments.php");
?>

This sets up trusted user content only if the user passed your authentication, generating the normal content otherwise. You will now also need to make the EasyPageComments.js script call this EPC-passthrough.php file instead of the normal EasyPageComments.php, so that user authentication can take place. This is almost trivially simple, only requiring you to tell JavaScript what the new file's location is:

// Set alternate EasyPageComments location
EasyPageComments.EasyPageCommentLocation = "EPC-passthrough.php";

// build comments list
EasyPageComments.createCommentsList('My Page Name');

// build comment post form
EasyPageComments.createCommentForm('My Page Name');

Comments

To show that one page can have multiple comment threads (but also because a demonstrator is not the "real" thing), there's also the actual comment thread for this page. If you have any questions or suggestions, do let me know by posting a comment!

Leave a comment

And please do NOT use this section for testing, this is the normal page comments section. It's for asking questions or leaving feedback. If you want to test, use the demonstrator thread instead (yes, that one is POST based)