View Single Post
  #1  
Old 1st May 2009, 15:01
sammygo sammygo is offline
Senior Member
 
Join Date: May 2008
P2P
Posts: 141
Default BBCodes in Polls
FOR QUESTIONS

In index.php find
Code:
$question = $arr["question"];
replace with
Code:
$question = format_comment($arr["question"]);

In makepoll.php find
Code:
print("<p><font color=red><b>Note: The current poll (<i>" . $arr["question"] . "</i>) is only $t old.</b></font></p>");
replace with
Code:
print("<p><font color=red><b>Note: The current poll (<i>" . format_comment($arr["question"]) . "</i>) is only $t old.</b></font></p>");

In polls.php find
Code:
print("<p align=center><b>" . $poll["question"] . "</b></p>");
replace with
Code:
print("<p align=center><b>" . format_comment($poll["question"]) . "</b></p>");


FOR ANSWERS

In index.php find:
Code:
$o = array($arr["option0"], $arr["option1"], $arr["option2"], $arr["option3"], $arr["option4"],
        $arr["option5"], $arr["option6"], $arr["option7"], $arr["option8"], $arr["option9"],
        $arr["option10"], $arr["option11"], $arr["option12"], $arr["option13"], $arr["option14"],
        $arr["option15"], $arr["option16"], $arr["option17"], $arr["option18"], $arr["option19"]);
replace with
Code:
$o = array(format_comment($arr["option0"]), format_comment($arr["option1"]), format_comment($arr["option2"]), format_comment($arr["option3"]), format_comment($arr["option4"]),
        format_comment($arr["option5"]), format_comment($arr["option6"]), format_comment($arr["option7"]), format_comment($arr["option8"]), format_comment($arr["option9"]),
        format_comment($arr["option10"]), format_comment($arr["option11"]), format_comment($arr["option12"]), format_comment($arr["option13"]), format_comment($arr["option14"]),
        format_comment($arr["option15"]), format_comment($arr["option16"]), format_comment($arr["option17"]), format_comment($arr["option18"]), format_comment($arr["option19"]));


In polls.php find
Code:
$o = array($poll["option0"], $poll["option1"], $poll["option2"], $poll["option3"], $poll["option4"],
    $poll["option5"], $poll["option6"], $poll["option7"], $poll["option8"], $poll["option9"],
    $poll["option10"], $poll["option11"], $poll["option12"], $poll["option13"], $poll["option14"],
    $poll["option15"], $poll["option16"], $poll["option17"], $poll["option18"], $poll["option19"]);
Replace with :

Code:
$o = array(format_comment($poll["option0"]), format_comment($poll["option1"]), format_comment($poll["option2"]), format_comment($poll["option3"]), format_comment($poll["option4"]),
    format_comment($poll["option5"]), format_comment($poll["option6"]), format_comment($poll["option7"]), format_comment($poll["option8"]), format_comment($poll["option9"]),
    format_comment($poll["option10"]), format_comment($poll["option11"]), format_comment($poll["option12"]), format_comment($poll["option13"]), format_comment($poll["option14"]),
    format_comment($poll["option15"]), format_comment($poll["option16"]), format_comment($poll["option17"]), format_comment($poll["option18"]), format_comment($poll["option19"]));



Thanks to mima @ tbdev.net for this mod :X
Click the image to open in full size.

Last edited by sammygo; 1st May 2009 at 16:01.
Reply With Quote
The Following 2 Users Say Thank You to sammygo For This Useful Post:
King (21st July 2009), Tibys08 (29th May 2011)