Dears
Would you please to help me for add this codes to my theme because I spent a long time for that but I failed to do that :-\
thank you for advice
SMF Version : 1.1.12
Theme : Dilber MC
Mod Name: View Only Boards
http://custom.simplemachines.org/mods/index.php?mod=610
my files in attachment
Codes
BoardIndex.template.php
FIND
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
REPLACE WITH
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', ($board['last_post']['protected'] ? '<span class="vob_protected">' . (empty($modSettings['vob_allowMessageIndexView']) ? $txt['vob_protected'] : $board['last_post']['member']['link']) . '</span>' : $board['last_post']['member']['link']) , '<br />
', $txt['smf88'], ' ', ( $board['last_post']['protected'] ? '<span class="vob_protected">' . (empty($modSettings['vob_allowMessageIndexView']) ? $txt['vob_protected'] : $board['last_post']['link']) . '</span>' : $board['last_post']['link'] ), '<br />
', $txt[30], ' ', $board['last_post']['time'];
FIND
foreach ($category['boards'] as $board)
{
echo '
<tr>
REPLACE WITH
foreach ($category['boards'] as $board)
{
echo '
<tr ' , $board['protected'] ? 'style="vob_protected"' : '' , '>
FIND
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
REPLACE WITH
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['protected'] ? '<span class="vob_protected">' . $child['link'] . '</span>' : $child['link'];
FIND
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext">
REPLACE WITH
<b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
<div class="smalltext', $context['latest_post']['protected'] ? ' vob_protected' : '' ,'">
FIND
foreach ($context['latest_posts'] as $post)
echo '
<tr>
REPLACE WITH
foreach ($context['latest_posts'] as $post)
echo '
<tr ' , $post['board']['protected'] ? 'class="vob_protected"' : '' , '>
...
MessageIndex.template.php
FIND
foreach ($context['boards'] as $board)
{
echo '
<tr>
REPLACE WITH
foreach ($context['boards'] as $board)
{
echo '
<tr ' , $board['protected'] ? 'style="vob_protected"' : '' , '>
FIND
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
REPLACE WITH
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', ($board['last_post']['protected'] ? '<span class="vob_protected">' . (empty($modSettings['vob_allowMessageIndexView']) ? $txt['vob_protected'] : $board['last_post']['member']['link']) . '</span>' : $board['last_post']['member']['link']) , '<br />
', $txt['smf88'], ' ', ( $board['last_post']['protected'] ? '<span class="vob_protected">' . (empty($modSettings['vob_allowMessageIndexView']) ? $txt['vob_protected'] : $board['last_post']['link']) . '</span>' : $board['last_post']['link'] ), '<br />
', $txt[30], ' ', $board['last_post']['time'];
FIND
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
REPLACE WITH
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['protected'] ? '<span class="vob_protected">' . $child['link'] . '</span>' : $child['link'];
شكلها صعبة او ما حدا بدو اساعد
ناقشونا يا جماعة
سأحاول ان لم تكن مستعجل أخي العزيز
شكر على الرد وانا بالانتظار وانشالله خير