omraan
12-29-2008, 08:28 AM
منبع این کد فقط: <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
میباشد
ابتدا این کدو پیدا کنید:
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/subon.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/suboff.gif" alt="' . $txt[334] . '"/>' . $child['link']; }
echo '
<table dir="rtl" style="10px;"width="100%" cellspacing="0" cellpadding="0"border="0">
<tr>
<br><font style="font-size: 8pt;"><i><b>', $txt['parent_boards'], ':</b></i></font><td class="middletext" valign="middle"align="center">';
$child_counter = 0;
echo '
</td>
<td class="smalltext" valign="middle">';
for(; $child_counter < count($children); $child_counter++)
echo $children[$child_counter], '&nbsp;&nbsp;&nbsp;';
echo '
</td>
</tr>
</table>';
}
حذفش کنید و این کدو بجاش قرار بدین:
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/subon.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/suboff.gif" alt="' . $txt[334] . '"/>' . $child['link']; }
echo '
<table dir="rtl" style="15px;"width="100%" cellspacing="0" cellpadding="0"border="0">
<tr>
<br><i><p align="right">', $txt['parent_boards'], ':</p></i><td class="middletext" valign="middle"align="center">';
$child_counter = 0;
if(empty($settings['child_boards_rows']))
{
echo '
</td><br>
<td class="middletext" valign="top">';
for(; $child_counter < ceil(count($children)/2); $child_counter++)
echo $children[$child_counter], '<br/>';
}
echo '
</td>
<td class="middletext" valign="top">';
for(; $child_counter < count($children); $child_counter++)
echo $children[$child_counter], '<br/>';
echo '
</td>
</tr>
</table><br>';
}
به عنوان مثال شما میتونید این کدو روی قالب ویبولتین امتحان کنید
کد هیچ مشکلی نداره
موفق باشید
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
میباشد
ابتدا این کدو پیدا کنید:
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/subon.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/suboff.gif" alt="' . $txt[334] . '"/>' . $child['link']; }
echo '
<table dir="rtl" style="10px;"width="100%" cellspacing="0" cellpadding="0"border="0">
<tr>
<br><font style="font-size: 8pt;"><i><b>', $txt['parent_boards'], ':</b></i></font><td class="middletext" valign="middle"align="center">';
$child_counter = 0;
echo '
</td>
<td class="smalltext" valign="middle">';
for(; $child_counter < count($children); $child_counter++)
echo $children[$child_counter], '&nbsp;&nbsp;&nbsp;';
echo '
</td>
</tr>
</table>';
}
حذفش کنید و این کدو بجاش قرار بدین:
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/subon.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/suboff.gif" alt="' . $txt[334] . '"/>' . $child['link']; }
echo '
<table dir="rtl" style="15px;"width="100%" cellspacing="0" cellpadding="0"border="0">
<tr>
<br><i><p align="right">', $txt['parent_boards'], ':</p></i><td class="middletext" valign="middle"align="center">';
$child_counter = 0;
if(empty($settings['child_boards_rows']))
{
echo '
</td><br>
<td class="middletext" valign="top">';
for(; $child_counter < ceil(count($children)/2); $child_counter++)
echo $children[$child_counter], '<br/>';
}
echo '
</td>
<td class="middletext" valign="top">';
for(; $child_counter < count($children); $child_counter++)
echo $children[$child_counter], '<br/>';
echo '
</td>
</tr>
</table><br>';
}
به عنوان مثال شما میتونید این کدو روی قالب ویبولتین امتحان کنید
کد هیچ مشکلی نداره
موفق باشید