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

Using Guestbook in XHTML site
#1

Hey,

Can this be integrated into my xHTML website?
If so. How is the best way?
Reply
#2

I'm not sure of what you are asking. If you mean that your website is XHTML strict, then not in the current state. There is one necessary attribute which needs to be used, yet is not allowed in XHTML strict.
If you want to integrate it into a website without php, then you are out of luck. It is impossible to create and store comments without php to my knowledge, as the forms need to be processed with a server side script.

However, if you are not using XHTML strict and your server supports php, then you can follow the installation instructions on the main website:
http://www.commentics.org/installation.php
http://www.commentics.org/integration.php

I'm giving you three guesses...
Reply
#3

I want the guestbook on my site with the same body.

I've installed it and tried the integrate from the links you gave.
I cant see the guestbook to make a comment to test it out.
I have installed it on my local host.
Reply
#4

Can you give me any further information? What installation steps did you take? Did you put
PHP Code:
<?php 
session_start
();
ob_start();
?>
Before the doctype? Did you get any errors at all? Try adding "../comments" if the comments directory is one level higher than the page you are trying to integrate with. Do you have php and MySQL installed on your localhost? Do you meet the requirements http://www.commentics.org/requirements.php ?

You don't have to answer all of the questions, only what you think will help solve it.

I'm giving you three guesses...
Reply
#5

Hi,

Yes I added the php before the DOC type.
The page where I have placed the php in the HTML is in a directory called 'site' and the comments folder is in there.

Example: [i]root/site/test.html[i/]
[i]root/site/comments[i/]

So I change the php
PHP Code:
<?php
$page_id
= "2";
$path_to_comments_folder = "../comments/";
define ('IN_COMMENTICS', 'true'); //no need to edit this line
require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line
?>

I dont see anything at all.

I see 9 tables in myphpadmin.

Note:
Quote:The server should have:

* cURL
* GD Library
I dont think XAMPP have these. Do I need them?Dodgy
Reply
#6

cURL is for the news section in the admin panel. The news tells you about updates, and other stuff like that.
The GD Library is for displaying the Captcha. It is not necessary, but it is recommended that you have it.
The path was correct before, so you can change that back.
Another thing that works is removing the .htaccess files from every folder in the comments directory. Try that and tell me what happens.

I'm giving you three guesses...
Reply
#7

I still cannot see anything.

Even if i direct the url to the comments directory I see nothing.
Reply
#8

Can you go to the admin panel?

I'm giving you three guesses...
Reply
#9

Quote:root/site/test.html

The script can't be added to a HTML file. It needs to be PHP.

Have you completed the interview?
Reply
#10

(25-Aug-2010, 04:13 AM)Static Wrote:  Can you go to the admin panel?

Yes.


(25-Aug-2010, 12:00 PM)Steven Wrote:  
Quote:root/site/test.html

The script can't be added to a HTML file. It needs to be PHP.

Turns out if I change it from html to php it works.
Thanks Big Grin
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by besric
27-Dec-2018, 12:46 PM
Last Post by Steven
12-Jun-2012, 04:23 PM
Last Post by toughbookdrivers
06-Jan-2012, 01:08 PM
Last Post by Lee
25-Aug-2010, 03:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)