pundurbrother
Member
Posted 4 months ago #
Found out today, that it's possible to add basic html to poll question and answers.. As I want to add image with some styling in question tab but it's cutting my code in the middle because it's too long.
As I understand character limit is set to 200. And I found possible solution here http://forums.lesterchan.net/index.php/topic,3075.msg22925.html#msg22925
But it's still not working as I did all described in the link.
Any suggestions?
it's on my test site http://www.inline.lv/jaunumi
http://wordpress.org/extend/plugins/wp-polls/
It should work, did u edit the mysql table first then the input box?
pundurbrother
Member
Posted 4 months ago #
in wp-polls.php changed VARCHAR(200) to TEXT
$create_table['pollsa'] = "CREATE TABLE $wpdb->pollsa (".
"polla_aid int(10) NOT NULL auto_increment,".
"polla_qid int(10) NOT NULL default '0',".
"polla_answers TEXT character set utf8 NOT NULL default '',".
"polla_votes int(10) NOT NULL default '0',".
"PRIMARY KEY (polla_aid)) $charset_collate;";
and deleted maxlength=\"200\" in polls-add.php and polls-manager.php
Did I do something wrong?
You have already created the tables, you need to use phpmyadmin, go to wp_pollsa and edit the polla_answers to TEXT.
pundurbrother
Member
Posted 4 months ago #
Got it working! Thank you for your time
Didn't understand what was meant with "change the database table"
Installed "Portable phpMyAdmin" plugin and made changes
resolved!
garboweb
Member
Posted 4 months ago #
Hi! I have a similar problem here: http://giovaniarchitettibologna.org/wordpress/?page_id=396
In the sidebar, I would like both the "question" and the "answers" to have a width: 280px. I managed to change the width of the "asnswers" by modifing the wp-polls/polls-css.css with:
.wp-polls ul li, .wp-polls-ul li, .wp-polls-ans ul li {
font-family: "Myriad Pro", Tahoma, Geneva, sans-serif;
text-align: left;
width:280px;
background-image: none;
display: block;
but the "question" still doesn't get my font and widht.
Any suggestion? Thanks!