Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
779
Prince of Persia : Sands ..(3862 okuma, 0 yanıt) Youtube Jacker İşe Yarama ..(8487 okuma, 8 yanıt) Netopsiyon Özel Nuke Sürü ..(46936 okuma, 61 yanıt) YouTube Videolarını Sorun ..(57154 okuma, 79 yanıt) Site yarışmasi Basvurular ..(21202 okuma, 25 yanıt) hiç birsey gözükmüyorrr ..(6136 okuma, 3 yanıt) Yardım Nuke .. ..(11217 okuma, 11 yanıt) Mrb forum Yardım ..(4946 okuma, 2 yanıt) Üyelerin özel mesajlarını ..(7506 okuma, 5 yanıt) sitem yavaş açılıyo ..(6074 okuma, 3 yanıt) Nasipte Askere Gitmekte V ..(23758 okuma, 30 yanıt) Video stream nasil kullan ..(9071 okuma, 8 yanıt) Yeni Modul Oluşturdum ayr ..(10226 okuma, 8 yanıt) Forumu son 24 saatte kim ..(6065 okuma, 3 yanıt) coppermine ..(8157 okuma, 7 yanıt) Yeni Forum Yaratıyorum Am ..(7602 okuma, 5 yanıt) Forum Sorunu ..(5842 okuma, 2 yanıt) Sağ Ve Sol Bloklar Yan Ya ..(10696 okuma, 10 yanıt) Admin paneli ..(8597 okuma, 6 yanıt) Forum Yonetim Sayfasi so ..(9006 okuma, 8 yanıt) Bilgide Haber Blok Yardım ..(4692 okuma, 1 yanıt) Türkçe karakter sorunu öl ..(9120 okuma, 7 yanıt) Güvenli Bir Php Sürümü ..(5168 okuma, 2 yanıt) titlede turkce karekter s ..(4903 okuma, 1 yanıt) 5 DK SONRA İNTAHAR EDİCEM ..(12963 okuma, 14 yanıt) BBtonuke 2 Sorun ..(5618 okuma, 3 yanıt) Yeni Sitemde Hangi Php Nu ..(8329 okuma, 6 yanıt) Netopsion pagerank Kampan ..(7374 okuma, 5 yanıt) haber sitesi cms ..(91409 okuma, 112 yanıt) Pagerank Kampanyası İle İ ..(37908 okuma, 48 yanıt) Nukejmap site haritası ha ..(5400 okuma, 2 yanıt) flash sayfasına haber ekl ..(5552 okuma, 1 yanıt) Phaspeseo da Nerde hata y ..(4162 okuma, 0 yanıt) mail list toplu mail gönd ..(16230 okuma, 21 yanıt) Sothink dhtml menü ..(8186 okuma, 7 yanıt) dreamweaver ..(5833 okuma, 2 yanıt) Parse error, syntax error ..(8579 okuma, 6 yanıt) forum ..(4981 okuma, 1 yanıt) Forumdaki Konular ? ..(7857 okuma, 5 yanıt) Seo yükledim Güvenlik kod ..(6689 okuma, 3 yanıt) seonun kuruldugunu ve işl ..(7150 okuma, 4 yanıt) AEG ZD ..(6236 okuma, 2 yanıt) Kampanya Başvuruları ..(21178 okuma, 22 yanıt) Netopsiyon Pagerank İşbir ..(19597 okuma, 21 yanıt) Yeni Domain Googlede yok ..(5309 okuma, 2 yanıt) sayfa üretim yazısı ..(4748 okuma, 1 yanıt) Boglon.de Sitemin Hizini ..(3860 okuma, 0 yanıt) Tema Taşırması? ..(4052 okuma, 0 yanıt) title nasıl değiştirlir ..(11375 okuma, 11 yanıt) 2 tane ayri scrip ..(5306 okuma, 1 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - phpBB album mod la ilgili YARDIM lütfen
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
bmtayfun Mesaj: 1+
Kayıt: Jun 11, 2004 Mesajlar: 1 Konum: ankara
Tarih: 2005-07-25, 04:21:57 Mesaj konusu: phpBB album mod la ilgili YARDIM lütfen
phpbb forum için smartor un hazırladığı album mod unun "recent public pic" böümüne nasıl daha fazla satır ekleyebilirim (albumun ana sayfasında son eklenen resimleri sadece tek satır gösteriyo bunu çoğaltmak istiyorum) bilen varsa YARDIM lütfen. kodu aşağıda veriyorum. nasıl modifiye edebilirm...
/*
+----------------------------------------------------------
| Recent Public Pics
+----------------------------------------------------------
*/
if ($allowed_cat != '')
{
$sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_username, p.pic_time, p.pic_cat_id, p.pic_view_count, u.user_id, u.username, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
FROM ". ALBUM_TABLE ." AS p
LEFT JOIN ". USERS_TABLE ." AS u ON p.pic_user_id = u.user_id
LEFT JOIN ". ALBUM_CAT_TABLE ." AS ct ON p.pic_cat_id = ct.cat_id
LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id
LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id
WHERE p.pic_cat_id IN ($allowed_cat) AND ( p.pic_approval = 1 OR ct.cat_approval = 0 )
GROUP BY p.pic_id
ORDER BY pic_time DESC
LIMIT ". $album_config['cols_per_page'];
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query recent pics information', '', __LINE__, __FILE__, $sql);
}
$recentrow = array();
while( $row = $db->sql_fetchrow($result) )
{
$recentrow[] = $row;
}
if (count($recentrow) > 0)
{
for ($i = 0; $i < count($recentrow); $i += $album_config['cols_per_page'])
{
$template->assign_block_vars('recent_pics', array());
for ($j = $i; $j < ($i + $album_config['cols_per_page']); $j++)
{
if( $j >= count($recentrow) )
{
break;
}
if(!$recentrow[$j]['rating'])
{
$recentrow[$j]['rating'] = $lang['Not_rated'];
}
else
{
$recentrow[$j]['rating'] = round($recentrow[$j]['rating'], 2);
}
$template->assign_block_vars('recent_pics.recent_col', array(
'U_PIC' => ($album_config['fullpic_popup']) ? append_sid("album_pic.$phpEx?pic_id=". $recentrow[$j]['pic_id']) : append_sid("album_page.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
'THUMBNAIL' => append_sid("album_thumbnail.$phpEx?pic_id=". $recentrow[$j]['pic_id']),
'DESC' => $recentrow[$j]['pic_desc']
)
);
if( ($recentrow[$j]['user_id'] == ALBUM_GUEST) or ($recentrow[$j]['username'] == '') )
{
$recent_poster = ($recentrow[$j]['pic_username'] == '') ? $lang['Guest'] : $recentrow[$j]['pic_username'];
}
else
{
$recent_poster = '<a href="'. append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $recentrow[$j]['user_id']) .'">'. $recentrow[$j]['username'] .'</a>';
}
$template->assign_block_vars('recent_pics.recent_detail', array(
'TITLE' => $recentrow[$j]['pic_title'],
'POSTER' => $recent_poster,
'TIME' => create_date($board_config['default_dateformat'], $recentrow[$j]['pic_time'], $board_config['board_timezone']),
'VIEW' => $recentrow[$j]['pic_view_count'],
'RATING' => ($album_config['rate'] == 1) ? ( ''. append_sid("". $recentrow[$j]['']) . '' . $lang['Rating'] . ' : ' . $recentrow[$j]['rating'] . '<br />') : '',
'COMMENTS' => ($album_config['comment'] == 1) ? ( ''. append_sid("". $recentrow[$j]['']) . '' . $lang['Comments'] . ' : ' . $recentrow[$j]['comments'] . '<br />') : '',
'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : ''
)
);
}
}
}
else
{
//
// No Pics Found
//
$template->assign_block_vars('no_pics', array());
}
}
else
{
//
// No Cats Found
//
$template->assign_block_vars('no_pics', array());
}
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-03-29, 08:19:24 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız