Simple Machines Community Forum

SMF Support => Language Specific Support => العربية (Arabic) => Topic started by: D.S on November 08, 2010, 02:15:22 PM

Title: help
Post by: D.S on November 08, 2010, 02:15:22 PM
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'];
Title: Re: help
Post by: D.S on November 09, 2010, 06:22:41 PM
شكلها صعبة او ما حدا بدو اساعد

ناقشونا يا جماعة
Title: Re: help
Post by: صلاح الدين on November 10, 2010, 01:10:10 PM
سأحاول ان لم تكن مستعجل أخي العزيز
Title: Re: help
Post by: D.S on November 10, 2010, 03:37:00 PM
شكر على الرد وانا بالانتظار وانشالله خير