Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 1st May 2009, 15:01
sammygo's Avatar
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)
  #2  
Old 21st July 2009, 21:41
King's Avatar
King King is offline
Member
 
Join Date: Dec 2008
P2P
Posts: 5
Default Thanks
Thanks it works and it is nice :)
Reply With Quote
Reply

Tags
bbcodes , polls

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FIX] TSSE v5.4.1 - BBcodes Fix mmisu120000 Template Shares 12 22nd September 2012 15:38
Youtube Tag - bbcodes christyz89 Free Torrent Source 2 20th September 2009 15:05
bbcodes [img][url] in shoutbox TS SE 4.3 Verix Template Shares 1 10th June 2009 05:04
Enable HTML and bbcodes epas Torrent Strike 2 23rd March 2009 14:15
How to edit polls ?? HELP! Version 5.1 Warkiller Template Shares 2 21st July 2008 00:56



All times are GMT +2. The time now is 22:27. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2020, vBulletin Solutions Inc.