05 Temmuz 2009, 22:59:40
Mustafa Kemal Atatürk -Adanalı Dizisi -KVP Bölümleri -KVP Müzikleri -Full Programlar -Albümler -Online Dizi İzle -Online Film İzle
Dizi Müzikleri -Dizi Özetleri & Fragmanları -Diziler -Filmler -SW Aktiviteleri -Şiirler -Tiny Portal -Full Oyun Download

Saygı değer Üyelerimiz sitemiz bir forum sitesi olduğu için kullanıcılar her türlü görüşlerini önceden onay olmadan anında siteye yazabilmektedir, bu yazılardan dolayı doğabilecek her türlü sorumluluk yazan kullanıcılara aittir. T.C. Kanunlarına aykırı olan MP3,Warez,Crack,Flim V.b. ürünlerin sitemizde paylaşımı Kesin olarak Yasaktır. Kurallara uymayan üyeler sitemizden uzaklaştırılır ve gerektiğinde yasal kurumlarda kullanılmak üzere IP (Internet Kimlik Numarası)adresi verilecektir.

Sayfa: [1]   Aşağı git
Yazdır
Gönderen Konu: In The News' - Block [Posts from a specific board]  (Okunma Sayısı 462 defa)
alp
Admin
******

Rep 144
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 8,455



WWW
« : 28 Ekim 2007, 20:24:54 »


'In The News' - Block [Posts from a specific board]
bu blok sizin seçtiğiniz bölümden haberleri değişik bir şekilde göstermeye yarıyor


ekran görüntüsü:
    
'In The News' - Block [Posts from a specific board]
SSI.php de bul
Kod:
// Show the top poster's name and profile link.
üstüne ekle


Kod:
// Recent topic list reversed:   [board] Subject by Poster Date
function ssi_recentTopicsINC($num_recent = 8, $include_boards = null, $output_method = 'echo')
{
global $context, $settings, $scripturl, $txt, $db_prefix, $ID_MEMBER, $user_info, $modSettings;

$include_boards = empty($include_boards) ? array() : $include_boards;

$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

// Find all the posts in distinct topics.  Newer ones will have higher IDs.
$request = db_query("
SELECT
m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "
WHERE t.ID_LAST_MSG >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "
AND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($include_boards) ? '' : "
AND b.ID_BOARD IN (" . implode(', ', $include_boards) . ")") . "
" . ((!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0) ? "
AND b.ID_BOARD != '$modSettings[recycle_board]'" : '') . "
AND $user_info[query_see_board]
AND ms.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_LAST_MSG DESC
LIMIT $num_recent", __FILE__, __LINE__);
$posts = array();
while ($row = mysql_fetch_assoc($request))
{
$row['body'] = strip_tags(strtr(parse_bbc($row['body'], $row['smileysEnabled'], $row['ID_MSG']), array('<br />' => '&#10;')));
if (strlen($row['body']) > 128)
$row['body'] = substr($row['body'], 0, 128) . '...';

// Censor the subject.
censorText($row['subject']);
censorText($row['body']);

if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

// Build the array.
$posts[] = array(
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bName'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bName'] . '</a>'
),
'topic' => $row['ID_TOPIC'],
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'href' => empty($row['ID_MEMBER']) ? '' : $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => empty($row['ID_MEMBER']) ? $row['posterName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['posterName'] . '</a>'
),
'subject' => $row['subject'],
'short_subject' => shorten_subject($row['subject'], 25),
'preview' => $row['body'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true, $row['posterTime']),
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#new">' . $row['subject'] . '</a>',
'new' => !empty($row['isRead']),
'new_from' => $row['new_from'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
);
}
mysql_free_result($request);

// Just return it.
if ($output_method != 'echo' || empty($posts))
return $posts;

echo '
<table border="0" class="ssi_table">';
foreach ($posts as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">
[', $post['board']['link'], ']
</td>
<td valign="top">
<a href="', $post['href'], '">', $post['subject'], '</a>
', $txt[525], ' ', $post['poster']['link'], '
', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '
</td>
<td align="right" nowrap="nowrap">
', $post['time'], '
</td>
</tr>';
echo '
</table>';
}

**************
resmi ana dizine atın

************

php box oluşturun bir tane,kodu içine kopyalayın


Kod:
echo' <div align="center">
<table border="1" width="100%" id="table1">
<tr>
<td width="100" valign="top" bgcolor="#FFFFFF">
<font face="Verdana">
<img border="0" src="extra.gif" width="100" height="111"></font><p align="center">
<font size="1" face="Verdana">Read, post and discuss the latest news from around the
world in our forums!</font></p>
<p align="center"><font size="1" face="Verdana">Get all the details by comparing views!</font></td>
<td><font face="Verdana">';

global $context, $scripturl;
$bullet = '<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$result=ssi_recentTopicsINC(5,array(58),'return');
foreach($result as $my){

  echo "$bullet";
  echo '<span class="largetext">'.$my['link'];
  // is this topic new? (assume they are logged in)
if (!$my['new'] && $context['user']['is_logged'])
echo '
                                                <a href="', $scripturl, '?topic=', $my['topic'], '.from', $my['newtime'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';
echo '<hr>';
}
echo '</span>';

echo'   <br></font><font size="1" face="Verdana">The News is updated
when members make new posts in the <a href="http://www.yoursite.com/link_to_your_newsboard">In the News Section</a> Please be sure
to <a href="http://www.yoursite.com/if_u_have_posting_rules_give_link_here">read posting rules</a> for that board before posting!</font></td>
</tr>
</table>
</div>';
kendinize göre bazı kısımları editleyin(Linklerin Görülmesine İzin Verilmiyor
Linki Görebilmek İçin Üye Ol veya Giriş Yap
www.yoursite.com/
gibi)

    
$result=ssi_recentTopicsINC(5,array(58),'return');

5 = number of topics to display (kaç tane haber gösterecekseniz o rakamı girin)
58 = board number (bölüm numarası)
Logged

Robot Moderatör
Anahtar Kelime
*****
Offline Pasif

Mesajlar: 42,063


View Profile
Re: In The News' - Block [Posts from a specific board]
« Posted on: 05 Temmuz 2009, 22:59:40 »

 
      uyari
Merhaba ziyaretçi. Öncelikle sitemize hoşgeldiniz. Ben robot moderatör olrak siteden daha fazla yararlanmanız için sitemize üye olmanızı öneririm. iyi eğlenceler.

giris  kayit
Anahtar Kelimeler: In The News' - Block [Posts from a specific board] oyunları, In The News' - Block [Posts from a specific board] programı, In The News' - Block [Posts from a specific board] oyunu indir, In The News' - Block [Posts from a specific board] program yükle, In The News' - Block [Posts from a specific board] download, In The News' - Block [Posts from a specific board] hikayeleri, In The News' - Block [Posts from a specific board] resimleri, In The News' - Block [Posts from a specific board] haber, In The News' - Block [Posts from a specific board] yükle, In The News' - Block [Posts from a specific board] videosu, In The News' - Block [Posts from a specific board] albüm indir,maçının golleri,seyret,dinle,izle,online izle bedava ödev indir msn eklentisi, şarkı sözleri,kurtlarvadisi,mp3,dizi,şarkı,indir,download, avatar, internet, Öss, Eğitim, Kpss, Üniversite, Lost, Dizi, Kurtlar Vadisi, Avrupa Yakası, Heroes, DVD, Program Download, Windows Xp, Vista, Donanım, Film, Sinema
Logged
Semih R.Cabalar
Teşkilat-ı Mahsusa
SW Tiryakisi
******

Rep 198
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 8,340

Avatar Yok


« Yanıtla #1 : 28 Ekim 2007, 20:25:32 »

teşekkürler Wink
Logged

EŞKİYA DÜNYAYA HÜKÜMDAR OLMAZ!
Sayfa: [1]   Yukarı git
Yazdır
Sanalworld-Anahtar kelimelerIn The News' - Block [Posts from a specific board] Yeni albümler indir dinle,mp3 indir dinle,oyunlar dizi özetleri fragmanları,haber,yükle,filmi indir izle,online izle,bölüm online dizi izle,kurtlar vadisi pusu yeni bölüm fragmanı indir izle müzikleri,dizi müzikleri ,indir,download,adanalı dizisi,albümü indir,şarkıcı,yemek tarifleri,bedava ödev,ünlü resimleri,görüntüleri fotoğrafları,maçın golleri özetleri,Paylaşım, knight online, garip olaylar, galatasaray, In The News' - Block [Posts from a specific board] fenerbahçe, beşiktaş, Film, Dizi, Müzik, Program, Oyun, Download, Dostluk, Sinema, Video, Eğlence, Komik, Mühendislik, Eğitim, Kadın, Siyaset, Resim, Cep, Bilgisayar, Kültür, Sanat, Tarih, Edebiyat, Turizm, Spor In The News' - Block [Posts from a specific board]
Gitmek istediğiniz yer:  



TinyPortal v.1.0.6 beta 2 © Bloc
|Sitemap 1| 2| 3| 4| 5| 6| Wap| Wap 2| XML| Arşiv| Arşiv 2|index|Rss| Web Stats