THT DUYURU

chat
Vbulletin Vbulletin hakkında soru ve cevaplar, bilgi paylaşımları.
Crack, null vbulletin dosya paylaşımı yasaktır.

ugursuz reklam
takipci
Seçenekler

Pm gelince menu acılsın

bLoOdLusT1912 - ait Kullanıcı Resmi (Avatar)
Hevesli Üye
Üyelik tarihi:
08/2007
Mesajlar:
5.470
Konular:
4574
Teşekkür (Etti):
0
Teşekkür (Aldı):
417
Ticaret:
(0) %
0
477
05-12-2007 15:34
#1
kisiye pm gelince anasayfada pm geldigine dair bi kutu aciliyor

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################


hemen ustune sunlari ekliyin
Kod:
// ------------------------------------ 
// Show PM If We Have Atleast 1 Unread 
// ------------------------------------ 
if($bbuserinfo['pmunread'] > 0){ 
require_once('./includes/functions_user.php'); 
// Get The PM Information 
$from = $DB_site->query_first(" 
SELECT pm.*, pmtext.*, fuser.* 
FROM " . TABLE_PREFIX . "pm AS pm 
LEFT JOIN " . TABLE_PREFIX . "pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid) 
LEFT JOIN " . TABLE_PREFIX . "user AS fuser on (fuser.userid = pmtext.fromuserid) 
WHERE pm.userid=$bbuserinfo[userid] AND pm.messageread = 0 
ORDER BY pmtext.dateline DESC 
LIMIT 0, 1 
"); 
$from['av_disp'] = fetch_avatar_url($from['userid']); 
if($from['av_disp'] == ""){ 
$from['av_disp'] = "<b>No Avatar</b>"; 
} else { 
$from['av_disp'] = "<img src='{$from['av_disp']}' alt='{$from['username']}\'s Avatar' border='0' />"; 
} 
// Cut Message To 400 Characters 
if(strlen($from['message']) > 400){ 
$from['message'] = substr($from['message'],0,400) . "..."; 
} 
// Parse The Message 
require_once('./includes/functions_bbcodeparse.php'); 
$from['message'] = parse_bbcode2($from['message'], $vboptions['privallowhtml'], $vboptions['privallowbbimagecode'], iif($vboptions['privallowsmilies'] AND $from['allowsmilie'], 1, 0), $vboptions['privallowbbcode']); 
eval("\$PMShow = \"".fetch_template('forumhome_pmshow')."\";"); 
} else { 
$PMShow = ""; 
}  

Sora FORUMHOME yi bulun index.php de template diil Kod

altina forumhome_pmshow yazin

sora kaydedip cikin

simdi FORUMHOME templates ine gecin

$navbar in altina $PMShow ekliyin

sora kaydet e basarak cıkın

yeni template olusturmamiz lsm simdi

adi : forumhome_pmshow olucak

ve bu templatenin ici bos olur actiginizda

sunlari ekliyin bu templateye

Kod:
table width='100%' cellpadding='3' cellspacing='1' class='tborder' border='0'> 
 
<tr> 
 
<td class='thead' colspan='2'><span style='float:right'>You Have {$bbuserinfo[pmunread]} Unread Private Message(s)</span> 
 
Private Message From: {$from['username']} 
 
</td> 
 
</tr> 
 
<tr> 
 
<td width='10%' class='alt2' align='center' valign='top'>{$from['av_disp']}</td> 
 
<td width='80%' class='alt2' valign='top'><b>PM Title:</b> {$from['title']}<br /><hr size="1" style="color:$stylevar[tborder_bgcolor]" />{$from['message']}</td> 
 
</tr> 
 
<tr> 
 
<td class='tfoot' colspan='2'><b>Options:</b> <a href='private.php?{$session['sessionurl']}&do=showpm&pmid={$from['pmid']}'>Read This PM</a> | <a href='private.php?{$session['sessionurl']}'>Go To Your Inbox</a></td> 
 
</tr> 
 
</table> 
 
<br />  
---------------------
TÜRK'ün aLnı Sadece ALLAH'a Secde Eder !!!




Bookmarks


« Önceki Konu | Sonraki Konu »
Seçenekler