Poll Plugin

Creating and modifying plugins.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Chindogu, I think this is just a CSS problem which should be easily fixable. Do you have the URL to your blog, then I can look at it. I myself don't use the plugin.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
paul

Post by paul »

hey i have also that same problem, only in safari it looks fine, but on a pc in internet explorer and firefox i have the answer and the button on a new line.

hope you can fix this soon! thx
paul

Post by paul »

forgot to post the url of my log http://www.colorscan.nl:81/weblog
Paul

Post by Paul »

yes it's me again :)

can you make also a option in the poll plugin that it is ip sensitive, so that people can vote only 1 time a day or something? or is that to hard?

thanks

paul
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The Poll plugin is currently not actively maintained; volunteers to maintain the code are welcome. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
paul

Post by paul »

do you know how I can fix a poll in my site (free) without the banner crap etc? thanks
Nicola
Regular
Posts: 48
Joined: Wed May 25, 2005 5:08 pm
Contact:

Re: Plguin in German

Post by Nicola »

zpage wrote: To install, create a new folder called "serendipity_plugin_pollbox" in your "plugins" directory. Copy the Plugin file in there and name it to "serendipity_plugin_pollbox.php".
Zpage
[x] done. Set the rights for this directory and the file. Still I don't see the plugin in the plugin list
of the configuration page. Any hints for me?

Thanks.

Niocla
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Plguin in German

Post by garvinhicking »

Nicola, you'll need to click on the Link to insert a new plugin on the page where all plugins are listed. You must make sure you click on the link in the upper section for the sidebar plugins, not the lower section from the event plugins.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Re: Plguin in German

Post by Guest »

Hi Garvin!
garvinhicking wrote:Nicola, you'll need to click on the Link to insert a new plugin on the page where all plugins are listed. You must make sure you click on the link in the upper section for the sidebar plugins, not the lower section from the event plugins.
I thought I should do so, so I did. Several times and also I reloaded all those pages several times.

Pricisely I did click on "Hier klicken um Seitenleisten-Plugin zu installieren", then I get this list:
*** snip ***
Plugin Action
Archive Installieren

HTML Klotz Installieren

Kalender Installieren

Kategorien Installieren

Powered by Installieren

Suche Installieren

Syndication Installieren

Top Exits Installieren

Top Referrer Installieren

Verwaltung des Blog Installieren
*** snap ***

Actually I tried the lower link too but of course to no avail either ;-(

Another idea?

Greetings

Nicola
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Plguin in German

Post by garvinhicking »

And you're sure that a file like

s9y/plugins/serendipity_plugin_pollbox/serendipity_plugin_pollbox.php

exists?

Did you try to install Spartacus (Event plugin) and fetch the plugin from the online repository?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Nicola
Regular
Posts: 48
Joined: Wed May 25, 2005 5:08 pm
Contact:

Re: Plguin in German

Post by Nicola »

Hi!
garvinhicking wrote:And you're sure that a file like

s9y/plugins/serendipity_plugin_pollbox/serendipity_plugin_pollbox.php

exists?

Did you try to install Spartacus (Event plugin) and fetch the plugin from the online repository?
a) yes, I wrote (well pasted) it directly on the server
b) no. Will have a look at it tomorrow.

Greetings

Nicola
paul

Post by paul »

hi garvin, can you maybe edit te poll script with so that it have an outline? maybe the allign problem is fixed then? or another allign center tag or something?
Nicola
Regular
Posts: 48
Joined: Wed May 25, 2005 5:08 pm
Contact:

Post by Nicola »

garvinhicking wrote:Chindogu, I think this is just a CSS problem which should be easily fixable. Do you have the URL to your blog, then I can look at it. I myself don't use the plugin.
Question and Input fields are located inside different <dif>s, with no id or class attached to the divs - so changes via CSS in Stylesheet will be difficult.

I'd think putting them inside _one_ div and/or adding a class to the div-tags should make it easier for people to style. That would have to be done in the schript. Also there is some formatting hard coded in the script (border, padding), which could be replaced by a class, so people can set padding and border acording to their styles.

Should not be to much work on the script - only I don't really know PHP ;-(

Greetings

Nicola
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

This is all solvable via CSS - the container has got a unique Class set for each plugin:

Code: Select all

.container_serendipity_plugin_pollbox .serendipitySideBarTitle {
border: 1px solid red !important;
}
The new pollbox plugin also uses a lot less embedded styles...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Nicola
Regular
Posts: 48
Joined: Wed May 25, 2005 5:08 pm
Contact:

Post by Nicola »

Nicola wrote:Question and Input fields are located inside different <dif>s, with no id or class attached to the divs - so changes via CSS in Stylesheet will be difficult.
My fault, it's inside one div - but without a css-class.

That should be this line, as far as I understand the script:
*** snip ***
if ( !isset($_SESSION['serendipity_hasVoted']) ) {
echo '<div><input type="radio" name="serendipity_pollChoice" value="' . $i .'"/>' . ($showResults ? '' : $choice) . '</div>';
*** snap ***

So if a class is added here, like "echo '<div class="serendipity_pollChoiceStyle">' (I don't know the rules that goes with your naming classes, so don't slap me ;) one should be able to define the style via Stylesheet like for example:

#serendipity_pollChoiceStyle {border-bottom:1px solid black; }

for the ones, that want a black line below every Choice.

Also my Firefox pulls the radio buttons very wide, as width as the whole pollblock is. Don't know why, sorry.

Don't forget - I have NO PHP-knowledge, so if you try and it doesn't work don't blame me ;-)

Nicola
Post Reply