Plugin Author
YOP
(@yourownprogrammer)
Hi, bcdodge!
This is happening because only a
and img
html tags are allowed. In order to allow br
, for example, please edit inc/yop_poll_model.php and approx on line 3940, inside function wp_kses( $string ), replace
$pt = array( 'a' => array('href' => array(), 'title' => array(), 'target' => array() ), 'img' => array( 'src' => array(), 'title' => array() ) );
with
$pt = array(
'a' => array(
'href' => array(),
'title' => array(),
'target' => array()
),
'img' => array(
'src' => array(),
'title' => array()
),
'br' => array()
);
Regards,
YOP Team
There is no wp_kses or $pt in yop_poll_model.php
In searching the document I can’t even find ‘a’
So I have gone through every PHP file in the plugin and there is no “$pt” anywhere…is there an upgraded version or am I missing something?
Plugin Author
YOP
(@yourownprogrammer)
Hi bcdodge,
We are sorry for our previous post.
In order to allow other html tags for poll answers, please modify inc/yop_poll_model.php and replace all occurences of
<a><img>
with
<a><img><br>
or with any html tag you want
Regards,
YOP Team
That did nothing…I even went back and put </br> just to test it and cover myself.
No luck
Plugin Author
YOP
(@yourownprogrammer)
Hi bcdodge,
Did you re-edit your answers and included
tag between image tag and text?
Regards,
YOP Team
TaDa! 🙂 Thank you!
One last question…is there a character limit for the Answer boxes?
If so, how can I adjust that?
If not…Thank you!!
Plugin Author
YOP
(@yourownprogrammer)
Hi bcdodge,
Character limit for answer boxes is 255( database field maximum length ).
You can change this value by adjusting database answer field length.( wp_yop_poll_answers table )
Regards,
YOP Team