[resolved] Change question text length!? (6 posts)

  1. pundurbrother
    Posted 4 years 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


  2. Lester Chan
    Plugin Author

    Posted 4 years ago #

    It should work, did u edit the mysql table first then the input box?

  3. pundurbrother
    Posted 4 years 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?

  4. Lester Chan
    Plugin Author

    Posted 4 years ago #

    You have already created the tables, you need to use phpmyadmin, go to wp_pollsa and edit the polla_answers to TEXT.

  5. pundurbrother
    Posted 4 years 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


  6. garboweb
    Posted 4 years 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;
    background-image: none;
    display: block;
    but the "question" still doesn't get my font and widht.

    Any suggestion? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic