02.08.2006, 11:51
Ist es irgendwie Machbar das man ein Forum so einrichten kann das der Starter eines Themas das Thema auch wieder schließne kann??
Also diese nur in einem Forum??
Also diese nur in einem Forum??
if($ismod)
{
eval("\$inlinemod = \"".$templates->get("showthread_inlinemoderation")."\";");
eval("\$moderationoptions = \"".$templates->get("showthread_moderationoptions")."\";");
}
//--YAST--MOD--Start//
if($fid == 'FORENID' AND $mybb->user['uid'] == $thread['uid'])
{
$closemod="<form action=\"moderation.php\" method=\"get\" style=\"margin-top: 0; margin-bottom: 0;\">
<input type=\"hidden\" name=\"tid\" value=\"".$tid."\" /><span class=\"smalltext\">
<select name=\"action\" onchange=\"window.location=('moderation.php?action='+this.options[this.selectedIndex].value+'&tid=".$tid."')\">
<option value=\"openclosethread\">".$lang->open_close_thread."</option>
</select>".$gobutton."</form>";
}
//--YAST--MOD--Ende//
// Open or close a thread
case "openclosethread":
if(ismod($fid, "canopenclosethreads") != "yes")
{
nopermission();
}
// Open or close a thread
case "openclosethread":
//--YAST--MOD--Start//
if(ismod($fid, "canopenclosethreads") != "yes" AND ($fid != 'FORENID' OR $mybb->user['uid'] != $thread['uid']))
//--YAST--MOD--Ende//
{
nopermission();
}
<html>
<head>
<title>$thread[subject]</title>
$headerinclude
</head>
<body>
$header
<table width="$theme[tablewidth]" align="center" cellspacing="0" cellpadding="0"><tr>
<td align="left" valign="bottom">$multipage</td>
<td align="right">$newreply$newthread</td></tr></table>
<span class="smalltext"><br /></span>
$pollbox
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>$rating $thread[subject]</strong></td>
</tr>
<tr>
<td class="tcat" width="15%"><span class="smalltext"><strong>$lang->author</strong></span></td>
<td class="tcat" width="85%"><span class="smalltext"><strong>$lang->message</strong></span></td>
</tr>
$posts
$threadpages
<tr>
<td colspan="2" class="tfoot">
<div style="float: right;"><strong>« <a href="showthread.php?tid=$tid&action=nextoldest">$lang->next_oldest</a> | <a href="showthread.php?tid=$tid&action=nextnewest">$lang->next_newest</a> »</strong></div>
<div><strong><a href="showthread.php?mode=threaded&tid=$tid&pid=$pid#pid$pid">$lang->threaded</a> | <a href="showthread.php?mode=linear&tid=$tid&pid=$pid#pid$pid">$lang->linear</a></strong></div>
</td>
</tr>
</table>
$threadexbox
<br />
<table width="$theme[tablewidth]" align="center" cellspacing="0" cellpadding="0"><tr>
<td>$newreply$newthread</td></tr></table>
$quickreply
$moderationoptions
[color=red][b]$closemod[/b][/color]
$similarthreads
<br />
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<tr>
<td class="trow1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" align="left"><span class="smalltext">
<a href="printthread.php?tid=$tid">$lang->view_printable</a><br />
<a href="sendthread.php?tid=$tid">$lang->send_thread</a><br />
<a href="usercp2.php?action=addsubscription&tid=$tid">$lang->subscribe_thread</a> | <a href="usercp2.php?action=addfavorite&tid=$tid">$lang->add_favorites</a></span></td>
<td valign="middle" align="right">
$ratethread
<br />
$forumjump
</td></tr>
</table>
</td></tr>
</table>
$footer
</body>
</html>