Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-07-13 09:19:15

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

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

#2 2010-07-13 12:03:17

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,254
Website GitHub Mastodon Twitter

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

#3 2010-07-13 12:08:58

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: integrate with poll script

sure


<txp:txp_me />

Offline

#4 2010-07-13 12:50:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,254
Website GitHub Mastodon Twitter

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

#5 2010-07-13 18:34:23

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: integrate with poll script

i’m using it in page directly.

there is full code of page or there


<txp:txp_me />

Offline

#6 2010-07-13 18:55:11

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

#7 2010-07-13 19:06:15

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

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

#8 2010-07-13 19:11:04

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: integrate with poll script

Have you setup the correct connection info for the poll’s config.inc.php?

Offline

#9 2010-07-13 19:13:38

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: integrate with poll script

yes


<txp:txp_me />

Offline

#10 2010-07-14 16:47:34

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: integrate with poll script

some ideas?(


<txp:txp_me />

Offline

#11 2010-07-14 17:05:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,254
Website GitHub Mastodon Twitter

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

#12 2010-07-14 17:13:08

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: integrate with poll script

Hi Yiannis.
Yes, i try… same connection error…


<txp:txp_me />

Offline

Board footer

Powered by FluxBB