Poll system (0.9)

Download plugins, language packs and stuff.

Postby al3loo » Wed Sep 10, 2008 1:12 pm

Partyism wrote:Cant this by default be 1 pixel wide?


should this work:
Code: Select all
<img height="10" src="http://www.partyism.nl/images/poll/poll_stats.jpg" width="><?=($in_percent == 0 ? '1px' : $in_percent)?>" />


and if you want to put the percentage in text you can use the background and CSS it'll look like this:
Code: Select all
<div style="background:url(http://www.partyism.nl/images/poll/poll_stats.jpg); height:10px; width:<?=($in_percent == 0 ? '1px' : $in_percent)?>"><div style="position:static; margin-left:20px;"><?=$in_percent;?></div></div>


if the poll in the right side change left to right :wink:
Al3loOo IS H3R3

Image
al3loo
 
Posts: 65
Joined: Sat Aug 04, 2007 2:19 am

Postby Partyism » Wed Sep 10, 2008 1:33 pm

i like the first option. thnx allot
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby Mania » Thu Apr 23, 2009 9:22 pm

can Editor manage the Polls, because i fond nothing about user level?!!
User avatar
Mania
 
Posts: 178
Joined: Sat Feb 03, 2007 1:12 pm

Postby DarkSlim » Wed Nov 04, 2009 9:49 am

Mania wrote:can Editor manage the Polls, because i fond nothing about user level?!!


Open plugins/poll.php

Find:
Code: Select all
            'access'          => '1',


Change the number to:
2 for editor
3 for writer


Another modification of mine for this mod is in - plugins/poll/res.tpl

When you enter the image to show in the results, you can make it colorful!
Each answer will have it's own color bar:

Code: Select all
<img src="path/to/cnru/plugins/poll/pollstats<?=$i;?>.jpg" alt="" width="<?=$in_percent;?>" />


Now just put in the poll folder images with the following names (you can change it to png or gif as you like ofcourse):
pollstats0.jpg (for the first answer)
pollstats1.jpg (for the second answer)
pollstats2.jpg (for the third answer)
etc.. like this for any other options you may use :)
User avatar
DarkSlim
 
Posts: 296
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Postby Goberg » Tue Feb 23, 2010 6:08 am

Would it be possible to get the answers in the poll to act as links? as in <a href="vote-answer-nr1">Answer1</a>. I am trying to get rid of the radio buttons and the vote button and instead go strait to the result when you click on the answer.

I have been trying a few different techniques but with no luck...
Goberg
 
Posts: 79
Joined: Thu Jan 18, 2007 2:31 pm

Re: Poll system (0.9)

Postby saied » Wed Nov 09, 2011 6:24 pm

I have that problem, when i active the plugin:
Code: Select all
txtSQL Warning: Table "poll" doesn't exist in /home/virtual/pak-eu.com/public_html/index.php on line 382

Warning: Invalid argument supplied for foreach() in /home/virtual/pak-eu.com/public_html/files/plugins/poll.php on line 43

But i have inserted: <?php cn_poll (); ?>

Where can it be fixed?
User avatar
saied
 
Posts: 11
Joined: Sun Jan 25, 2009 11:59 am

Previous

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 1 guest