史萊姆論壇

史萊姆論壇 (http://forum.slime.com.tw/)
-   論壇程式討論區 (http://forum.slime.com.tw/f79.html)
-   -   完美解決投票亂碼問題 (http://forum.slime.com.tw/thread151920.html)

貝斯特 2005-06-21 02:53 PM

完美解決投票亂碼問題
 
打開poll.php
找尋

PHP代碼:
$options["$counter"] = str_replace('|', ' | ', $options["$counter"]);
$optionsstring .= '|||' . $options["$counter"]; //||| is delimter, 0 means no votes (as new poll)


修改成

PHP代碼:
$options["$counter"] = str_replace('|||', '', $options["$counter"]);
$optionsstring .= '|||' . $options["$counter"].' '; //||| is delimter, 0 means no votes (as new poll)



找尋

PHP代碼:
$options["$counter"] = str_replace('|', ' | ', $options["$counter"]);
$optionsstring .= '|||' . unhtmlspecialchars($options["$counter"]); //||| is delimter, 0 means no votes (as new poll)


修改成

PHP代碼:
$options["$counter"] = str_replace('|||', '', $options["$counter"]);
$optionsstring .= '|||' . unhtmlspecialchars($options["$counter"]).' '; //||| is delimter, 0 means no votes (as new poll)


這樣就沒問題了。有空可以再幫我試看看是否還有其它的問題。


所有時間均為台北時間。現在的時間是 02:20 AM

Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2025, Jelsoft Enterprises Ltd.

『服務條款』

* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *


SEO by vBSEO 3.6.1