2008-01-19, 01:56 PM
استبدل التالى بمحتوى القالب المذكور اعلاه
ثم فى ملف global.php الموجود داخل مجلد المنتدى ابحث عن
اضف بعده التالى
كود :
<div class="menu" align="center">
<ul>
<table align="center">
<tr align="center">
<td class="topmenu" width="1%"><a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a></td>
<td class="topmenu" width="1%"><a href="$settings[bburl]/misc.php?action=help">$lang->toplinks_help</a></td>
<td class="topmenu" width="1%"><a href="$settings[bburl]/memberlist.php">$lang->toplinks_memberlist</a></td>
<td class="topmenu" width="1%"><a href="$settings[bburl]/calendar.php">$lang->toplinks_calendar</a></td>
<td class="topmenu" width="1%"><a href="search.php?action=getnew">$lang->welcome_newposts</a></td>
<td class="topmenu" width="1%"><a href="$settings[bburl]/search.php">$lang->toplinks_search</a></td>
</tr>
</table>
</ul>
</div>
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<tr>
<td class="trow1" width="60%" rowspan="2"><navigation></td>
<td width="30%" class="trow2" style="font-size:11px">
<form action="member.php" method="post">
<input type="hidden" name="url" value="{$redirect_url}" />
<input type="hidden" name="action" value="do_login" />
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong>{$lang->username}</strong></td>
<td><input type="text" size="18"class="textbox" name="username" title="{$lang->login_username}" value="{$lang->login_username}" onFocus="this.value=''" /></td>
</tr>
<tr>
<td><strong>{$lang->password}</strong></td>
<td><input type="password" size="20" class="textbox" name="password" title="{$lang->login_password}" value="{$lang->login_password}" onFocus="this.value=''" /><input type="submit" class="button" name="submit" value="{$lang->login}" /></td>
</tr>
</table>
</form></td>
</tr>
</table>
ثم فى ملف global.php الموجود داخل مجلد المنتدى ابحث عن
PHP كود :
$plugins->run_hooks("global_start");
PHP كود :
if($mybb->input['url'] && !preg_match("/^(member\.php)?([^\?action=login]+)/i", $mybb->input['url']))
{
$redirect_url = htmlentities($mybb->input['url']);
}
else
{
$domain = $_SERVER['HTTP_HOST'];
$path = $_SERVER['SCRIPT_NAME'];
$queryString = $_SERVER['QUERY_STRING'];
$redirect_url = htmlentities("http://" . $domain . $path . "?" . $queryString);
}