Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] pap_xpoll (multiple poll plugin)
Please, test pap_xpoll_v02. It doesn’t contain all features yet, that I wanted to add, but I’ll keep working on it (i.e. AJAX, edit number of options, etc.).
See my very first post here for installation guide and feature list.
M&N wrote: “Yes, and it’ll be great, if in new versin you would be able to edit number of votes on each option.”
Please take a look if the result display (%, absolute, outside/inside of graphs) is what you want. If not, please, give me more details.
Last edited by tranquillo (2006-02-07 17:27:09)
Offline
#50 2005-12-19 15:34:05
- oldi
- Member
- Registered: 2005-10-14
- Posts: 87
Re: [archived] pap_xpoll (multiple poll plugin)
Just tried your version 0.2. I get this on top of the admin page
A problem occured while loading the plugin: pap_xpoll -> Warning: Unknown(../pap_xpoll_lib.php): failed to open stream: No such file or directory
A problem occured while loading the plugin: pap_xpoll -> Warning: (null)(): Failed opening ‘../pap_xpoll_lib.php’ for inclusion (include_path=’.:/usr/local/lib/php’
Also when i go to tab_xpoll i get
Fatal error: Call to undefined function: list_polls() in /homepages/44/d148076317/htdocs/newswire/textpattern/lib/txplib_misc.php(455) : eval()’d code on line 467
I didn’t have any problems with v01. So will go back to that version.
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
To what folder did you upload pap_xpoll_lib.php? It has to be in the textpattern root folder, not in the folder called “textpattern”. This is different to version 01!
Offline
#52 2005-12-19 16:18:31
- oldi
- Member
- Registered: 2005-10-14
- Posts: 87
Re: [archived] pap_xpoll (multiple poll plugin)
my mistake. I installed it in the textpattern folder.
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
I’m trying your plugin, it looks very promising. :)
Just a fix for validation: replace in the code any <code>’&’</code> with <code>’&’</code>.
Only 5 occurrencies. This will fix the ampersands generated for urls.
Bye
Z-
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
Another thing I noted. The tags for the poll form are working fine. But I’m not able to code the result form in a way that any result line is a P.
I tried this:
< p > < txp:pap_xpoll_results / > < /p >
But every option is inside the same P, with some div inside. I had the only option to use a unique div to embed < txp:pap_xpoll_results / >
Bye
Z-
Last edited by Zanza (2006-01-04 23:46:36)
Offline
#55 2006-01-09 20:13:17
- Jaro
- Member
- From: S/F
- Registered: 2004-11-18
- Posts: 89
Re: [archived] pap_xpoll (multiple poll plugin)
I like this poll system but I’m having problems with language specific characters like č, ž, ť. Is it possible to easily fix this problem or is it too much work?
EDIT: I found the solution to this problem with Richard’s (tranquillo) help. Open your database and find table called xpoll_options. In the column called “Collation” change the charset to the one you need.
Last edited by Jaro (2006-01-10 12:55:20)
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
Does anyone happen to have this file on hand? I need it for a client project ASAP please :D
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
<strike>Sorry, you can’t reach the download site.</strike> I’m putting up my own site within the next two weeks, where the plugin will be available, hopefully in version 0.3.
UPDATE: I put it on a new site, so plugin should be available again.
@thame: I’ll send it to you tonight (European Time).
Last edited by tranquillo (2006-01-25 21:03:22)
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
Thanks a bunch tranquillo, I really appreciate it.
My email is tomfadial[at]gmail.com
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
Everytime I try to run the installation file I get this error:
create tables failed
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ENGINE=MyISAM’ at line 5
Here’s everything down to line 5 in the code:
<code> // Database and Server Values $user_db = ‘root’; // Server Username $pass_db = ‘’; // Server Password $host_db = ‘localhost’; // Server (e.g. localhost) $db = ‘’; // Name of your textpattern database $PFX = ‘’; // Textpattern table prefix (incl. underscore)
// Connect Information – No need to edit
define(‘PFX’, $PFX);
mysql_connect ($host_db, $user_db, $pass_db);
mysql_select_db ($db);
$sql[‘xpoll_blocks’] = ‘CREATE TABLE ‘ . PFX . ‘xpoll_blocks (
pid int(11) NOT NULL default “1”,
ip varchar(15) NOT NULL default “”,
PRIMARY KEY (pid, ip)
) ENGINE=MyISAM’ ;
</code>
All the variables are set to my specific values. The only thing that I have edited in this file is the values that are supposed to be edited.
I’ve put the files in my root directory, not the textpattern directory. Still no luck.
Thanks for any help,
Ren
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
Use “ENGINE” if version of MySQL > (4.0.18 or 4.1.2) else replace it with TYPE=MyISAM.
Offline