Gönderen Konu: Dersimizin konusu ip bord forum,larindaki avatar sistemi  (Okunma sayısı 1690 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı gecitli

  • Master Üye
  • *
  • İleti: 1239
  • Saygınlık Puanı: 196
    • webtiryaki.com
  • Smf Sürümü: Smf 2.0.5
  • Web Siteniz: www.webtiryaki.com
DEMO

Dersimizin konusu ip bord forumlarindaki avatar sistemi

once db,emizden Cagiralim
BoardIndex.template
Bul

Kod: [Seç]
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;

// Show some statistics if stat info is off.
if (!$settings['show_stats_index'])
echo '
<div id="index_common_stats">
', $txt['members'], ': ', $context['common_stats']['total_members'], ' &nbsp;&#8226;&nbsp; ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; ', $txt['topics'], ': ', $context['common_stats']['total_topics'], '
', ($settings['show_latest_member'] ? ' ' . $txt['welcome_member'] . ' <strong>' . $context['common_stats']['latest_member']['link'] . '</strong>' . $txt['newest_member'] : '') , '
</div>';
Altina ekle

Kod: [Seç]
// fetch last posters
$membs = array();
global $smcFunc;

foreach($context['categories'] as $category)
{
if(!empty($category['boards']))
{
foreach($category['boards'] as $b)
$membs[$b['last_post']['member']['id']] = $b['last_post']['member']['id'];
}
}
if(count($membs)>0)
{
$request =  $smcFunc['db_query']('','SELECT mem.id_member as ID_MEMBER, mem.avatar,
IFNULL(a.id_attach, 0) AS ID_ATTACH, a.filename, a.attachment_type as attachmentType
FROM {db_prefix}members AS mem
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE mem.id_member IN (' . implode(",",$membs) . ')',array());

$avvy = array();
if($smcFunc['db_num_rows']($request)>0)
{
while($row = $smcFunc['db_fetch_assoc']($request))
$avvy[$row['ID_MEMBER']] = $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']));

$smcFunc['db_free_result']($request);
}
}
Koyacagimiz yeri ayarliyalim
bul
Kod: [Seç]
<td class="lastpost">';
altina ekle

Kod: [Seç]
if(empty($settings['no_avvy']) && !$board['is_redirect'] && !empty($board['last_post']['id']))
echo '
<a href="' , $scripturl , '?action=profile;u=' .$board['last_post']['member']['id']. ';type=rss" class="floatleft" style="margin: 5px 5px 1em 0px;">
<img alt=""  class="avyframe" style="width: 25px;" src="' . (!empty($avvy[$board['last_post']['member']['id']]) ? $avvy[$board['last_post']['member']['id']] : $settings['images_url'].'/theme/guest.png') . '" />
</a>';
Bu Kadar Gelistirmelerim suruyor devami gelecek

DEMO
« Son Düzenleme: 20 Ocak 2013, 00:19:44 Gönderen: gecitli »

Çevrimdışı PALAUDIS

  • Master Üye
  • *
  • İleti: 2027
  • Saygınlık Puanı: 157
  • Cinsiyet: Bay
  • < / Detail>
    • Detail Web Design
  • Smf Sürümü: Smf 2.0.8
  • Web Siteniz: www.DetailWebDesign.com
Ynt: Dersimizin konusu ip bord forum,larindaki avatar sistemi
« Yanıtla #1 : 19 Haziran 2012, 23:32:01 »
güzel bir paylaşım teşekkürler

 

bodrum escort - escort bodrum - escort kayseri - malatya escort - escort bayan bodrum - Didim Escort Bayan - Escort Bayan Fethiye