I don't understand why is not working I have install Advanced Poll and it's working just fine on the demo3 page http://www.iblibertad.com/encuesta but not on the actual page http://www.iblibertad.com I put the code :
{PHP:iblibertad/encuesta/poll_cookie.php}
<html>
<body>
<?php
include_once "iblibertad/encuesta/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>
ON MY MAIN TEMPLATE, but is not working. I don't understand do I have to place the first code somewhere else?
Advanced Poll, Help please!
advanced poll in phpwcms or index.php
this is my code on my main template:
{PHP:http://www.iblibertad.com/encuesta/poll_cookie.php}
{PHP:/home/techyweb/public_html/iblibertad/encuesta/booth.php}
[PHP]echo $php_poll->poll_process(4)[/PHP]
this what I get:
Connection Error
MySQL Error : Connection Error
Error Number: 0
Date : Fri, August 26, 2005 17:09:12
IP : 156.153.255.126
Browser : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Referer :
PHP Version : 4.4.0
OS : Linux
Server : Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b
Server Name : http://www.iblibertad.com
Script Name : /index.php
WHEN I CHANGE IT TO:
{PHP:http://www.iblibertad.com/encuesta/poll_cookie.php}
{PHP:http://www.iblibertad.com/encuesta/booth.php}
[PHP]echo $php_poll->poll_process(4)[/PHP]
THIS IS THE ERROR
Fatal error: Call to a member function on a non-object in /home/techyweb/public_html/iblibertad/include/inc_front/front.func.inc.php(2434) : eval()'d code on line 1
What am I doing wrong, please help. I have no knowledge of php and believe me I have checked several postings in this forum and I still don't get it
{PHP:http://www.iblibertad.com/encuesta/poll_cookie.php}
{PHP:/home/techyweb/public_html/iblibertad/encuesta/booth.php}
[PHP]echo $php_poll->poll_process(4)[/PHP]
this what I get:
Connection Error
MySQL Error : Connection Error
Error Number: 0
Date : Fri, August 26, 2005 17:09:12
IP : 156.153.255.126
Browser : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Referer :
PHP Version : 4.4.0
OS : Linux
Server : Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b
Server Name : http://www.iblibertad.com
Script Name : /index.php
WHEN I CHANGE IT TO:
{PHP:http://www.iblibertad.com/encuesta/poll_cookie.php}
{PHP:http://www.iblibertad.com/encuesta/booth.php}
[PHP]echo $php_poll->poll_process(4)[/PHP]
THIS IS THE ERROR
Fatal error: Call to a member function on a non-object in /home/techyweb/public_html/iblibertad/include/inc_front/front.func.inc.php(2434) : eval()'d code on line 1
What am I doing wrong, please help. I have no knowledge of php and believe me I have checked several postings in this forum and I still don't get it
Solved my Advanced Poll issue myself.
I searched for weeks for a solution and could not find an answer to my problem discribed in this thread. I'm surprised no body cared about my issue, but then again it's free anyways. So I finally figured it out myself. I posting this message just to let know another poor soul how to do it when you have CMS system like phpwcms.
You see this code you get when installing Advanced Poll and creating your first poll.
WHAT an iframe tag? Yes I just took my whole code and created an html page, pasted the code on it and renamed it with an php extention like "poll.php".
I used that fileURL "poll.php" using iframe tag like this:
<iframe src="http://www.iblibertad.com/poll.php>
of course you have to find out more about this tag if you want to customize it, but that's it.
Put that code anywhere on you template or article and it will show your poll.
I hope this helps somebody.
You see this code you get when installing Advanced Poll and creating your first poll.
I hated myself not able to find a way to integrate it to my main's website template even though they say use this tag {PHP: ..} or [php]poll_url[/PHP]. Whatever, of all the hundres threads I read no body was clear enough to tell me to USE an IFRAME.<?php
// Important! You have to include it before your html code
include_once "/home/techyweb/public_html/iblibertad/encuesta/poll_cookie.php";
?>
<html>
<body>
<?php
include_once "/home/techyweb/public_html/iblibertad/encuesta/booth.php";
echo $php_poll->poll_process(4);
?>
</body>
</html>
WHAT an iframe tag? Yes I just took my whole code and created an html page, pasted the code on it and renamed it with an php extention like "poll.php".
I used that fileURL "poll.php" using iframe tag like this:
<iframe src="http://www.iblibertad.com/poll.php>
of course you have to find out more about this tag if you want to customize it, but that's it.
Put that code anywhere on you template or article and it will show your poll.
I hope this helps somebody.
Hi Happy,
Solution 1:
I think that, if you put this in your template:
{URL:http://www.iblibertad.com/encuesta/poll_cookie.php}
it should work for you
Solution 2 (not tested):
1. You create a content part where you put this:
{URL:http://www.iblibertad.com/encuesta/poll_cookie.php}
and then you put this (your article reference ID) in your template. Ex.:
{URL:http://www.iblibertad.com/encuesta/inde ... 17,0,0,1,0}
Solution 1:
I think that, if you put this in your template:
{URL:http://www.iblibertad.com/encuesta/poll_cookie.php}
it should work for you
Solution 2 (not tested):
1. You create a content part where you put this:
{URL:http://www.iblibertad.com/encuesta/poll_cookie.php}
and then you put this (your article reference ID) in your template. Ex.:
{URL:http://www.iblibertad.com/encuesta/inde ... 17,0,0,1,0}
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!