MyBB Depo Forum
Ödeme Bildirim İle İlgili - Baskı Önizleme

+- MyBB Depo Forum (https://mybbdepo.com)
+-- Forum: MyBB 1.6 Depo (https://mybbdepo.com/mybb-1-6-depo-forumu)
+--- Forum: MyBB 1.6 Çözülmüş Soru ve Sorunlar (https://mybbdepo.com/mybb-1-6-cozulmus-soru-ve-sorunlar-forumu)
+--- Konu Başlığı: Ödeme Bildirim İle İlgili (/odeme-bildirim-ile-ilgili-konusu.html)

Sayfalar: 1 2


Ödeme Bildirim İle İlgili - Profanios - 10-04-2013

Arkadaşlar Ben Ödeme Bildirim Sayfası Oluşturdum Yalnız Bu Hatayı Veriyor.

resim
resim
resim


Ödeme Bildirim İle İlgili - monster33 - 10-04-2013

bildirimok sayfasının olduğundan emin ol bildirim sayfasını sil yenden yap


Ödeme Bildirim İle İlgili - Profanios - 10-04-2013

denedim olmuyor.


Ödeme Bildirim İle İlgili - Pyrotoxin - 10-04-2013

kodları paylaşırmısınz inceliyelim


Ödeme Bildirim İle İlgili - Profanios - 10-04-2013

PHP Kod:
<?php

global $headerinclude$header$theme$footer$templates$lang;

$lang->load('member');
$lang->load('messages');
$lang->load('datahandler_user');

$adsoyad htmlspecialchars_uni(trim($mybb->input['adsoyad']));
$adsoyad htmlspecialchars_uni(trim($mybb->input['odeme']));
$tcno htmlspecialchars_uni(trim($mybb->input['tcno']));
$telefon htmlspecialchars_uni(trim($mybb->input['telefon']));

if(!
$mybb->user['uid'])
{
error_no_permission();
}
else
{

if(
$mybb->input['action'] == 'do_email' && $mybb->request_method == 'post')
{
    
verify_post_check($mybb->input['my_post_key']);


    if(empty(
$adsoyad))
    {
        
$errors[] = "Adınızı ve soyadınızı yazın.";
    }

    if(empty(
$tcno))
    {
        
$errors[] = "TC Kimlik numaranızı yazın.";
    }

    if(empty(
$telefon))
    {
        
$errors[] = "Telefon numaranızı yazın.";
    }

    if(
count($errors) == 0)
    {
        








    global 
$db$mybb;
    
$subject "Ödeme Bildirimi | Mybb";
    
$message "

    [b]Kullanıcı adı:[/b] [color=#6B8E23]
{$_POST["kullaniciadi"]}[/color]
    [b]Kullanıcı ID Numarası:[/b] [color=#6B8E23]
{$_POST["kullaniciID"]}[/color]
    [b]Ad-Soyad:[/b] [color=#6B8E23]
{$_POST["adsoyad"]}[/color]
    [b]Ödeme Miktarı:[/b] [color=#6B8E23]
{$_POST["odeme"]}[/color]
    [b]TC Kimlik Numarası:[/b] [color=#6B8E23]
{$_POST["tcno"]}[/color]
    [b]Telefon Numarası:[/b] [color=#6B8E23]
{$_POST["telefon"]}[/color]
    [b]Ödediği Banka:[/b] [color=#6B8E23]
{$_POST["banka"]}[/color]
    [b]Ürün:[/b] [color=#6B8E23]
{$_POST["urun"]}[/color]
    [b]Ek Açıklama:[/b] [color=#6B8E23]
{$_POST["adres"]}[/color]


"
;
    
$fromid "{$_POST[kullaniciID]}";//still sender ID
    
$to = array("Murat A"); // array of username(s)

    
require_once MYBB_ROOT "inc/datahandlers/pm.php";
    
$pmhandler = new PMDataHandler();

    
$pm = array(
        
"subject" => $subject,
        
"message" => $message,
        
"fromid" => $fromid,
        
"to" => $to
    
);
      
    
$pm['options'] = array(
        
"signature" => $mybb->input['pm_options']['signature'],
        
"disablesmilies" => $mybb->input['pm_options']['disablesmilies'],
        
"savecopy" => $mybb->input['pm_options']['savecopy'],
        
"readreceipt" => $mybb->input['pm_options']['readreceipt']
    );

    
$pmhandler->set_data($pm);

    
// Now let the pm handler do all the hard work.
    
if (!$pmhandler->validate_pm()) {
        
$pm_errors $pmhandler->get_friendly_errors();
        return 
$pm_errors;
    }else{
        
$pminfo $pmhandler->insert_pm();
redirect($mybb->settings['bburl'] . '/misc.php?page=bildirimok'$lang->redirect_emailsent);
        return 
$pminfo;
    }














    }
    else
    {
        
$errors inline_error($errors);
    }


}

    
$usertemplate '<html>
<head>
<title>' 
$pages['name'] . '</title>
{$headerinclude}
</head>
<body>
{$header}
{$errors}
<form action="' 
$_SERVER['REQUEST_URI'] . '" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="' 
$theme['borderwidth'] . '" cellpadding="' $theme['tablespace'] . '" class="tborder">
<thead>
<tr>
<td colspan="2" class="thead">
<strong>' 
$pages['name'] . '</strong>
</td>
</tr>
</thead>

<tbody>
<tr>
<td width="40%" class="pm_alert"><strong>Banka hesap bilgilerimiz</strong></td>
<td width="60%" class="pm_alert"></td>
</tr>

<tr>
<td width="40%" class="trow2"><strong>Ziraat alıcı ismi:</strong></td>
<td width="30%" class="trow2"><font color = red size = 2><span style="text-shadow: 0px 0px 8px ;"><b>Mybb Ödeme bildirim Formu</b></span></font></td>
</tr>

<tr>
<td width="40%" class="trow2"><strong>Ziraat hesap no:</strong></td>
<td width="30%" class="trow2"><font color = red size = 2><span style="text-shadow: 0px 0px 8px ;"><b>Mybb</b></span></font></td>
</tr>
<tr>
<td width="40%" class="trow2"><strong> Ziraat  şube kodu:</strong></td>
<td width="30%" class="trow2"><font color = red size = 2><span style="text-shadow: 0px 0px 8px ;"><b></b></span></font></td>
</tr>
<tr>
<td width="40%" class="trow2"><strong>Ziraat İban Numarası :</strong></td>
<td width="30%" class="trow2"><font color = red size = 2><span style="text-shadow: 0px 0px 8px ;"><b></b></span></font></td>
</tr>

<tr>
<td width="40%" class="trow2"><strong>Garanti alıcı ismi:</strong></td>
<td width="30%" class="trow2"><font color = green size = 2><span style="text-shadow: 0px 0px 8px ;"><b>Ödeme bildirim Formu</b></span></font></td>
</tr>

<tr>
<td width="40%" class="trow2"><strong>Garanti Hesap no:</strong></td>
<td width="30%" class="trow2"><font color = green size = 2><span style="text-shadow: 0px 0px 8px ;"><b>z/b></span></font></td>
</tr>
<tr>
<td width="40%" class="trow2"><strong> Garantit  şube kodu:</strong></td>
<td width="30%" class="trow2"><font color = green size = 2><span style="text-shadow: 0px 0px 8px ;"><b></b></span></font></td>
</tr>
<tr>
<td width="40%" class="trow2"><strong>Garanti İban Numarası :</strong></td>
<td width="30%" class="trow2"><font color = green size = 2><span style="text-shadow: 0px 0px 8px ;"><b></b></span></font></td>
</tr>



<tr>
<td width="40%" class="pm_alert"><strong>Ödeme bilgileriniz</strong></td>
<td width="60%" class="pm_alert"></td>
</tr>

<tr>
<td width="40%" class="trow2"><strong>Kullanıcı adı:</strong></td>
<td width="60%" class="trow2">{$name}</td>
<input type="hidden" class="textbox" size="50" name="kullaniciadi" value="{$name}" />
<input type="hidden" class="textbox" size="50" name="kullaniciID" value="{$mybb->user[uid]}" />
</tr>
<tr>
<td width="40%" class="trow1"><strong>Ad - Soyad:</strong></td>
<td width="60%" class="trow1"><input type="text" class="textbox" size="50" name="adsoyad" value="" /></td>
</tr>
<tr>
<td width="40%" class="trow1"><strong>Ödenen Miktar:</strong></td>
<td width="60%" class="trow1"><input type="text" class="textbox" size="50" name="odeme" value="" /></td>
</tr>
<tr>
<td width="40%" class="trow2"><strong>TC Kimlik numarası:</strong></td>
<td width="60%" class="trow2"><input type="text" class="textbox" size="50" name="tcno" value="" /></td>
</tr>
<tr>
<td valign="top" width="40%" class="trow1"><strong>Telefon Numarası:</strong></td>
<td width="60%" class="trow1"><input type="text" class="textbox" size="50" name="telefon" value="" /></td>
</tr>
<tr>
<td valign="top" width="40%" class="trow2"><strong>Ödediğiniz banka:</strong></td>
<td width="60%" class="trow2">

<select name = "banka">
  <option value="Ziraat Bankası">Ziraat Bankası</option>
<option value="Garanti Bankası">Garanti Bankası</option>
</select>

</td>
</tr>

<tr>
<td valign="top" width="40%" class="trow1"><strong>Aldığınız ürün:</strong></td>
<td width="60%" class="trow1">

<select name = "urun">
  <option value="Mybb Premium uyelik">Biz Premium uyelik [12 TL]</option>
  <option value="Mybb Premium uyelik">Biz Premium uyelik [12 TL]</option>
  <option value="Mybb Premium uyelik">Biz Premium uyelik [12 TL]</option>
</select>

</td>
</tr>

<tr>


</td>
</tr>
<tr>
<td valign="top" width="40%" class="trow2"><strong>Ek Açıklama: <small>(İşlem No Ödeme Saati Vs.)</small></strong></td>
<td width="60%" class="trow2"><textarea cols="50" rows="5" name="adres"></textarea></td>
</tr>


</tbody>
</table>
<br />
<input type="hidden" name="action" value="do_email" />
<div align="center"><input type="submit" class="postbit-button" value="Bildirim Formunu Gönder" /></div>
</form>
{$footer}
</body>
</html>'
;

    
$usertemplate str_replace("\'""'"addslashes($usertemplate));

    
$name $mybb->user['username'];
    
$email $mybb->user['email'];

    
add_breadcrumb($pages['name']);

eval(
"\$page = \"" $usertemplate "\";");

output_page($page);





Ödeme Bildirim İle İlgili - Pyrotoxin - 10-04-2013

Sorunun nedeni

PHP Kod:
$pmhandler->validate_pm() 
buradan true değerinin dönmüyor oluşu

hata olarak ekrana
PHP Kod:
$pm_errors $pmhandler->get_friendly_errors(); 
burayı basması gerekiyor tanımlı hata mesajı olmadığı için ekrana birşey basmıyor =/

PHP Kod:
// Now let the pm handler do all the hard work.
        
if (!$pmhandler->validate_pm()) {
            
$pm_errors $pmhandler->get_friendly_errors();
            return 
$pm_errors;
        }
        else
        {
            
$pminfo $pmhandler->insert_pm();
            
redirect($mybb->settings['bburl'] . '/misc.php?page=bildirimok'$lang->redirect_emailsent);
            return 
$pminfo;
        } 

bu sorguya girmeden önce

PHP Kod:
var_dump($pmhandler->validate_pm()) 
bu şekilde kontrol edip hata mesajını buraya yazarmısın işteyim deneme sansım yok benim biraz sıkıntılı olacak ama deneme yanılma yöntemiyle gidceğiz ^^


Ödeme Bildirim İle İlgili - Legans - 10-04-2013

hocam o sorun geçer kodlarla alakalı başka üyelikten deneyin olmazsa 1-2 gün bekleyin


Ödeme Bildirim İle İlgili - Profanios - 10-04-2013

bekledim hocam olmadı