Jump to content

eneox

Üye
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

203 profile views

eneox's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. çok teşekkür ederim ilgilendiğiniz için tnctr.com sitesinden başka  kimse ilgilenmedi benimle çok çok teşekkür ederim yardımlarınız için.
  2. size nasıl ulaşabilirim.buradan team viewer bilgilerini yollayınca online olup olmadığınızı bilemiyorum acaba ne zaman bağlanabilirsiniz bilgisayarıma
  3. aynen tam yaparken hatta yangın çıktı demiştim de yangına bakmaya gitmiştim o yangın degilmiş alışveriş merkezinin servisi yanmış 
  4. veriler burdan çekiliyor ama işte kafamı karıştırdı.mesajlar yanıtlar falan ama ad soyad çekmeyi beceremedim.       functions.php     [spoiler] <?php     class Wall_Updates {               // Updates    public function Updates($uid)  {    $query = mysql_query("SELECT M.msg_id, M.uid_fk, M.message, M.created, U.username FROM messages M, users U  WHERE M.uid_fk=U.uid and M.uid_fk='$uid' order by M.msg_id desc ") or die(mysql_error());            while($row=mysql_fetch_array($query)) $data[]=$row;    return $data;       } //Comments   public function Comments($msg_id)  {    $query = mysql_query("SELECT C.com_id, C.uid_fk, C.comment, C.created, U.username FROM comments C, users U WHERE C.uid_fk=U.uid and C.msg_id_fk='$msg_id' order by C.com_id asc ") or die(mysql_error());     while($row=mysql_fetch_array($query))    $data[]=$row;         if(!empty($data)) {        return $data;          } }   //Avatar Image public function Gravatar($uid)  {    $query = mysql_query("SELECT email FROM `uyeler` WHERE uye_id='$uid'") or die(mysql_error());   $row=mysql_fetch_array($query);   if(!empty($row))   {    $email=$row['email'];         $lowercase = strtolower($email);         $imagecode = md5( $lowercase ); $data="http://www.gravatar.com/avatar.php?gravatar_id=$imagecode"; return $data;          } else { $data="default.jpg"; return $data; } }   //Insert Update public function Insert_Update($uid, $update)  { $update=htmlentities($update);   $time=time();   $ip=$_SERVER['REMOTE_ADDR'];         $query = mysql_query("SELECT msg_id,message FROM `messages` WHERE uid_fk='$uid' order by msg_id desc limit 1") or die(mysql_error());         $result = mysql_fetch_array($query);           if ($update!=$result['message']) {             $query = mysql_query("INSERT INTO `messages` (message, uid_fk, ip,created) VALUES ('$update', '$uid', '$ip','$time')") or die(mysql_error());           $newquery = mysql_query("SELECT M.msg_id, M.uid_fk, M.message, M.created, U.username FROM messages M, users U where M.uid_fk=U.uid and M.uid_fk='$uid' order by M.msg_id desc limit 1 ");           $result = mysql_fetch_array($newquery); return $result; // burdaki mantık INNER J         }  else { return false; }               }   //Delete update public function Delete_Update($uid, $msg_id)  {    $query = mysql_query("DELETE FROM `comments` WHERE msg_id_fk = '$msg_id' ") or die(mysql_error());         $query = mysql_query("DELETE FROM `messages` WHERE msg_id = '$msg_id' and uid_fk='$uid'") or die(mysql_error());         return true;                  }   //Insert Comments public function Insert_Comment($uid,$msg_id,$comment)  { $comment=htmlentities($comment);      $time=time();   $ip=$_SERVER['REMOTE_ADDR'];         $query = mysql_query("SELECT com_id,comment FROM `comments` WHERE uid_fk='$uid' and msg_id_fk='$msg_id' order by com_id desc limit 1 ") or die(mysql_error());         $result = mysql_fetch_array($query);      if ($comment!=$result['comment']) {             $query = mysql_query("INSERT INTO `comments` (comment, uid_fk,msg_id_fk,ip,created) VALUES ('$comment', '$uid','$msg_id', '$ip','$time')") or die(mysql_error());             $newquery = mysql_query("SELECT C.com_id, C.uid_fk, C.comment, C.msg_id_fk, C.created, U.username FROM comments C, users U where C.uid_fk=U.uid and C.uid_fk='$uid' and C.msg_id_fk='$msg_id' order by C.com_id desc limit 1 ");               $result = mysql_fetch_array($newquery);             return $result;         }  else { return false; }             }   //Delete Comments public function Delete_Comment($uid, $com_id)  {    $query = mysql_query("DELETE FROM `comments` WHERE uid_fk='$uid' and com_id='$com_id'") or die(mysql_error());         return true;                  }          }   ?>     [/spoiler]
  5. paylasimlar tablosunu anlayamadım sizin verdiğiniz kodları load_messages'e yapıştırdım f5 yapınca baya bir bekletiyor sonra paylaşılan mesajlar ad soyad hiçbiri çıkmıyor
  6. hayır users tablosu o adamın yaptığı tablo içeri aktar dediğimde usersde çıktı. functions.php de kurcaladım users yerine uyeler uye_id falan birsürü kurcaladım bu seferde hata veriyor 
  7. ben bunu internetten indirdim sonra uyeler diye tablo oluşturarak denemeye çalıştım ama bir türlü yapamadım.birsürü kişiden yardım aldım onlarda yapamadı
  8. baglan.php [spoiler] <?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_DATABASE', 'eneox'); $connection = mysql_connect("localhost","root","") or die(mysql_error()); $database = mysql_select_db("eneox") or die(mysql_error()); mysql_query("SET NAMES 'latin5'"); ?> ------------------------------------------------------------------------------------------------------------------ functions.php <?php class Wall_Updates { // Updates public function Updates($uid) { $query = mysql_query("SELECT M.msg_id, M.uid_fk, M.message, M.created, U.username FROM messages M, users U WHERE M.uid_fk=U.uid and M.uid_fk='$uid' order by M.msg_id desc ") or die(mysql_error()); while($row=mysql_fetch_array($query)) $data[]=$row; return $data; } //Comments public function Comments($msg_id) { $query = mysql_query("SELECT C.com_id, C.uid_fk, C.comment, C.created, U.username FROM comments C, users U WHERE C.uid_fk=U.uid and C.msg_id_fk='$msg_id' order by C.com_id asc ") or die(mysql_error()); while($row=mysql_fetch_array($query)) $data[]=$row; if(!empty($data)) { return $data; } } //Avatar Image public function Gravatar($uid) { $query = mysql_query("SELECT email FROM `users` WHERE uid='$uid'") or die(mysql_error()); $row=mysql_fetch_array($query); if(!empty($row)) { $email=$row['email']; $lowercase = strtolower($email); $imagecode = md5( $lowercase ); $data="[url=http://www.gravatar.com/avatar.php?gravatar_id=]http://www.gravatar.com/avatar.php?gravatar_id=[/url]$imagecode"; return $data; } else { $data="default.jpg"; return $data; } } //Insert Update public function Insert_Update($uid, $update) { $update=htmlentities($update); $time=time(); $ip=$_SERVER['REMOTE_ADDR']; $query = mysql_query("SELECT msg_id,message FROM `messages` WHERE uid_fk='$uid' order by msg_id desc limit 1") or die(mysql_error()); $result = mysql_fetch_array($query); if ($update!=$result['message']) { $query = mysql_query("INSERT INTO `messages` (message, uid_fk, ip,created) VALUES ('$update', '$uid', '$ip','$time')") or die(mysql_error()); $newquery = mysql_query("SELECT M.msg_id, M.uid_fk, M.message, M.created, U.username FROM messages M, users U where M.uid_fk=U.uid and M.uid_fk='$uid' order by M.msg_id desc limit 1 "); $result = mysql_fetch_array($newquery); return $result; } else { return false; } } //Delete update public function Delete_Update($uid, $msg_id) { $query = mysql_query("DELETE FROM `comments` WHERE msg_id_fk = '$msg_id' ") or die(mysql_error()); $query = mysql_query("DELETE FROM `messages` WHERE msg_id = '$msg_id' and uid_fk='$uid'") or die(mysql_error()); return true; } //Insert Comments public function Insert_Comment($uid,$msg_id,$comment) { $comment=htmlentities($comment); $time=time(); $ip=$_SERVER['REMOTE_ADDR']; $query = mysql_query("SELECT com_id,comment FROM `comments` WHERE uid_fk='$uid' and msg_id_fk='$msg_id' order by com_id desc limit 1 ") or die(mysql_error()); $result = mysql_fetch_array($query); if ($comment!=$result['comment']) { $query = mysql_query("INSERT INTO `comments` (comment, uid_fk,msg_id_fk,ip,created) VALUES ('$comment', '$uid','$msg_id', '$ip','$time')") or die(mysql_error()); $newquery = mysql_query("SELECT C.com_id, C.uid_fk, C.comment, C.msg_id_fk, C.created, U.username FROM comments C, users U where C.uid_fk=U.uid and C.uid_fk='$uid' and C.msg_id_fk='$msg_id' order by C.com_id desc limit 1 "); $result = mysql_fetch_array($newquery); return $result; } else { return false; } } //Delete Comments public function Delete_Comment($uid, $com_id) { $query = mysql_query("DELETE FROM `comments` WHERE uid_fk='$uid' and com_id='$com_id'") or die(mysql_error()); return true; } } ?> [/spoiler] --------------------------------------------------------------------------------------------------------------------- load_messages.php [spoiler] <?php //Srinivas Tamada [url=http://9lessons.info]http://9lessons.info[/url] //Loading Comments link with load_updates.php foreach($updatesarray as $data) { $msg_id=$data['msg_id']; $orimessage=$data['message']; $message=tolink(htmlentities($data['message'])); $time=$data['created']; $username=$data['username']; $uid=$data['uid_fk']; $face=$Wall->Gravatar($uid); $commentsarray=$Wall->Comments($msg_id); $id = $_SESSION["bilgi"]["uye_id"]; $sorgu = mysql_query("select * from uyeler where uye_id = '$id'"); $yaz = mysql_fetch_array($sorgu); ?> <script type="text/javascript"> $(document).ready(function(){$("#stexpand<?php echo $msg_id;?>").oembed("<?php echo $orimessage; ?>",{maxWidth: 400, maxHeight: 300});}); </script> <link rel="stylesheet" type="text/css" href="style1.css"> <div class="stbody" id="stbody<?php echo $msg_id;?>"> <div class="stimg"> <img src="uyeler/<?php echo $yaz["resim"]; ?>" class='big_face'/> </div> <div class="sttext"> <a class="stdelete" href="#" id="<?php echo $msg_id;?>" title="Sil">x</a> <a href="#" style="color:#336666;line-height:2; "><?php echo $yaz["ad_soyad"]; ?></a> <br> <?php echo $message;?> <div class="sttime"><?php time_stamp($time);?> | <a href='#' class='commentopen' id='<?php echo $msg_id;?>' title='Yanıtla'>Yanıtla </a></div> <div id="stexpandbox"> <div id="stexpand<?php echo $msg_id;?>"></div> </div> <div class="commentcontainer" id="commentload<?php echo $msg_id;?>"> <?php include('load_comments.php') ?> </div> <div class="commentupdate" style='display:none;background-color:#FAF3DA' id='commentbox<?php echo $msg_id;?>'> <div class="stcommentimg"> <img src="uyeler/<?php echo $yaz["resim"]; ?>" class='small_face'/> </div> <div class="stcommenttext" > <form method="post" action=""> <input type="text" name="Yanıtla" class="comment" maxlength="200" placeholder="Yanıtlamak İçin Enter Tuşuna Basınız." id="ctextarea<?php echo $msg_id;?>" style="border-radius: 0px;outline:none;border:1px solid #e1e1e1;overflow:hidden;outline:none;"> <br /> <input type="submit" value=" Yanıtla " id="<?php echo $msg_id;?>" class="btn-mini btn-danger comment_button"/> </form> </div> </div> </div> </div> <?php } ?> [/spoiler] --------------------------------------------------------------------------------------------------------------------- message_ajax.php [spoiler] <?php header("Content-Type: text/html; charset=windows-1254"); function tr($tr){ $hallet=iconv("UTF-8", "ISO-8859-9",$tr); return $hallet; } ?> <?php error_reporting(0); include_once 'baglan.php'; include_once 'includes/db.php'; include_once 'includes/functions.php'; include_once 'includes/tolink.php'; include_once 'includes/time_stamp.php'; include_once 'session.php'; include_once 'baglan.php'; $Wall = new Wall_Updates(); if(isSet($_POST['update'])) { $update=$_POST['update']; $data=$Wall->Insert_Update($uid,$update); if($data) { $msg_id=$data['msg_id']; $orimessage=$data['message']; $message=tolink(htmlentities($data['message'])); $time=$data['created']; $username=$data['username']; $uid=$data['uid_fk']; $face=$Wall->Gravatar($uid); $commentsarray=$Wall->Comments($msg_id); $id = $_SESSION["bilgi"]["uye_id"]; $sorgu = mysql_query("select * from uyeler where uye_id = '$id'"); $yaz = mysql_fetch_array($sorgu); //$commentsarray=$Wall->Comments($msg_id); ?> <link rel="stylesheet" type="text/css" href="style1.css"> <div class="stbody" id="stbody<?php echo $msg_id;?>"> <div class="stimg"> <img src="uyeler/<?php echo $yaz["resim"]; ?>" class='big_face'/> </div> <div class="sttext"> <a class="stdelete" href="#" id="<?php echo $msg_id;?>" title="Sil">x</a> <a href="#" style="color:#3300FF;line-height:2; "><?php echo $yaz["ad_soyad"]; ?></a> <br> <?php echo $message;?> <div class="sttime"><?php time_stamp($time);?> | <a href='#' class='commentopen' id='<?php echo $msg_id;?>' title='Yanıtla'>Yanıtla </a></div> <div id="stexpandbox"> <div id="stexpand<?php echo $msg_id;?>"></div> </div> <div class="commentcontainer" id="commentload<?php echo $msg_id;?>"> <?php include('load_comments.php') ?> </div> <div class="commentupdate" style='display:none;background-color:#FAF3DA' id='commentbox<?php echo $msg_id;?>'> <div class="stcommentimg"> <img src="uyeler/<?php echo $yaz["resim"]; ?>" class='small_face'/> </div> <div class="stcommenttext" > <form method="post" action=""> <textarea name="Yanıtla" class="comment" maxlength="200" placeholder="Yanıtlamak İçin Enter Tuşuna Basınız." id="ctextarea<?php echo $msg_id;?>" style="border-radius: 0px;border:1px solid #e1e1e1;outline:none;overflow:hidden; "></textarea> <br /> <input type="submit" value=" Yanıtla " id="<?php echo $msg_id;?>" class="btn-mini btn-danger comment_button"/> </form> </div> </div> </div> </div> <?php } } ?>[/spoiler] --------------------------------------------------------------------------------------------------------------------- session.php [spoiler] <?php $uid=1; // User Session ID ?> [/spoiler] --------------------------------------------------------------------------------------------------------------------- load_comments.php [spoiler] <?php foreach($commentsarray as $cdata) { $com_id=$cdata['com_id']; $comment=tolink(htmlentities($cdata['comment'] )); $time=$cdata['created']; $username=$cdata['username']; $uid=$cdata['uid_fk']; $cface=$Wall->Gravatar($uid); $id = $_SESSION["bilgi"]["uye_id"]; $sorgu = mysql_query("select * from uyeler where uye_id = '$id'"); $yaz = mysql_fetch_array($sorgu); ?> <div class="stcommentbody" id="stcommentbody<?php echo $com_id; ?>"> <div class="stcommentimg"> <img src="uyeler/<?php echo $yaz["resim"]; ?>" class='small_face'/> </div> <div class="stcommenttext"> <a class="stcommentdelete" href="#" id='<?php echo $com_id; ?>' title='Delete Comment'>x</a> <b><?php echo $yaz ["ad_soyad"]; ?></b> <?php echo $comment;?> <div class="stcommenttime"><?php time_stamp($time); ?></div> </div> </div> <?php } ?> [/spoiler] --------------------------------------------------------------------------------------------------------------------- comment_ajax.php [spoiler] <?php header("Content-Type: text/html; charset=windows-1254"); function tr($tr){ $hallet=iconv("UTF-8", "ISO-8859-9",$tr); return $hallet; } ?> <?php //Srinivas Tamada http://9lessons.info //Load latest comment error_reporting(0); include_once 'baglan.php'; include_once 'includes/db.php'; include_once 'includes/functions.php'; include_once 'includes/tolink.php'; include_once 'includes/time_stamp.php'; include_once 'session.php'; $Wall = new Wall_Updates(); if(isSet($_POST['comment'])) { $comment=$_POST['comment']; $msg_id=$_POST['msg_id']; $ip=$_SERVER['REMOTE_ADDR']; $cdata=$Wall->Insert_Comment($uid,$msg_id,$comment,$ip); if($cdata) { $com_id=$cdata['com_id']; $comment=tolink(htmlentities($cdata['comment'] )); $time=$cdata['created']; $username=$cdata['username']; $uid=$cdata['uid_fk']; $cface=$Wall->Gravatar($uid); $id = $_SESSION["bilgi"]["uye_id"]; $sorgu = mysql_query("select * from uyeler where uye_id = '$id'"); $yaz = mysql_fetch_array($sorgu); ?> <div class="stcommentbody" id="stcommentbody<?php echo $com_id; ?>"> <div class="stcommentimg"> <img src="uyeler/<?php echo $yaz["resim"]; ?>" class='small_face'/> </div> <div class="stcommenttext"> <a class="stcommentdelete" href="#" id='<?php echo $com_id; ?>'>X</a> <b><?php echo $yaz ["ad_soyad"]; ?></b> <?php echo $comment;?> <div class="stcommenttime"><?php time_stamp($time); ?></div> </div> </div> <?php } } ?> [/spoiler] Veri Tabanı Resim : h
  9. kodları atarmısınız acaba ben çok denedim cekip yazdırmak için görünmüyor ad soyad resim nereye ne yazmam lazım acaba 
  10. İyi günler ben paylaşım sitesi yapmak istiyorum ama şu kısmı halledemedim  kullanıcı birşey paylaştığında ad soyadını ve resminin çıkmasını istiyorum  ahmet mehmet yazan yere paylasanın ad soyadı boş görünen resim yerine paylaşanın resmi  ben veritabanı kod bölümü ve paylaşım bölümünün resmini attım  nasıl yapabilirim acaba?  Resim :  http://s1309.hizliresim.com/1f/g/sq2rv.png
  11. İyi Günler Ben Paylaşım Sitesi Yapmak İstiyorum Facebook Tarzı Php Yeni Başladım. Mesela Birisi Birşey Paylaştı.Onun Ad Soyad Çekmek İstiyorum Ama Nasıl Yapılcak Bilmiyorum. Örneğin ; Ben ahmet mehmet diye hesabımdan birşey paylaşıyorum. mustafa murat hesabımla girince paylaşanın ben olduğunu gösteriyor. Aşağıdaki Resim http://k1309.hizliresim.com/1f/f/snpqj.png 1 ' de ahmet123 ile giriş yapıyorum 2 ' de merhaba ben ahmet mehmet diye paylaşım yapıyorum 3 ' de paylaştığımı gösteriyorum. 4 ' de mustafa murat adlı hesabıma giriyorum. 5 ' de ahmet mehmet adlı hesabımın paylaşılanın mustafa murat paylaştı gibi oluyor Yani Ben Hangi Hesap Paylaştıysa O Hesabın İsminin Gösterilmesini İstiyorum Nasıl Yapabilirim Kodlarım ; [spoiler] [php] <?php foreach($updatesarray as $data) { $msg_id=$data['msg_id']; $orimessage=$data['message']; $message=tolink(htmlentities($data['message'])); $time=$data['created']; $username=$data['username']; $uid=$data['uid_fk']; $face=$Wall->Gravatar($uid); $commentsarray=$Wall->Comments($msg_id); $id = $_SESSION["bilgi"]["uye_id"]; $sorgu = mysql_query("select * from uyeler where uye_id = '$id'"); $yaz = mysql_fetch_array($sorgu); ?> yasak kelime type="text/javascript"> $(document).ready(function(){$("#stexpand<?php echo $msg_id;?>").oembed("<?php echo $orimessage; ?>",{maxWidth: 400, maxHeight: 300});}); </script> <div class="stbody" id="stbody<?php echo $msg_id;?>"> <div class="stimg"> </div> <div class="sttext"> <a class="stdelete" href="#" id="<?php echo $msg_id;?>" title="Sil">x</a> <b><?php echo $yaz ["ad_soyad"]; ?></b> <?php echo $message;?> <div class="sttime"><?php time_stamp($time);?> | <a target=_blank href='#' class='commentopen' id='<?php echo $msg_id;?>' title=''></a></div> <div id="stexpandbox"> <div id="stexpand<?php echo $msg_id;?>"></div> </div> <div class="commentcontainer" id="commentload<?php echo $msg_id;?>"> <?php include('load_comments.php') ?> </div> <div class="commentupdate" style='display:none;background-color:#FAF3DA' id='commentbox<?php echo $msg_id;?>'> <div class="stcommentimg"> </div> $id = $_SESSION["bilgi"]["uye_id"]; yerine $id = $data['uye_id']; [/php] [/spoiler] Yaptım Ama Olmadı O zamanda http://p1309.hizliresim.com/1f/f/snwjn.png Böyle Oluyor Nasıl Yapabilirim Acaba?
×
×
  • Create New...