Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#85 2007-05-25 10:34:26
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: [archived] pap_xpoll (multiple poll plugin)
Seems tranquillo is not caring for the plugin anymore, maybe someone else likes to take it over? anyway her you can download v0.2:
pap_xpoll_v02.zip
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
A new maintainer would be quite nice, yes.
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
I get an error that wasn’t there just days ago: “tag_error <txp:pap_xpoll_options class=”“ /> -> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource on line 153”. Anyone had this one before?
Offline
#88 2007-08-23 13:43:31
- sisushka
- Member
- Registered: 2007-07-30
- Posts: 14
Re: [archived] pap_xpoll (multiple poll plugin)
Yay, great plugin! It works like a charm :) I’m just wondering how to use it for a multi-lingual site without editing the pages. I simply want to eliminate the posibility of ruining a site by my client. Any ideas? :)
Offline
#89 2007-09-23 18:27:13
- sisushka
- Member
- Registered: 2007-07-30
- Posts: 14
Re: [archived] pap_xpoll (multiple poll plugin)
I’ve got it finally :) There probably would be a more impressive to make it multi-lingual than the system of mine, but I’m not a programmer :) So, if anybody needs a multilingual poll, just wrap the options into spans and use CSS to display either first language or the second one.
I did it like this:
CSS for Slovak lang.
@/* gal2 */
#gal2 input {
width: auto;
height: auto;
margin: 0 10px 0 0;
}
#gal2 span.en {
display: none;
visibility: hidden;
}
#gal2 span.sk {
display: block;
visibility: none;
}
#gal2 strong span.sk, #gal2 strong {
color: #d7a800;
font-weight: 900;
}
#gal2 span.en strong {
display: none;
visibility: hidden;
}
#gal2 span.clsPerc {
width: auto;
height: 15px;
margin: 0 5px 0 5px;
padding: 0 2px 0 2px;
}@
CSS for English lang.
@/* gal1 */
#gal1 input {
width: auto;
height: auto;
margin: 0 10px 0 0;
}
#gal1 span.sk {
display: none;
visibility: hidden;
}
#gal1 strong span.en, #gal2 strong {
color: #d7a800;
font-weight: 900;
}
#gal1 span.sk strong {
display: none;
visibility: hidden;
}
#gal1 span.clsPerc {
width: auto;
height: 15px;
margin: 0 5px 0 5px;
padding: 0 2px 0 2px;
}
@
(or you could use two separate styles, so the id of #gal1 may remain…)
Text in your poll goes like this:
@
<strong><span class=“sk”>Páči sa Vám naša nová webstránka?</span> <span class=“en”>Do you like our website?</span></strong>
<span class=“sk”>Áno, je veľmi pekná.</span><span class=“en”>Yes, it’s very nice.</span>
<span class=“sk”>Môže byť.</span><span class=“en”>Quite good one.</span>
<span class=“sk”>Nie, nepáči sa mi.</span><span class=“en”>No, I don’t like it.</span>
@
It works fine so far, but I still hope that somebody will code the proper PHP some time :))
Use it only if you don’t mind that both languages will be visible while switching the CSS of.
- S.
Offline
#90 2007-09-23 18:29:55
- sisushka
- Member
- Registered: 2007-07-30
- Posts: 14
Re: [archived] pap_xpoll (multiple poll plugin)
I’ve got it finally :) There probably would be a more impressive to make multi-lingual pap_xpoll than the system of mine, but I’m not a programmer :) So, if anybody needs a multilingual poll, just wrap the options into spans with classes and use CSS to display either first language or the second one.
It works fine so far, but I still hope that somebody will code the proper PHP some time :))
Use it only if you don’t mind that both languages will be visible while switching the CSS of.
- S.
Last edited by sisushka (2007-09-23 18:34:26)
Offline
#91 2008-01-15 04:43:52
- nyckidd
- New Member
- Registered: 2007-12-16
- Posts: 4
Re: [archived] pap_xpoll (multiple poll plugin)
How Do I Customize The Plugin To Show Images / Use Images As The Poll Questions ?
Offline
#92 2008-01-22 00:57:13
- Rimfya
- Member
- Registered: 2007-11-22
- Posts: 31
Re: [archived] pap_xpoll (multiple poll plugin)
Is it just me, or does this plugin not validate?
There appears to be <div>‘s nested inside <p> tags. I thought this wasn’t on.
I’m trying to make the results display inline with the options.
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
Does anybody knows how can I custimize the output of <txp:pap_xpoll />
Becouse, I got this:
<form action=”/path/” method=“post” name=“xpoll” class=“xpoll” >My poll example<br />
<input name=“option” type=“radio” value=“3” checked=“checked” />option number 1<br />
<input name=“option” type=“radio” value=“4” />option nubmer 2<br />
<input name=“pap_xpoll_submit” type=“submit” value=“vote” /><br />
<a href=”/path/”>view_results</a>
<input name=“poll” type=“hidden” value=“3” />
</form>
I see the list of attributes, but how can I reach the heading My poll example, want to put some background image there and other things.
Also, in the form teplate list, in plugin docs, there are:
<txp:pap_xpoll_title />
<txp:pap_xpoll_submit />
<txp:pap_xpoll_options />
but these are not working when I put them in.
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
Hi
where can I get the Plugin, this site is down: http://txp.seitenweberei.ch/
Offline
Re: [archived] pap_xpoll (multiple poll plugin)
Seems like it’s archived on Textpattern.net: textpattern.net/wiki/images/Pap_xpoll-0.2.zip
PS. Google is your friend if you need something, like files.
Last edited by Gocom (2008-04-14 11:35:33)
Offline
#96 2008-04-15 11:50:18
- mikkeX
- Archived Plugin Author
- Registered: 2004-02-26
- Posts: 74
Re: [archived] pap_xpoll (multiple poll plugin)
After moving to another mysql-server (same version) pap_xpoll does not work anymore for me, it displays nothing and can not find the the correct id in the database, everything else is working, even the backend for pap_xpoll is working, but not the display of the polls.
Last edited by mikkeX (2008-04-15 11:53:46)
Offline