Adding comments to your personal website

You would like to add an in-line comments functionality embeded to a page of your personal web site and you don't want to pay or sign up for that.

You can find here a solution based on a "HTML snippet" that you have to insert into the HTML code of a page of your website and two files that you have to upload to your personal host or webspace. One file contains the main part of JavaScript code while the second in PHP code handles the comments using a simple text file as database (no MySQL is required).

This proposed solution can be also used for a website build using iweb when you use a personal host or a free webspace or when you have no Mobileme account.

If you want to see how it works ... "See an example"

Things you'll need:

  • a personal host or webspace with PHP enabled server (MySQL is not required)
  • a text editor to modify some parameters in the scripts
  • a standard FTP program for uploading the two files

Files you have to download:

( Download this ZIP package containing three files )
  • the HTML snippet that you have to insert into the HTML code of your page
  • the JavaScript module, ".js" file
  • the PHP file

Tutorial:

First you have only two parameters to setup for personalization in the first lines of the HTML snippet:
You have to choose a name for the topic of the comments, the value of the variable "sujet".
If necessary, you could specify with the variable "adressebase" the address offset for the PHP file if it is located in another folder than your page which you add the HTML snippet. ( The value can be a part of an absolute url, "http://..." )

Then, insert the HTML snippet (modified in advance) into the source code of your page, upload the ".js" file in the same folder of you page and upload the ".php" file too in this same folder (then keep the value of the parameter "adressebase" at '' ) or in another location ( update the 'adressebase' accordingly ).
That's' all.

Of course, you can modify the HTML snippet in order to obtain different display style, try and go ...
And also, if you would like to put the ".js" file on a particular folder you have to modify accordingly the value of the "src" attribute of the HTML tag "<script ..." at the HTML snippet last line.

Tutorial (for iweb case):

First prepare the files for personalization as described above.

Follow by these steps:
/open iweb /click "widgets" /click "HTML snippet" icon /drag and drop this icon onto the position you prefer on your page to locate the comments /double-click on the displayed text box to interact with /paste or type the HTML snippet /click the "apply" button to validate/

And finally:
upload to your personal host or webspace via a standard FTP program (like Fetch) the two files that are required.


Nom : hello  Date : 26.10.2019 00:41
hello

Nom : Gio  Date : 15.06.2018 13:22
bonjour
j'ai un petit moteur de recherche php (Tedheu, 11 février 2008, version 2.1) que vous avez créer il y a pas mal de temps, et que j'utilise souvent, maintenant je suis passer a php 7.2 et il fonctionne pas. Vous aurez pas une version qui fonctionne avec php 7.2?

Cordialement
GIO

Nom : eric  Date : 24.03.2018 11:12
Commentaire accentué

Nom : asd  Date : 05.08.2015 14:40
asadafafad

Nom : dsad  Date : 02.05.2014 12:37
asdsd

Nom : me  Date : 05.01.2014 17:48
test

Nom : fsdfdsf  Date : 21.10.2013 17:41
sdfsfsfsf

Nom : zoo  Date : 11.01.2013 12:49
Die Oos-il essai conclaunt?

Nom : Koos Roos  Date : 10.01.2013 19:28
Wonder hoe lank kan die kommentaar wees. Party mense het baie om te sê. Dit lyk darem of 'n mens 'n paar dinge gesê sal kan kry.

Kom ons kyk hoe dit vertoon.

Nom : test   Date : 09.10.2012 22:26
test comment

Nom : d  Date : 08.10.2012 09:25
dsafdsfd

Nom : fsdafsd  Date : 08.10.2012 09:25
dfasdfdf

Nom : nmn  Date : 23.05.2012 08:20
mnmnmn,mn

Nom : test  Date : 17.05.2012 20:40
test test testicle

Nom : Flag  Date : 10.05.2012 19:39
Are you There ? Or not ?

Nom : ewqde  Date : 04.04.2012 20:17
dfdsfsd

Nom : jojoy  Date : 17.12.2011 00:02
It bla bla

Nom : sd  Date : 25.08.2011 09:57
fsadfdsf

Nom : sdfdds  Date : 23.06.2011 03:40
fdsfsdff

Nom : Warren Grieve  Date : 22.12.2009 22:00
Thanks for posting this.

URL: http://tedheu.net/rubriques/services/commentaires/serv_com.php?lang=en , page 'Plugin: "comments" ' , updated on 2009-11-06
About this website Contact me Post a comment
TTU © 2009  
Hosted by:

since june 2004