Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   BBCodes in Polls (http://www.bvlist.com/showthread.php?t=2533)

sammygo 1st May 2009 15:01

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("

Note: The current poll (" . $arr["question"] . ") is only $t old.

");

replace with
Code:

print("

Note: The current poll (" . format_comment($arr["question"]) . ") is only $t old.

");


In polls.php find
Code:

print("

" . $poll["question"] . "

");

replace with
Code:

print("

" . format_comment($poll["question"]) . "

");



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 :drink:
http://img63.imageshack.us/img63/6600/hhhhxz6.jpg

King 21st July 2009 21:41

Thanks
 
Thanks it works and it is nice :)


All times are GMT +2. The time now is 20:07.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.