1.2.x Moderatör Bloğu Renkli

Düzenleme yapacağınız dosyaların yedeğini almayı unutmayınız.

——————————
inc/functions_forumlist.php
——————————

Bul:

Kod:

$moderators .= “$comma<a href=\”member.php?action=profile&uid=$moderator[uid]\”>”.$moderator[‘username’].”</a>”;
$comma = “, “;

Değiştir:

Kod:

$moderators .= “{$comma}<a href=\”member.php?action=profile&amp;uid={$moderat or[‘uid’]}\”> “.format_name($moderator[‘username’], $moderator[‘usergroup’], $moderator[‘displaygroup’]).”</a>”;
$comma = “<br> “;

——————————
index.php
——————————

Bu Kodu Bul:

Kod:

// Get the forum moderators if the setting is enabled.
if($mybb->settings[‘modlist’] != “off”)
{
$query = $db->query(”
SELECT m.uid, m.fid, u.username
FROM “.TABLE_PREFIX.”moderators m
LEFT JOIN “.TABLE_PREFIX.”users u ON (m.uid=u.uid)
ORDER BY u.username
“);

Bunla Değiştir:

Kod:

// Get the forum moderators if the setting is enabled.
if($mybb->settings[‘modlist’] != “off”)
{
$query = $db->query(”
SELECT m.uid, m.fid, u.username, u.usergroup, u.displaygroup
FROM “.TABLE_PREFIX.”moderators m
LEFT JOIN “.TABLE_PREFIX.”users u ON (m.uid=u.uid)
ORDER BY u.username
“);


Sıra Geldi Şablonlara

Admin KP –> Şablonlar –> ForumBit Şablonları
forumbit_depth1_cat
Hepsini Silip Aşağıdaki kodları ekleyin

Kod:

<table border=”0″ cellspacing=”{$theme[‘borderwidth’]}” cellpadding=”{$theme[‘tablespace’]}” class=”tborder”>
<thead>
<tr>
<td class=”thead” colspan=”7″>
<div class=”expcolimage”><img src=”{$theme[‘imgdir’]}/{$expcolimage}” id=”cat_{$forum[‘fid’]}_img” class=”expander” alt=”{$expaltext}” /></div>
<div><strong><a href=”forumdisplay.php?fid={$forum[‘fid’]}”>{$forum[‘name’]}</a></strong><br /><div class=”smalltext”>{$forum[‘description’]}</div></div>
</td>
</tr>
</thead>
<tbody style=”{$expdisplay}” id=”cat_{$forum[‘fid’]}_e”>
<tr>
<td class=”tcat” width=”35″>&nbsp;</td>
<td class=”tcat” width=”59%”><strong>{$lang->forumbit_forum}</strong></td>
<td class=”tcat” width=”65″ align=”center” style=”white-space: nowrap”><strong>Konular</strong></td>
<td class=”tcat” width=”65″ align=”center” style=”white-space: nowrap”><strong>Mesajlar</strong></td>
<td class=”tcat” width=”200″ align=”center”><strong>{$lang->forumbit_lastpost}</strong></td>
<td class=”tcat” width=”20″ align=”center”><b> Moderatör </b></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />

forumbit_depth2_forum (Yenilendi Kodlar)
Hepsini Silip Aşağıdaki kodları ekleyin

Kod:

<tr>
<td class=”trow1 align=”center” valign=”middle”><img src=”{$theme[‘imgdir’]}/{$lightbulb[‘folder’]}.gif” alt=”{$lightbulb[‘altonoff’]}” title=”{$lightbulb[‘altonoff’]}” /></td>
<td height=”50″ class=”trow2″ valign=”middle” style=”margin: auto;”>
<strong><a href=”forumdisplay.php?fid={$forum[‘fid’]}”><font style=”font-size:12px; font-family:verdana, geneva, lucida, ‘lucida grande’, arial, helvetica, sans-serif;”>{$forum[‘name’]}</font></a></strong><div class=”smalltext”>{$forum[‘description’]}{$modlist}{$subforums}</div>
</td><td class=”trow1″ valign=”top” align=”center” style=”white-space: nowrap”>{$threads}{$unapproved[‘unapproved_threads’]}</td>
<td class=”trow1″ valign=”top” align=”center” style=”white-space: nowrap”>{$posts}{$unapproved[‘unapproved_posts’]}</td>
<td class=”trow2″ valign=”top” align=”left” style=”white-space: nowrap”><table width=”230″> $lastpost</table></td>
<td height=”50″ width=”80″ class=”trow1″ valign=”middle” align=”center” style=”white-space: nowrap”>{$moderators}</td>
</tr>

forumbit_moderators açın silin kaydedin

Edit:

Ek Olarak
Aşağıda ki Şablonu Aç
Forum Görünümü Şablonlar—>forumdisplay_subforums
Tüm Kodları silip
Aşağıda ki kodları ekleyin

Kod:

<table border=”0″ cellspacing=”$theme[borderwidth]” cellpadding=”$theme[tablespace]” class=”tborder”>
<tr>
<td class=”thead” colspan=”7″ align=”center”><strong>$lang->sub_forums_in</strong></td>
</tr>
<tr>
<td class=”tcat” width=”35″>&nbsp;</td>
<td class=”tcat” width=”65%”><strong>$lang->forumbit_forum</strong></td>
<td class=”tcat” width=”50″ align=”center” nowrap=”nowrap”><strong>$lang->forumbit_threads</strong></td>
<td class=”tcat” width=”50″ align=”center” nowrap=”nowrap”><strong>$lang->forumbit_posts</strong></td>
<td class=”tcat” width=”200″ align=”center”><strong>$lang->forumbit_lastpost</strong></td>
<td class=”tcat” width=”20″ align=”center”><b> Moderatör </b></td>
</tr>
$forums
</table>
<br />

Bir Cevap Yazın

Aşağıya bilgilerinizi girin veya oturum açmak için bir simgeye tıklayın:

WordPress.com Logosu

WordPress.com hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Twitter resmi

Twitter hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Facebook fotoğrafı

Facebook hesabınızı kullanarak yorum yapıyorsunuz. Çıkış  Yap /  Değiştir )

Connecting to %s