[MOD] Yukarda kayan Son Konular

phpBB 2.0.x sürümleri için geliştirilen ve yapım aşamasındaki Alpha, Beta MODlar & PreMODlar.
Kilitli
Kullanıcı avatarı
nuhsalih
Kayıtlı Kullanıcı
Mesajlar: 108
Kayıt: 28.02.2006, 14:00
İletişim:

[MOD] Yukarda kayan Son Konular

Mesaj gönderen nuhsalih »

Eger forumunuzdaki Son Başlıkları sola gogru kayan Şekilde İstiyorsanız Bu Kodları kurun Şimdiden Kolay gelsin

[ resmi görüntülemek için tıklayın ]


Kod: Tümünü seç

    #-----[ Open]------------------------------------------
    #
    includes/page_header.php

    #
    #-----[ Find ]------------------------------------------
    #
    define('HEADER_INC', TRUE);

    #
    #-----[ Add After ]------------------------------------------
    #

    // number of recent topics
    $CFG['number_recent_topics'] = '10';

    // Forums which you dont want them to appear in the scroll bar
    $CFG['exceptional_forums'] = '';

    #
    #-----[ Find ]------------------------------------------
    #
    $s_last_visit = ( $userdata['session_logged_in'] ) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : '';

    #
    #-----[ Add After ]------------------------------------------
    #

    //
    // Recent Topics
    //
    $is_auth_ary = array();
    $is_auth_ary = auth(AUTH_ALL, AUTH_LIST_ALL, $userdata, $forum_data);

    if( $CFG['exceptional_forums'] == '' )
    {
    $except_forum_id = '\'start\'';
    }
    else
    {
    $except_forum_id = $CFG['exceptional_forums'];
    }

    for ($i = 0; $i < count($forum_data); $i++)
    {
    if ((!$is_auth_ary[$forum_data[$i]['forum_id']]['auth_read']) or (!$is_auth_ary[$forum_data[$i]['forum_id']]['auth_view']))
    {
    if ($except_forum_id == '\'start\'')
    {
    $except_forum_id = $forum_data[$i]['forum_id'];
    }
    else
    {
    $except_forum_id .= ',' . $forum_data[$i]['forum_id'];
    }
    }
    }
    $sql = "SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, t.topic_replies, p.post_id, p.poster_id, p.post_time, u.user_id, u.username
    FROM " . TOPICS_TABLE . " AS t, " . POSTS_TABLE . " AS p, " . USERS_TABLE . " AS u
    WHERE t.forum_id NOT IN (" . $except_forum_id . ")
    AND t.topic_status <> 2
    AND p.post_id = t.topic_last_post_id
    AND p.poster_id = u.user_id
    ORDER BY p.post_id DESC
    LIMIT " . $CFG['number_recent_topics'];
    if (!$result = $db->sql_query($sql))
    {
    message_die(GENERAL_ERROR, 'Could not query recent topics information', '', __LINE__, __FILE__, $sql);
    }
    $number_recent_topics = $db->sql_numrows($result);
    $recent_topic_row = array();
    while ($row = $db->sql_fetchrow($result))
    {
    $recent_topic_row[] = $row;
    }
    for ($i = 0; $i < $number_recent_topics; $i++)
    {
    $template->assign_block_vars('recent_topic_row', array(
    'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_row[$i]['post_id']) . '#' .$recent_topic_row[$i]['post_id'],
    'L_TITLE' => $recent_topic_row[$i]['topic_title'],
    'L_REPLIES' => intval($recent_topic_row[$i]['topic_replies']),
    'U_POSTER' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $recent_topic_row[$i]['user_id']),
    'S_POSTER' => $recent_topic_row[$i]['username'],
    'S_POSTTIME' => $lang['Reply_time'] .': ' . create_date($board_config['default_dateformat'], $recent_topic_row[$i]['post_time'], $board_config['board_timezone'])
    )
    );
    }
    //
    // END - Recent Topics
    //

    #
    #-----[ Find]------------------------------------------
    #
    'L_SEARCH_SELF' => $lang['Search_your_posts'],

    #
    #-----[ Add After]------------------------------------------
    #
    // Recent Topics
    'L_RECENT_TOPICS' => $lang['Recent_topics'],
    'L_AUTHOR' => $lang['Replier'],
    'L_VIEW_AUTHOR' => $lang['View_replier'],
    'L_TOTAL_REPLIES' => $lang['Total_replies'],

    #
    #-----[ Open]-------------------------------------------------------
    #
    language/lang_english/lang_main.php

    #
    #-----[ Find ]---------------------------------------------
    #
    // That's all Folks!

    #
    #-----[ Add Before ]----------------------------------------
    #

    // Last 10 posts
    $lang['Recent_topics'] = 'Son Konular';
    $lang['Reply_time'] = 'Konuyu Açan';
    $lang['Replier'] = 'Son Yazan';
    $lang['View_replier'] = 'Profile';
    $lang['Total_replies'] = 'Cevaplama';

    #
    # If you want the scroll bar to apear in all pages do this
    #
    #-----[ Open]-------------------------------------------------------
    #
    templates/subSilver/overall_header.tpl (Bu kodu eğer tüm forumlarda üst tarafta görünmesini istiyorsanız ekleyin.www.forumum.org)

    #
    #-----[ Find ]---------------------------------------------
    # You will find it in the end of the page

    <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
    </tr>
    </table></td>
    </tr>
    </table>

    <br />

    #
    #-----[ add after]----------------------------------------
    #
    <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
    <tr>
    <td class="catHead" height="25" align="center"><span class="cattitle">{L_RECENT_TOPICS}</span></td>
    </tr>
    <tr>
    <td class="row1" align="left" height="30"><span class="gensmall">
    <marquee id="recent_topics" behavior="scroll" direction="right" scrolldelay="50" scrollamount="2">
    <!-- BEGIN recent_topic_row -->
    &raquo; <a href="{recent_topic_row.U_TITLE}" title="{recent_topic_row.S_POSTTIME}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{recent_topic_row.L_TITLE}</a> ||
    {L_AUTHOR}: <a href="{recent_topic_row.U_POSTER}" title="{L_VIEW_AUTHOR}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{recent_topic_row.S_POSTER}</a> || {L_TOTAL_REPLIES} [ {recent_topic_row.L_REPLIES} ]&nbsp;&nbsp;&nbsp;&nbsp;.::.&nbsp;&nbsp;&nbsp;&nbsp;
    <!-- END recent_topic_row -->
    </marquee>
    </span>
    </td>
    </tr>
    </table><br />

    #
    # If you want the Scroll bar to appear on the Main page of the forum do this
    #
    #-----[ Open]-------------------------------------------------------
    #
    templates/subSilver/index_body.tpl

    #
    #-----[ Find ]---------------------------------------------
    #
    <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
    </tr>
    </table>

    #
    #-----[ Add After ]----------------------------------------
    #
    <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
    <tr>
    <td class="catHead" height="25" align="center"><span class="cattitle">{L_RECENT_TOPICS}</span></td>
    </tr>
    <tr>
    <td class="row1" align="left" height="30"><span class="gensmall">
    <marquee id="recent_topics" behavior="scroll" direction="right" scrolldelay="50" scrollamount="2">
    <!-- BEGIN recent_topic_row -->
    &raquo; <a href="{recent_topic_row.U_TITLE}" title="{recent_topic_row.S_POSTTIME}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{recent_topic_row.L_TITLE}</a> ||
    {L_AUTHOR}: <a href="{recent_topic_row.U_POSTER}" title="{L_VIEW_AUTHOR}" onMouseOver="document.all.recent_topics.stop()" onMouseOut="document.all.recent_topics.start()">{recent_topic_row.S_POSTER}</a> || {L_TOTAL_REPLIES} [ {recent_topic_row.L_REPLIES} ]&nbsp;&nbsp;&nbsp;&nbsp;.::.&nbsp;&nbsp;&nbsp;&nbsp;
    <!-- END recent_topic_row -->
    </marquee>
    </span>
    </td>
    </tr>
    </table><br />

    #
    #-----[ Close and Save all]----------------------------------------
    #
    # END 
www.islamday.info İslam Bilgi Paylaşım Platformu Destek için Üye olun
http://www.islamday.info
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

Sağolun hocam. Ayrıca imzanda bulletinboardcode hatası var en başında yazıyor bi bak istersen.
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
erggun
Kayıtlı Kullanıcı
Mesajlar: 11
Kayıt: 15.09.2006, 17:21
İletişim:

Mesaj gönderen erggun »

Merhaba. BU kod ile Yazılar soldan sağa gidiy bunu nasıl sağdan Sola yapabiliriz acaba bide çok yavaş.. hızlandırmak için ne yapmamız lzım ??*
hackxien
Kayıtlı Kullanıcı
Mesajlar: 175
Kayıt: 24.04.2006, 01:03
İletişim:

Mesaj gönderen hackxien »

templates/subSilver/overall_header.tpl burda değiştirdiğin kodda " <marquee id="recent_topics" behavior="scroll" direction="right" scrolldelay="50" scrollamount="2">" bu bölümü bulup "direction="right" kısmını left;"scrollamount="2" kısmını 3 veya daha fazla sayı yazarsan hızın artar"..;)
Bana da beklerim..;) http://www.siberpaylasim.com & Hosting Hizmetlerimiz Mevcuttur. http://www.spreseller.com
erggun
Kayıtlı Kullanıcı
Mesajlar: 11
Kayıt: 15.09.2006, 17:21
İletişim:

Mesaj gönderen erggun »

Evet ya Dün Kurcalarken gördüm. SaoL..
taneru
Kayıtlı Kullanıcı
Mesajlar: 2
Kayıt: 18.09.2006, 12:47
İletişim:

Mesaj gönderen taneru »

selam arkadaşlar

modu kurdum ancak üstte bir sorun var sanırım. Bir bakabilirseniz sevinirim.

Site
Kullanıcı avatarı
nuhsalih
Kayıtlı Kullanıcı
Mesajlar: 108
Kayıt: 28.02.2006, 14:00
İletişim:

Mesaj gönderen nuhsalih »

evet hocam yanlıs yere eklemissin kodları dikkatli bakarmısın ekledigin yerlere
www.islamday.info İslam Bilgi Paylaşım Platformu Destek için Üye olun
http://www.islamday.info
taneru
Kayıtlı Kullanıcı
Mesajlar: 2
Kayıt: 18.09.2006, 12:47
İletişim:

Mesaj gönderen taneru »

doğru baştan aldım yüklemeyi ama bu sefer de iki tane kayan yazı bloğu var.. bir fikrin var mı.. tema "aqua"

alakası olabilir mi

Kod: Tümünü seç

<div align="center">
<div style="width:90%">
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="90%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"><img src="templates/aqua/images/loingl.gif"><a name="login"></a></td>
<td align="center" background="templates/aqua/images/loingm.gif"><span class="cattitle">{L_LOGIN_LOGOUT}</span><br>
<span class="gensmall">{L_USERNAME}: <input class="post" type="text" name="username" size="10" />
&nbsp;&nbsp;&nbsp;{L_PASSWORD}: <input class="post" type="password" name="password" size="10" maxlength="32" />
&nbsp;&nbsp;&nbsp;&nbsp;{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" />
&nbsp;&nbsp;&nbsp; <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span></td>
<td width="20" align="right"><img src="templates/aqua/images/loingr.gif"></td>
</tr>
</table>
</form></div>
<!-- END switch_user_logged_out -->
</div>
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%">
<span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span>
</td>
<td width="50%" align="right">
<img src="templates/aqua/images/aqua_button01.gif" align="absmiddle">
<span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a>
<a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a>
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a>
<a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a>
</span>
</td>
</tr>
</table>
<table width="90%" align="center" cellpadding="1" cellspacing="1" border="0" class="forumline">
<!-- BEGIN catrow -->
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" background="templates/aqua/images/aquatbm.gif">
<tr align="center" background="templates/aqua/images/aquatbm.gif"> 
<td width="33%" height="22" align="left"><img src="templates/aqua/images/aquatbl.gif" width="22" height="22"></td>
<td width="33%" height="22" align="center"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td width="33%" height="22" align="right"><img src="templates/aqua/images/aquatbr.gif" width="79" height="22"></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="0" class="forumline">
<tr> 
<th height="22" colspan="2" align="left" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
<th width="50" height="22" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
<th width="50" height="22" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
<th width="130" height="22" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN forumrow -->
<tr> 
<td class="row2" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row2" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span><span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td width="130" height="50" align="center" valign="middle" nowrap="nowrap" class="row2"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table>
<table width="90%" height="22"  border="0" align="center" cellpadding="0" cellspacing="0" background="templates/aqua/images/aquatbdm.gif">
<tr>
<td><img src="templates/aqua/images/aquatbdl.gif"></td>
<td align="right"><img src="templates/aqua/images/aquatbdr.gif"></td>
</tr>
</table>
<br />
<!-- END catrow -->
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" background="templates/aqua/images/aquatbwm.gif">
<tr> 
<td><img src="templates/aqua/images/aquatbwl.gif"></td>
<td valign="top"><a href="{U_VIEWONLINE}"><img src="templates/aqua/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" border="0" /></a><br /><br />
<span class="gensmall">{S_TIMEZONE}</span><br />
<span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}<br />
{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{L_ONLINE_EXPLAIN}
</span><br />
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}</span><br />
<!-- END switch_user_logged_in -->
<span class="gensmall">{CURRENT_TIME}</span><br />
</td>
<td align="right"><img src="templates/aqua/images/aquatbwr.gif"></td>
</tr>
</table>
<br clear="all" />
<table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/aqua/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td>&nbsp;&nbsp;</td>
<td width="20" align="center"><img src="templates/aqua/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td>&nbsp;&nbsp;</td>
<td width="20" align="center"><img src="templates/aqua/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>

Sonrasına ekle kısmında ekleyeceğim yerde fazladan bir satır var. kafamı karıştırdı..
cimbomlu
Kayıtlı Kullanıcı
Mesajlar: 99
Kayıt: 18.04.2007, 15:12
İletişim:

Mesaj gönderen cimbomlu »

Arkadaşlar ben saphire ekledim çokda güzel durdu portalda falan ama benim asıl istediğim blok halinde kayan yazılardı.Burdada arattırdım 1 tane buldum onunda linki kırıktı zannedersem.Bunu kullanırım artık bu günlerde,tekrar teşekkürler

EDİT:Arkadaşlar ya bu kayan yazı güzel hoşta üzerine gelince durmasını istiyorum onu nasıl yapacaz?yani fareyi üstüne getirdiğimizde dursun çektiğimizde devam etsin
Kullanıcı avatarı
divane
Kayıtlı Kullanıcı
Mesajlar: 223
Kayıt: 20.03.2007, 23:09
İletişim:

Mesaj gönderen divane »

cimbomlu yazdı:Arkadaşlar ben saphire ekledim çokda güzel durdu portalda falan ama benim asıl istediğim blok halinde kayan yazılardı.Burdada arattırdım 1 tane buldum onunda linki kırıktı zannedersem.Bunu kullanırım artık bu günlerde,tekrar teşekkürler

EDİT:Arkadaşlar ya bu kayan yazı güzel hoşta üzerine gelince durmasını istiyorum onu nasıl yapacaz?yani fareyi üstüne getirdiğimizde dursun çektiğimizde devam etsin
marquee tag'inin içine

Kod: Tümünü seç

onmouseover=this.stop() onmouseout=this.start()
ekleyin..
Kilitli

“2.0.x PreMODlar & Yapım aşamasındaki MODlar” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 4 misafir