Thanks for you suggestion, Dee.
Both your suggestions leeds to this error:
Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/uisge-beatha.eu/httpdocs/lib/content.functions.php(669) : eval()'d code on line 16
The code in {include_poll} is:
Code: Select all
/* Include this before your html code */
include_once "/home/httpd/vhosts/uisge-beatha.eu/httpdocs/poll/poll_cookie.php";
I placed this tag here:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
<!-- Change lang="en" to the language of your site -->
<head>
<!-- UDT voor het poll-systeem 21mrt07 -->
{include_poll}
<title>{sitename} - {title}</title>
<!-- The sitename is changed in Site Admin/Global settings. {title} is the name of each page -->
The code in {poll} is (after Dee's suggestion):
Code: Select all
/* path */
$poll_path = "/home/httpd/vhosts/uisge-beatha.eu/httpdocs/poll";
require_once $poll_path."/include/config.inc.php";
require_once $poll_path."/include/$POLLDB[class]";
require_once $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$db =& $gCms->polldb_sql;
/* $CLASS["db"]->connect(); */
$db =& $gCms->db;
/* the first poll */
echo $php_poll->poll_process(1);
adodb_connect();
I placed this tag in the navigation section of the template, because for now I'd like to have under the menu.
Based on the error, I think it error's at this line:
BTW, to see it working outside CMSMS
http://www.uisge-beatha.eu/poll/demo_1.php
I created a test template that is not accessable through the menu:
http://www.uisge-beatha.eu/index.php?page=test
Any suggestions for improvement?
Thanks so far,
Gregor