modu indir kur:
boardindex.tempalte.php de bu kodu bul:
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
bununla değiştir:
<td class="windowbg2"', $board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' : '' , '>
<b><a href="', $board['href'], '" name="b', $board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' . $board['redirect_target'] . '"' : '' , '>', $board['name'], '</a></b><br />
bu kodu bul::
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>
altaki ile değiş:
// Show some basic information about the number of posts, etc.
echo '
</td>';
if(!$board['is_redirect'] || !$modSettings['redirect_hide_columns'])
{
echo '
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">';
if($board['is_redirect'])
{
/* We're not hiding columns, but this is a redirection board and we can't have posts
or topics, so just show "--" instead (ala IPB) */
echo '--';
}
else
{
echo '
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330];
}
echo '
</span></td>';
}
echo '
bul:
if (!empty($board['last_post']['id']))
değiştir:
if (!empty($board['last_post']['id']) && !$board['is_redirect'])
bul:
echo '
</span>
</td>
</tr>';
öncesine ekle:
elseif ($board['is_redirect'])
{
if($board['redirect_count_clicks'])
{
// How many redirected clicks? We have to be grammatically correct, you know ;)
echo ($board['redirect_clicks'] == 1 ? $txt['redirected_click'] : '<b>' . $board['redirect_clicks'] . '</b> ' . $txt['redirected_clicks']);
}
else
{
// For now, just show this filler text. I'll probably do more with this in the next version...
echo 'N/A';
}
}
ManageBoards.template.phpde
bu kodu bul:
function template_modify_board()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
altına ekle:
echo '
<script type="text/javascript" language="javascript">
function toggleredirect()
{
// Quick shortcut to detect IE...';
if($context['browser']['is_ie'])
echo "\n var is_ie = true;";
else
echo "\n var is_ie = false;";
echo '
if(document.getElementById("enable_redirect") != null)
{
if(document.getElementById("enable_redirect").checked)
{
// IE doesn\'t support table-row...
if(is_ie)
{
document.getElementById("tr_redirect_count_clicks").style.display = "block";
document.getElementById("tr_redirect_reset_clicks").style.display = "block";
document.getElementById("tr_redirect_url").style.display = "block";
document.getElementById("tr_redirect_target").style.display = "block";
}
else
{
document.getElementById("tr_redirect_count_clicks").style.display = "table-row";
document.getElementById("tr_redirect_reset_clicks").style.display = "table-row";
document.getElementById("tr_redirect_url").style.display = "table-row";
document.getElementById("tr_redirect_target").style.display = "table-row";
}
}
else
{
document.getElementById("tr_redirect_count_clicks").style.display = "none";
document.getElementById("tr_redirect_reset_clicks").style.display = "none";
document.getElementById("tr_redirect_url").style.display = "none";
document.getElementById("tr_redirect_target").style.display = "none";
}
}
}
</script>';
bul:
// Finish off the table.
öncesine ekle:
// Redirection boards settings...
echo '
<tr>
<td>
<b>', $txt['redirect_enable'], '</b> (<a href="', $scripturl, '?action=helpadmin;help=redirect_enable" onclick="return reqWin(this.href);">?</a>)<br />
', $txt['redirect_enable_desc'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" id="enable_redirect" name="enable_redirect"', $context['board']['is_redirect'] ? ' checked="checked"' : '', ' class="check" onclick="toggleredirect();" />
</td>
</tr><tr id="tr_redirect_count_clicks" style="display:', ($context['board']['is_redirect'] && $context['browser']['is_ie']) ? 'block' : $context['board']['is_redirect'] ? 'table-row' : 'none', '">
<td>
<b>', $txt['redirect_count_clicks'], '</b><br />
', $txt['redirect_count_clicks_desc'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="count_clicks"', $context['board']['count_clicks'] ? ' checked="checked"' : '' , ' class="check" />
</td>
</tr><tr id="tr_redirect_reset_clicks" style="display:', ($context['board']['is_redirect'] && $context['browser']['is_ie']) ? 'block' : $context['board']['is_redirect'] ? 'table-row' : 'none', '">
<td>
<b>', $txt['redirect_reset_clicks'], '</b><br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="reset_clicks" class="check" />
</td>
</tr><tr id="tr_redirect_url" style="display:', ($context['board']['is_redirect'] && $context['browser']['is_ie']) ? 'block' : $context['board']['is_redirect'] ? 'table-row' : 'none', '">
<td>
<b>', $txt['redirect_location'], '</b><br /><br />
</td>
<td valign="top" align="right">
<input type="text" name="redirect_url" value="', $context['board']['url'], '" size="50" />
</td>
</tr><tr id="tr_redirect_target" style="display:', ($context['board']['is_redirect'] && $context['browser']['is_ie']) ? 'block' : $context['board']['is_redirect'] ? 'table-row' : 'none', '">
<td>
<b>', $txt['redirect_target'], '</b> (<a href="', $scripturl, '?action=helpadmin;help=redirect_target" onclick="return reqWin(this.href);">?</a>)<br />
', $txt['redirect_target_desc'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="text" name="redirect_target" value="', $context['board']['target'], '" />
</td>
</tr>';
bul:
</tr><tr class="windowbg2">
<td align="right" colspan="2">
öncesine ekle:
</tr><tr class="windowbg2">
<th width="50%" align="right"><label for="redirect_hide_columns">', $txt['redirect_hide_columns'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=redirect_hide_columns" onclick="return reqWin(this.href);">?</a>)</span>:</th>
<td>
<input type="checkbox" name="recycle_enable" id="redirect_hide_columns_check"', empty($modSettings['redirect_hide_columns']) ? '' : ' checked="checked"', ' class="check" />
</td>
MessageIndex.template.phpde
bul:
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
değiş:
<td class="windowbg2"', $board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' : '', '>
<b><a href="', $board['href'], '" name="b', $board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' . $board['redirect_target'] . '"' : '' , '>', $board['name'], '</a></b><br />
bul:
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><small>
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '</small>
</td>
değiş.:
// Show some basic information about the number of posts, etc.
echo '
</td>';
if(!$board['is_redirect'] || !$modSettings['redirect_hide_columns'])
{
echo '
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><small>';
if($board['is_redirect'])
{
echo '--';
}
else
{
echo '
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330];
}
echo '
</small>
</td>';
}
echo '
bul:
if (!empty($board['last_post']['id']))
değiş:
if (!empty($board['last_post']['id']) && !$board['is_redirect'])
bul:
echo '</small>
</td>
</tr>';
öncesine ekle:
elseif ($board['is_redirect'])
{
if($board['redirect_count_clicks'])
{
echo ($board['redirect_clicks'] == 1 ? $txt['redirected_click'] : '<b>' . $board['redirect_clicks'] . '</b> ' . $txt['redirected_clicks']);
}
else
{
echo 'N/A';
}
}
Help.english.phpde
en alta ekle:
$helptxt['redirect_target'] = 'The window to open the target URL in. You only need to set this if you don\'t want redirection board to
open in the same window or frame. Target may the name of a window or one of the following:<br />
_blank - open in a new window<br />
_parent - open in the parent frameset<br />
_self - open in the same frame<br />
_top - open in the same window, breaking out of frames';
$helptxt['enable_redirect'] = 'Whether or not to make this a redirection board. A redirection board is a board that sends the user to
another URL when they open it. <b>Note:</b> Please make sure this board is empty and does not have
any child boards before making it into a redirection board. Also note that anyone can access the
redirection board through a direct URL, even if they aren\'t actually allowed to view that board...';
$helptxt['redirect_hide_columns'] = 'If selected, this will hide the information about the number of posts and topics in a board for redirection boards.
For the default theme, this hides the "X posts Y topics" column. For the babylon theme, the "X posts in Y topics" column is hidden, and in the classic theme, the "posts" and "topics" columns are hidden. "--" is displayed instead if this is not selected.';
Modifications.english.phpde
en alta ekle:
$txt['redirected_click'] = '<b>1</b> redirected click';
$txt['redirected_clicks'] = ' redirected clicks';
$txt['redirect_count_clicks'] = 'Count all clicks?';
$txt['redirect_count_clicks_desc'] = 'This will keep track of how many times the board redirects your users';
$txt['redirect_enable'] = 'Make this board a redirection board';
$txt['redirect_enable_desc'] = 'This will redirect any user attempting to access this board to a URL of your choice';
$txt['redirect_location'] = 'URL to redirect user to';
$txt['redirect_hide_columns'] = 'Hide "posts" and "topics" for redirection boards';
$txt['redirect_no_child'] = 'Redirection boards can\'t have child boards!';
$txt['redirect_no_url'] = 'Redirection boards must have a URL!';
$txt['redirect_reset_clicks'] = 'Reset click count';
$txt['redirect_reset_clicks_desc'] = 'This will reset the click count to 0.';
$txt['redirect_target'] = 'Target for the URL';
$txt['redirect_target_desc'] = 'The target for the redirection link (ie _blank)';
oooy bitti.