phpbb plus için Döviz kur

Eklentiler ile ilgili soru, sorun ve tartışmalar.

phpbb plus için Döviz kur

İleti bilgim 28.01.2006, 16:08

arkadaşlar plus için döviz kura baktım bulamaıdm veya gözumden kaçtı yine:) yardımcı olabilir miisniz var mı acaba?
Kullanıcı avatarı
bilgim
Üye
Üye
 
İleti: 20
Kayıt: 09.10.2005, 22:42

İleti kobataj 28.01.2006, 16:09

neden plus için oluyo yaf genel sölesene
:D
Kullanıcı avatarı
kobataj
Üye
Üye
 
İleti: 51
Kayıt: 28.12.2005, 19:30

İleti bilgim 28.01.2006, 17:22

kobataj yazdı:neden plus için oluyo yaf genel sölesene
:D


:) bana plus için lazım olduğu için plus için istedim yanı:)
Kullanıcı avatarı
bilgim
Üye
Üye
 
İleti: 20
Kayıt: 09.10.2005, 22:42

İleti gbaran 28.01.2006, 18:18

"bilgim"

arkadaşım plus ile phpbb aynı şey zaten kabotaj ondan öle demiş...

plus: phpbb nin içine gerekli gereksiz tüm modların kurulmuş şekli okadar...
B@R@N
Kullanıcı avatarı
gbaran
Üye
Üye
 
İleti: 119
Kayıt: 13.12.2005, 19:40

Cvp: phpbb plus için Döviz kur

İleti CeRBeR 29.01.2006, 01:58

işte size 2 tane döviz kuru script i beeğnip istediğinz şekilde blok yapabilirsiniz


[syntax="php"]<?php
session_start();
$_filex=fopen("http://www.ntvmsnbc.com","r") or die("dosya açılamadı.");
$sayi_c=0;
$sayi_satir=0;
$yazimmi=false;
$imkb_satiri=" ";
while(!feof($_filex)) {
$sayi_satir++;
$satir=fgets($_filex);
$sayi=strlen($satir)-8;
for($i=0;$i<$sayi;$i++) {
$deger=$satir[$i].$satir[$i+1].$satir[$i+2].$satir[$i+3].$satir[$i+4].$satir[$i+5].$satir[$i+6].$satir[$i+7];
$deger_bitis=$satir[$i].$satir[$i+1].$satir[$i+2].$satir[$i+3].$satir[$i+4].$satir[$i+5];

if($deger=="IMKB 100") {
$yazimmi=true;
}


if($deger_bitis=="cccccc") {
$sayi_c++;
echo "<script>alert('".$sayi_c."');</script>";
if($sayi_c==2) {
$yazimmi=false;

}

}
}
if($yazimmi==true) {
$imkb_satiri.="&".$satir;
}
}
fclose($_filex);
?>
<html>

<head>

<meta http-equiv="Content-Language" content="tr">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<title>Döviz Parser by # KN //</title>
<style type="text/css">
<!--
body, td, th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color: #666666;
}

-->
</style>
</head>

<body bgcolor="#E2E2E2">
<?
echo "<table width=\"200\" cellspacing=\"0\" width=\"300\">";
echo "<tbody>
<tr>
<td></td>
<td></td>
<td align=\"right\">EN SON</td>
<td align=\"right\">Degisim</td>
<td></td>
</tr>
<tr bgcolor=\"#eeeeee\">
<td></td>";
$arrayim=explode("&",$imkb_satiri);
foreach($arrayim as $k => $n) {
if(($k!=0) && ($k<35)) {
echo str_replace("nbsp;","",$n);
}
}
echo "</tbody></table>";
?>
</body>
</html>[/syntax]



[syntax="php"]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<META http-equiv=Content-Type content="text/html; charset=windows-1254">
<html>

<head>
<body>


<style>
body {
background-color: #FFFFFF;
font-family: Arial, Verdana, sans-serif;
font-size: 10px;
color: #000000;
}

a { font-family: Arial, Verdana, sans-serif; font-size: 10px ; color: #000000; text-decoration: none}

a:hover { font-family: Arial, Verdana, sans-serif; font-size: 10px; color: #000000; background-color:#ffffff}


table {width:190px; font-family: Arial, Verdana, sans-serif; font-size: 10px; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 1px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px }

td { width:190px; height:10px; font-size: 10px; background-color: #ffffff; margin-top: 0px; }
tr { height:10px; }



.note { font-family: Arial, Verdana, sans-serif; font-size: 10px; color: #ffffff;
font-weight: bold;}
</style>


<?
error_reporting(E_ALL);
function tcmb($bakilacak,$site){
$dosya = @fopen($site, "r");
if ($dosya) {
$geldi = false;
while(!feof($dosya)) {

$satir = fgets($dosya,512);
$code = substr($satir, 0, 3);
if (($code == $bakilacak) && ($geldi == false)) {
$geldi = true;
$sonuc = split("[[:space:]]+" , $satir);
$doviz[1] = substr($sonuc[4], 0, 9);
$doviz[2] = substr($sonuc[5], 0, 9);
$doviz[3] = substr($sonuc[6], 0, 9);
$doviz[4] = substr($sonuc[7], 0, 9);
}

} // while
return $doviz;
} // if($dosya)
}// function

$usd_doviz = tcmb('USD','http://www.tcmb.gov.tr/kurlar/today.html');
$eur_doviz = tcmb('EUR','http://www.tcmb.gov.tr/kurlar/today.html');
$gbp_doviz = tcmb('GBP','http://www.tcmb.gov.tr/kurlar/today.html');

?>



<table width=225>

<tr bgcolor="#ffffff">
<td valign="top" ><div align="center"><b> <FONT face="Verdana, Arial, Helvetica, sans-serif"
color=#000000 size=1>
<font color=blue>Merkez Bankası</font></b></td>
</tr>

</table>
<table width=225 >

<tr align="center">
<td><font color="#000000"><b> <font color=red> Usd</font> Efektif <font color=blue> Alış</b></font></td>
<td><font color="#000000"><b> <font color=red> Usd</font> Efektif <font color=blue> Satış</b></font></td>
</tr>

<tr align="center">

<td><?=$usd_doviz[3];?></td>
<td><?=$usd_doviz[4];?></td>
<tr>
</table>

<table width=225 >
<tr align="center">

<td><font color="#000000"><b> <font color=red> Euro </font>Efektif <font color=blue> Alış</b></font></td>

<td><font color="#000000"><b> <font color=red> Euro </font>Efektif <font color=blue> Satış</b></font></td>

</tr>
<tr align="center">
<td> <?=$eur_doviz[2];?></td>
<td> <?=$eur_doviz[3];?></td>
<tr>
</table>

</head>
</body>
</html>
[/syntax]
Kullanıcı avatarı
CeRBeR
Üye
Üye
 
İleti: 232
Kayıt: 05.10.2005, 20:37

Cvp: phpbb plus için Döviz kur

İleti bilgim 30.01.2006, 19:23

çok tşkler iyi oldu peki bunu hangi dosyanın içine nereye ekleyeceğiz? bunuda söylemen mumkun mu
Kullanıcı avatarı
bilgim
Üye
Üye
 
İleti: 20
Kayıt: 09.10.2005, 22:42

İleti CeRBeR 30.01.2006, 20:17

canın nereye isterse ben olsam index_body.tpl veya overall_header.tpl e yüklerdim e tabi sitede im portal kuruluysa o zaman işin daha da kolay

edit: üzgünüm plus için sormuşsun plus da im portal yok el ile dediğim dosyalara ekleme yapcaksın
Kullanıcı avatarı
CeRBeR
Üye
Üye
 
İleti: 232
Kayıt: 05.10.2005, 20:37


Soru(n)lar & Tartışmalar



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron