Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
integrate with poll script
i want integrate my txp with poll script, called Advanced Poll 2.0.8
poll have admin panel. i’m using DB install.
when i paste php code to place, where i want to call this script, i’m get error in same place:
Parse error: syntax error, unexpected ‘!’ in D:\xampp\htdocs\adiu\textpattern\publish\taghandlers.php(3127) : eval()’d code on line 4
can some one help me?
or advice some other script with admin panel, which i can integrate with txp.
thanks.
<txp:txp_me />
Offline
Re: integrate with poll script
Do you enclose the php in txp tags? ie it should be
<txp:php>...</txp:php>
and not <?php ... ?>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: integrate with poll script
sure
<txp:txp_me />
Offline
Re: integrate with poll script
Can you post what you are pasting and where you are pasting it in? (a form, page, article)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: integrate with poll script
i’m using it in page directly.
<txp:txp_me />
Offline
Re: integrate with poll script
The error message did not lie:
/* path */
$poll_path = 'D:/xampp/htdocs/adiu/poll'!;
should be
/* path */
$poll_path = 'D:/xampp/htdocs/adiu/poll';
Offline
Re: integrate with poll script
Without ! i’m getting connection error
MySQL Error : Connection Error
Error Number: 0
Date : Tue, July 13, 2010 19:03:25
IP : ::1
Browser : Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
Referer : http://localhost/adiu/textpattern/index.php
PHP Version : 5.3.1
OS : WINNT
Server : Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
Server Name : localhost
Script Name : /adiu/index.php
<txp:txp_me />
Offline
Re: integrate with poll script
Have you setup the correct connection info for the poll’s config.inc.php?
Offline
Re: integrate with poll script
yes
<txp:txp_me />
Offline
Re: integrate with poll script
some ideas?(
<txp:txp_me />
Offline
Re: integrate with poll script
Hi ZIya
did you try
/* path */
$poll_path = 'http://localhost/adiu/poll';
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: integrate with poll script
Hi Yiannis.
Yes, i try… same connection error…
<txp:txp_me />
Offline