|
Kaan
678 posts |
#332 2013-08-18 20:17 GMT | |
|
Standart döviz kurları eklentisini aşagıdaki kodlarla değiştirin.
Eklenti sitenizde çalışıyor ise kaldırıp tekrar kurun. Json daha hızlı çalışmasını sağlar ve 1 saatlik cache süresi ile sitenizin trafiği yükseltmez cache süresini 12 saate kadar yükseltebilirs Kod: [b]doviz.php[/b] ot; => $doviz,));[code]<?PHP /* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/doviz/doviz.php Version=100+ Updated=2007-Apr-14 Type=Plugin Author=Kaan Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=doviz Part=main File=doviz Hooks=index.tags Tags=index.tpl:{PLUGIN_DOVIZ} Order=10 [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } if (!$doviz){ $json = file_get_contents("http://www.doviz.gen.tr/doviz_json.asp"); $data = json_decode($json); $goster .= "<tr><td><font face=Verdana size=1 color=FF0000> Dolar $</font></td><td align=center><font face=Verdana size=1>".$data->dolar."</font></td><td align=center><font face=Verdana size=1>".$data->dolar2."</font></td></tr>"; $goster .= "<tr><td><font face=Verdana size=1 color=FF0000> Euro €</font></td><td align=center><font face=Verdana size=1>".$data->euro."</font></td><td align=center><font face=Verdana size=1>".$data->euro2."</font></td></tr>"; $doviz = "<table border=0 style=\"border-width:0; border-collapse: collapse\" bordercolor=\"#111111\" cellpadding=\"0\" cellspacing=\"0\" width=\"150\" height=\"20\"> <tr><td align=\"center\" width=\"50\" style=\"border-style: none; border-width: medium\"><p align=\"left\"><b><font face=Verdana size=1>Döviz</font></td><td align=\"center\" width=\"50\" style=\"border-style: none; border-width: medium\"> <font size=\"1\"><b>Alış</b></font></td><td align=\"center\" width=\"50\" style=\"border-style: none; border-width: medium\"> <font size=\"1\"><b>Satış</b></font></td></tr>$goster</table>"; sed_cache_store('doviz', $doviz, 3600); } $t-> assign(array("PLUGIN_DOVIZ&qu ?>[/code]
Kişiliğim, hayatım hakkında konuşabilirsiniz. Fikir yürüte bilirsiniz. Beni öyle böyle sanabilirsiniz. Ama emin olamazsınız. Sizin hakkımdaki yorumlarınız, sanmalarınız benim gerçek de ne olduğumu değiştirmez. Baktığım yeri söyleye bilirsiniz ama ne gördüğümü ASLA...
|