Original von rellek
Kannst du mir ggf. mal verratewn, welche Serversoftware (PHP und MySQL) du einsetzt?
if($qr_activate == "1" && $qr_guest_pass == "1" && $qr_permission_pass == "1" && $show_qr == "1" && $qr_nsr_pass == "1" && $qr_boardpass == "1" && $qr_userpass == "1") eval ("\$quickreply = \"".$tpl->get("thread_quickreply")."\";");
if($qr_activate == "1" && $qr_guest_pass == "1" && $qr_permission_pass == "1" && $show_qr == "1" && $qr_nsr_pass == "1" && $qr_boardpass == "1" && $qr_userpass == "1") {
// JGS-XA.de START
require("./jgs_threadtext_include.php");
// JGS-XA.de ENDE
eval ("\$quickreply = \"".$tpl->get("thread_quickreply")."\";");
}
<li><input type="checkbox" id="checkbox_checklength" onclick="checklength(document.bbform); this.checked = false;" value="0" /><label for="checkbox_checklength"><b> {$lang->items['LANG_POSTINGS_CHECKLENGTH']}</b></label></li>
<!-- JGS-XA.de ThreadTextAddon Start -->
$jgs_threadtext_include_code
<!-- JGS-XA.de ThreadTextAddon Ende -->
Das müsstest du äquivalent zu dem Code in dem Template addreply einbauen..
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | {$lang->items['LANG_USERCP_TITLE']} | {$lang->items['LANG_USERCP_OPTIONS_CHANGE']}</title>
$headinclude
</head>
<body>
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tablea_fc">
<td align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a> » <a href="usercp.php{$SID_ARG_1ST}">{$lang->items['LANG_USERCP_TITLE']}</a> » {$lang->items['LANG_USERCP_OPTIONS_CHANGE']}</b></span></td>
<td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
</tr>
</table></td>
</tr>
</table><br />
<form action="usercp.php" method="post">
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" style="width:{$style['tableinwidth']}">
<tr>
<td class="tablecat" align="left" colspan="2"><span class="normalfont"><b>{$lang->items['LANG_USERCP_OPTIONS_CHANGE']}</b></span></td>
</tr>
<tr>
<td class="tabletitle" align="left" colspan="2"><span class="smallfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_SECURIRY']}</b></span></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_INVISIBLE']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_INVISIBLE_DESC']}</span></td>
<td class="tableb"><select name="r_invisible">
<option value="1"$invisible[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$invisible[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_USECOOKIES']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_USECOOKIES_DESC']}</span></td>
<td class="tablea"><select name="r_usecookies">
<option value="1"$usecookies[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$usecookies[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tabletitle" colspan="2"><span class="smallfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_MESSAGING']}</b></span></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_ADMINCANEMAIL']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_ADMINCANEMAIL_DESC']}</span></td>
<td class="tableb"><select name="r_admincanemail">
<option value="1"$admincanemail[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$admincanemail[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_SHOWEMAIL']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_SHOWEMAIL_DESC']}</span></td>
<td class="tablea"><select name="r_showemail">
<option value="0"$showemail[0]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="1"$showemail[1]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_USERCANEMAIL']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_USERCANEMAIL_DESC']}</span></td>
<td class="tableb"><select name="r_usercanemail">
<option value="1"$usercanemail[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$usercanemail[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_EMAILNOTIFY']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_EMAILNOTIFY_DESC']}</span></td>
<td class="tablea"><select name="r_emailnotify">
<option value="1"$emailnotify[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$emailnotify[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_NOTIFICATIONPERPM']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_NOTIFICATIONPERPM_DESC']}</span></td>
<td class="tableb"><select name="r_notificationperpm">
<option value="1"$notificationperpm[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$notificationperpm[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_RECEIVEPM']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_RECEIVEPM_DESC']}</span></td>
<td class="tablea"><select name="r_receivepm">
<option value="1"$receivepm[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$receivepm[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_EMAILONPM']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_EMAILONPM_DESC']}</span></td>
<td class="tableb"><select name="r_emailonpm">
<option value="1"$emailonpm[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$emailonpm[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_PMPOPUP']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_PMPOPUP_DESC']}</span></td>
<td class="tablea"><select name="r_pmpopup">
<option value="1"$spmpopup[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$spmpopup[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<if($wbbuserdata['isgroupleader'])>
<then>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_USERCP_OPTIONS_EMAILONAPPLICATION']}</b></span><br /><span class="smallfont">{$lang->items['LANG_USERCP_OPTIONS_EMAILONAPPLICATION_DESC']}</span></td>
<td class="tableb"><select name="r_emailonapplication">
<option value="1"$emailonapplication[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$emailonapplication[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
</then>
</if>
<tr align="left">
<td class="tabletitle" colspan="2"><span class="smallfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_BOARDVIEW']}</b></span></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_SHOWSIGNATURES']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_SHOWSIGNATURES_DESC']}</span></td>
<td class="tablea"><select name="r_showsignatures">
<option value="1"$showsignatures[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$showsignatures[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_SHOWAVATARS']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_SHOWAVATARS_DESC']}</span></td>
<td class="tableb"><select name="r_showavatars">
<option value="1"$showavatars[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$showavatars[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_SHOWIMAGES']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_SHOWIMAGES_DESC']}</span></td>
<td class="tablea"><select name="r_showimages">
<option value="1"$showimages[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$showimages[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_DAYSPRUNE']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_DAYSPRUNE_DESC']}</span></td>
<td class="tableb"><select name="r_daysprune">
<option value="0"$sdaysprune[0]>{$lang->items['LANG_REGISTER_OPTIONS_BOARDDEFAULT']}</option>
<option value="1500"$sdaysprune[1500]>{$lang->items['LANG_REGISTER_DAYSPRUNE_1500']}</option>
<option value="1"$sdaysprune[1]>{$lang->items['LANG_REGISTER_DAYSPRUNE_1']}</option>
<option value="2"$sdaysprune[2]>{$lang->items['LANG_REGISTER_DAYSPRUNE_2']}</option>
<option value="5"$sdaysprune[5]>{$lang->items['LANG_REGISTER_DAYSPRUNE_5']}</option>
<option value="10"$sdaysprune[10]>{$lang->items['LANG_REGISTER_DAYSPRUNE_10']}</option>
<option value="20"$sdaysprune[20]>{$lang->items['LANG_REGISTER_DAYSPRUNE_20']}</option>
<option value="30"$sdaysprune[30]>{$lang->items['LANG_REGISTER_DAYSPRUNE_30']}</option>
<option value="45"$sdaysprune[45]>{$lang->items['LANG_REGISTER_DAYSPRUNE_45']}</option>
<option value="60"$sdaysprune[60]>{$lang->items['LANG_REGISTER_DAYSPRUNE_60']}</option>
<option value="75"$sdaysprune[75]>{$lang->items['LANG_REGISTER_DAYSPRUNE_75']}</option>
<option value="100"$sdaysprune[100]>{$lang->items['LANG_REGISTER_DAYSPRUNE_100']}</option>
<option value="365"$sdaysprune[365]>{$lang->items['LANG_REGISTER_DAYSPRUNE_365']}</option>
<option value="1000"$sdaysprune[1000]>{$lang->items['LANG_REGISTER_DAYSPRUNE_1000']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_UMAXPOSTS']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_UMAXPOSTS_DESC']}</span></td>
<td class="tablea"><select name="r_umaxposts">
<option value="0"$sumaxposts[0]>{$lang->items['LANG_REGISTER_OPTIONS_BOARDDEFAULT']}</option>
<option value="5"$sumaxposts[5]>{$lang->items['LANG_REGISTER_OPTIONS_UMAXPOSTS_5']}</option>
<option value="10"$sumaxposts[10]>{$lang->items['LANG_REGISTER_OPTIONS_UMAXPOSTS_10']}</option>
<option value="20"$sumaxposts[20]>{$lang->items['LANG_REGISTER_OPTIONS_UMAXPOSTS_20']}</option>
<option value="30"$sumaxposts[30]>{$lang->items['LANG_REGISTER_OPTIONS_UMAXPOSTS_30']}</option>
<option value="40"$sumaxposts[40]>{$lang->items['LANG_REGISTER_OPTIONS_UMAXPOSTS_40']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_THREADVIEW']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_THREADVIEW_DESC']}</span></td>
<td class="tableb"><select name="r_threadview">
<option value="1"$sthreadview[1]>{$lang->items['LANG_REGISTER_OPTIONS_THREADVIEW_THREADED']}</option>
<option value="0"$sthreadview[0]>{$lang->items['LANG_REGISTER_OPTIONS_THREADVIEW_FLAT']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tabletitle" colspan="2"><span class="smallfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_DATE_TIME']}</b></span></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_DATEFORMAT']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_DATEFORMAT_DESC']}</span></td>
<td class="tablea"><span class="normalfont"><input type="text" class="input" name="r_dateformat" value="$r_dateformat" maxlength="10" /></span></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_TIMEFORMAT']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_TIMEFORMAT_DESC']}</span></td>
<td class="tableb"><span class="normalfont"><input type="text" class="input" name="r_timeformat" value="$r_timeformat" maxlength="10" /></span></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_STARTWEEK']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_STARTWEEK_DESC']}</span></td>
<td class="tablea"><select name="r_startweek">
$startweek_options
</select></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_TIMEZONEOFFSET']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_TIMEZONEOFFSET_DESC']}</span></td>
<td class="tableb"><select name="r_timezoneoffset">
$timezone_options
</select></td>
</tr>
<tr align="left">
<td class="tabletitle" colspan="2"><span class="smallfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_OTHER']}</b></span></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_USEWYSIWYG']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_USEWYSIWYG_DESC']}</span></td>
<td class="tablea"><select name="r_usewysiwyg">
<option value="1"$usewysiwyg[1]>{$lang->items['LANG_REGISTER_OPTIONS_YES']}</option>
<option value="0"$usewysiwyg[0]>{$lang->items['LANG_REGISTER_OPTIONS_NO']}</option>
</select></td>
</tr>
<tr align="left">
<td class="tableb"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_STYLE']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_STYLE_DESC']}</span></td>
<td class="tableb"><select name="r_styleid">
$style_options
</select></td>
</tr>
<tr align="left">
<td class="tablea"><span class="normalfont"><b>{$lang->items['LANG_REGISTER_OPTIONS_LANG']}</b></span><br /><span class="smallfont">{$lang->items['LANG_REGISTER_OPTIONS_LANG_DESC']}</span></td>
<td class="tablea"><select name="r_langid">
$lang_options
</select></td>
</tr>
</table>
<p align="center"><input class="input" type="submit" accesskey="S" value="{$lang->items['LANG_POSTINGS_SAVE']}" /> <input class="input" type="reset" accesskey="R" value="{$lang->items['LANG_POSTINGS_RESET']}" /></p>
<if(!$wbbuserdata['isgroupleader'])><then><input type="hidden" name="r_emailonapplication" value="$r_emailonapplication" /></then></if>
<input type="hidden" name="action" value="$action" />
<input type="hidden" name="send" value="send" />
<input type="hidden" name="sid" value="$session[hash]" />
</form>
$footer
</body>
</html>
<script type="text/javascript">
<!--
<if($wbbuserdata['usewysiwyg'] == 1)><then>
function getAppletObject() {
if(document.getElementById('embed_wysiwyg') == null || document.getElementById('embed_wysiwyg').getTextLength == null) return document.getElementById('wysiwyg');
return document.getElementById('embed_wysiwyg');
}
function setAppletText(theForm) {
getAppletObject().setText(theForm.message.value);
}
function getHiddenText() {
return document.bbform.message.value;
}
function smilie(theSmilie) {
getAppletObject().insertSmilie(theSmilie);
}
function submitForm() {
if (validate(document.bbform)) document.bbform.submit();
}
</then>
<else>
tag_prompt = "{$lang->items['LANG_POSTINGS_JS_PROMPT']}";
img_prompt = "{$lang->items['LANG_POSTINGS_JS_PROMPT_IMG']}";
font_formatter_prompt = "{$lang->items['LANG_POSTINGS_JS_PROMPT_FONT']}";
link_text_prompt = "{$lang->items['LANG_POSTINGS_JS_PROMPT_URL_TITLE']}";
link_url_prompt = "{$lang->items['LANG_POSTINGS_JS_PROMPT_URL']}";
link_email_prompt = "{$lang->items['LANG_POSTINGS_JS_PROMPT_EMAIL']}";
list_type_prompt = "{$lang->items['LANG_POSTINGS_JS_PROMPT_LIST_TYPE']}";
list_item_prompt = "{$lang->items['LANG_POSTINGS_JS_PROMPT_LIST_ITEM']}";
</else>
</if>
function getAppletText(theForm) {
<if($wbbuserdata['usewysiwyg'] == 1)><then>
var appletObj = getAppletObject();
if (appletObj != null) {
theForm.message.value = appletObj.getText();
}
</then></if>
}
function resetAppletText() {
<if($wbbuserdata['usewysiwyg'] == 1)><then>
getAppletObject().reset();
</then></if>
}
function getMessageLength(theform) {
<if($wbbuserdata['usewysiwyg'] == 1)><then>
return getAppletObject().getTextLength();
</then>
<else>
return theform.message.value.length;
</else>
</if>
}
<if($filename=="addreply.php" || $filename=="editpost.php")>
<then>
var postmaxchars = $postmaxchars;
function validate(theform) {
getAppletText(theform);
if (theform.message.value=="") {
alert("{$lang->items['LANG_POSTINGS_JS_ERROR2']}");
return false;
}
return messagetolong(theform);
}
</then>
</if>
<if($filename=="calendar.php")>
<then>
var postmaxchars = $eventmaxchars;
function validate(theform) {
getAppletText(theform);
if (theform.message.value=="" || theform.subject.value=="") {
alert("{$lang->items['LANG_CALENDAR_JS_ERROR3']}");
return false;
}
return messagetolong(theform);
}
</then>
</if>
<if($filename=="newthread.php")>
<then>
var postmaxchars = $postmaxchars;
function validate(theform) {
getAppletText(theform);
if (theform.message.value=="" || theform.topic.value=="") {
alert("{$lang->items['LANG_POSTINGS_JS_ERROR1']}");
return false;
}
return messagetolong(theform);
}
</then>
</if>
<if($filename=="usercp.php")>
<then>
var postmaxchars = $wbbuserdata[max_sig_length];
function validate(theform) {
getAppletText(theform);
return messagetolong(theform);
}
</then>
</if>
<if($filename=="pms.php")>
<then>
var postmaxchars = $pmmaxchars;
function validate(theform) {
getAppletText(theform);
if ((theform.recipients.value=="" && theform.recipients_bcc.value=="") || theform.message.value=="" || theform.subject.value=="") {
alert("{$lang->items['LANG_POSTINGS_JS_ERROR3']}");
return false;
}
return messagetolong(theform);
}
</then>
</if>
function checklength(theform) {
if (postmaxchars != 0) message = " {$lang->items['LANG_POSTINGS_JS_MESSAGE_MAXLENGTH']}";
else message = "";
var messageLength = getMessageLength(theform);
alert("{$lang->items['LANG_POSTINGS_JS_MESSAGE_CHECKLENGTH']}" + message);
}
function messagetolong(theform) {
if (postmaxchars != 0) {
var messageLength = getMessageLength(theform);
if (messageLength > postmaxchars) {
alert("{$lang->items['LANG_POSTINGS_JS_MESSAGE_TOLONG']}");
return false;
}
else {
return true;
}
}
else {
return true;
}
}
function changeEditor(theForm, editorID) {
getAppletText(theForm);
theForm.change_editor.value = editorID;
theForm.submit();
}
activeMenu = false;
menuTimerRunning = false;
function toggleMenu(id, toggle) {
if(document.getElementById) {
if(id && toggle) {
element = document.getElementById(id);
status = element.style.display;
if (!status || status == 'undefined' || status == 'none') {
posLeft = getObjectPosLeft(toggle) + 10;
element.style.left = posLeft + 'px';
element.style.top = '0px';
element.style.display = 'block';
<if($wbbuserdata['usewysiwyg'] == 1)><then>
posTop = getObjectPosTop(toggle) + toggle.offsetHeight + 10;
</then><else>
posTop = getObjectPosTop(toggle) - element.offsetHeight - 10;
</else></if>
element.style.top = posTop + 'px';
element.onmouseover = checkMenuTimer;
element.onmouseout = startMenuTimer;
activeMenu = id;
}
else {
element.style.display = 'none';
activeMenu = false;
}
}
else if(activeMenu) {
checkMenuTimer();
document.getElementById(activeMenu).style.display = 'none';
activeMenu = false;
}
}
}
function getObjectPosLeft(element) {
var left = element.offsetLeft;
while((element = element.offsetParent) != null) {
left += element.offsetLeft;
}
return left;
}
function getObjectPosTop(element) {
var top = element.offsetTop;
while((element = element.offsetParent) != null) {
top += element.offsetTop;
}
return top;
}
function checkMenuTimer() {
if(menuTimerRunning) {
clearTimeout(menuTimerRunning);
menuTimerRunning = false;
}
}
function startMenuTimer() {
menuTimerRunning = setTimeout("toggleMenu();", 500);
}
//-->
</script>
<if($wbbuserdata['usewysiwyg'] != 1)><then>
<script type="text/javascript" src="js/bbcode.js"></script>
</then></if>
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | $board[title] | $thread[prefix] $thread[topic]</title>
$headinclude
<link rel="contents" href="board.php?boardid=$boardid{$SID_ARG_2ND}" />
<if($t->pages>1)>
<then>
<link rel="first" href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=1{$SID_ARG_2ND}" />
<link rel="last" href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=$t->pages{$SID_ARG_2ND}" />
<if($t->pages>$t->page)><then><link rel="next" href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=$t->page+1{$SID_ARG_2ND}" /></then></if>
<if($t->page>1)><then><link rel="prev" href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=$t->page-1{$SID_ARG_2ND}" /></then></if>
</then>
</if>
<script type="text/javascript">
<!--
var imageMaxWidth = $picmaxwidth;
var imageMaxHeight = $picmaxheight;
//-->
</script>
<script type="text/javascript" src="js/images.js"></script>
<script type="text/javascript">
<!--
function rating(userid) {
window.open("misc.php?action=userrating&userid="+userid+"{$SID_ARG_2ND_UN}", "moo", "toolbar=no,scrollbars=yes,resizable=yes,width=350,height=205");
}
//-->
</script>
</head>
<body onload="resizeImages();">
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tablea_fc">
<td align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a>$navbar » </b><if($thread['prefix']!="")><then><span class="prefix">$thread[prefix]</span> </then></if><b>$thread[topic]</b></span></td>
<td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
</tr>
</table></td>
</tr>
<tr>
<td class="tabletitle"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tabletitle_fc">
<td align="left"><span class="smallfont"><a href="thread.php?goto=lastpost&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_LASTPOST']}</a> | <a href="thread.php?goto=firstnew_thread&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_FIRST_NEWPOST']}</a></span></td>
<td align="right" valign="top"><span class="smallfont"><a href="print.php?threadid=$threadid&page=$t->page{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_PRINTTHREAD']}</a> | <if($turnoff_formmail==0)><then><a href="formmail.php?threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_SENDTOFRIEND']}</a> |</then></if> <a href="usercp.php?action=addsubscription&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_ADD_FAVORITES']}</a></span></td>
</tr>
</table></td>
</tr>
</table>
<table style="width:{$style['tableinwidth']}">
<tr>
<td align="left" valign="bottom"><span class="smallfont">$t->pagelink</span></td>
<td align="right" valign="bottom"><span class="smallfont">$newthread $addreply</span></td>
</tr>
</table>
$thread_poll
<table cellpadding="0" cellspacing="0" border="0" style="width:{$style['tableinwidth']}" align="center">
<tr>
<td><table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" style="width:100%">
<tr>
<td class="tablecat" align="left"<if(isset($t->postbitlist))><then> colspan="3"</then></if>><span class="normalfont"><a href="javascript:self.scrollTo(0,50000);"><img src="{$style['imagefolder']}/asc.gif" border="0" alt="{$lang->items['LANG_THREAD_GODOWN']}" title="{$lang->items['LANG_THREAD_GODOWN']}" /></a> <b>$thread[topic] $threadrating</b></span></td>
</tr>
<if(isset($t->postbitlist))>
<then>
<tr align="center">
<td class="tabletitle" style="width:80%"><span class="smallfont"><b>{$lang->items['LANG_THREAD_POSTBITLIST']}</b></span></td>
<td class="tabletitle" style="width:20%"><span class="smallfont"><b>{$lang->items['LANG_THREAD_AUTHOR']}</b></span></td>
<td class="tabletitle" nowrap="nowrap"><span class="smallfont"><b>{$lang->items['LANG_THREAD_DATE']}</b></span></td>
</tr>
<if($t->page!=1)>
<then>
<tr align="center">
<td class="tableb" colspan="3"><span class="normalfont"><a href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=<expression>($t->page-1)</expression>{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_PREVPAGE']}</a></span></td>
</tr>
</then>
</if>
{$t->postbitlist}
<if($t->page<$t->pages)>
<then>
<tr align="center">
<td class="tableb" colspan="3"><span class="normalfont"><a href="thread.php?threadid=$threadid&threadview=$threadview&hilight=$hilight&hilightuser=$hilightuser&page=<expression>($t->page+1)</expression>{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_NEXTPAGE']}</a></span></td>
</tr>
</then>
</if>
</table><br />
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" style="width:100%">
</then>
<else>
</table>
</else>
</if>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" style="width:100%">
<tr>
<td class="tabletitle" align="left" style="width:<expression>((2*$style['tableincellpadding'])+159)</expression>px" nowrap="nowrap"><span class="smallfont"><b>{$lang->items['LANG_THREAD_AUTHOR']}</b></span></td>
<td class="tabletitle"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tabletitle_fc">
<td align="left"><span class="smallfont"><b>{$lang->items['LANG_THREAD_POST']}</b></span></td>
<td align="right"><span class="smallfont"><b>«</b> <a href="thread.php?goto=nextoldest&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_NEXTOLDEST']}</a> | <a href="thread.php?goto=nextnewest&threadid=$threadid{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_NEXTNEWEST']}</a> <b>»</b></span></td>
</tr>
</table></td>
</tr>
</table>
$postbit
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" style="width:100%">
<tr>
<td class="tabletitle" colspan="2">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tabletitle_fc">
<td align="left"><span class="smallfont">$t->pagelink</span></td>
<td align="right"><span class="smallfont"><a href="thread.php?threadid=$threadid&threadview=1&hilight=$hilight&hilightuser=$hilightuser{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_THREADED']}</a> | <a href="thread.php?threadid=$threadid&threadview=0&hilight=$hilight&hilightuser=$hilightuser{$SID_ARG_2ND}">{$lang->items['LANG_THREAD_FLATTHREAD']}</a></span></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<table style="width:{$style['tableinwidth']}">
<tr>
<td align="left" valign="top">$boardjump</td>
<td align="right" valign="top"><span class="smallfont">$newthread $addreply</span></td>
</tr>
</table>
<if(checkpermissions("can_rate_thread")==1 && $board['allowratings']==1 && !$thread['isvoted'])>
<then>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><form action="threadrating.php" method="post"><table border="0" cellspacing="0" cellpadding="0" align="center" class="tablea_fc">
<tr align="center">
<td valign="bottom" align="right"><span class="normalfont"><b>{$lang->items['LANG_THREAD_THREADRATING']}</b> </span><span class="smallfont"><br /><br />
{$lang->items['LANG_THREAD_VERYPOOR']} <img src="{$style['imagefolder']}/thumbs_down.gif" border="0" alt="{$lang->items['LANG_THREAD_VERYPOOR']}" title="{$lang->items['LANG_THREAD_VERYPOOR']}" /> </span>
</td>
<td style="background-color: $colors[0]"><span class="smallfont">
<input type="radio" name="rating" value="1" onclick="this.form.submit();" />
<br />
1 </span></td>
<td style="background-color: $colors[1]"><span class="smallfont">
<input type="radio" name="rating" value="2" onclick="this.form.submit();" />
<br />
2 </span></td>
<td style="background-color: $colors[2]"><span class="smallfont">
<input type="radio" name="rating" value="3" onclick="this.form.submit();" />
<br />
3 </span></td>
<td style="background-color: $colors[3]"><span class="smallfont">
<input type="radio" name="rating" value="4" onclick="this.form.submit();" />
<br />
4 </span></td>
<td style="background-color: $colors[4]"><span class="smallfont">
<input type="radio" name="rating" value="5" onclick="this.form.submit();" />
<br />
5 </span></td>
<td style="background-color: $colors[5]"><span class="smallfont">
<input type="radio" name="rating" value="6" onclick="this.form.submit();" />
<br />
6 </span></td>
<td style="background-color: $colors[6]"><span class="smallfont">
<input type="radio" name="rating" value="7" onclick="this.form.submit();" />
<br />
7 </span></td>
<td style="background-color: $colors[7]"><span class="smallfont">
<input type="radio" name="rating" value="8" onclick="this.form.submit();" />
<br />
8 </span></td>
<td style="background-color: $colors[8]"><span class="smallfont">
<input type="radio" name="rating" value="9" onclick="this.form.submit();" />
<br />
9 </span></td>
<td style="background-color: $colors[9]"><span class="smallfont">
<input type="radio" name="rating" value="10" onclick="this.form.submit();" />
<br />
10 </span></td>
<td align="left" valign="bottom"><span class="smallfont"> <img src="{$style['imagefolder']}/thumbs_up.gif" border="0" alt="{$lang->items['LANG_THREAD_VERYGOOD']}" title="{$lang->items['LANG_THREAD_VERYGOOD']}" /> {$lang->items['LANG_THREAD_VERYGOOD']}</span></td>
</tr>
</table>
<input type="hidden" name="sid" value="$session[hash]" />
<input type="hidden" name="threadid" value="$threadid" />
<input type="hidden" name="page" value="{$t->page}" />
</form></td>
</tr>
</table><br />
</then>
</if>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea" align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a>$navbar » </b><if($thread['prefix']!="")><then><span class="prefix">$thread[prefix]</span> </then></if><b>$thread[topic]</b></span></td>
</tr>
</table>
<table style="width:{$style['tableinwidth']}">
<tr>
<td align="right">
<if(checkmodpermissions())>
<then>
<form action="modcp.php" method="get" name="modoption">
<select name="action">
<option value="-1">{$lang->items['LANG_THREAD_ADMINOPTIONS']}</option>
<if(checkmodpermissions("m_can_thread_close"))>
<then><option value="thread_close">{$lang->items['LANG_THREAD_THREADCLOSE']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_move"))>
<then><option value="thread_move">{$lang->items['LANG_THREAD_THREADMOVE']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_edit"))>
<then><option value="thread_edit">{$lang->items['LANG_THREAD_THREADEDIT']}</option></then>
</if>
<if(checkmodpermissions("m_can_post_del"))>
<then><option value="post_del">{$lang->items['LANG_THREAD_POSTDEL']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_del"))>
<then><option value="thread_del">{$lang->items['LANG_THREAD_THREADDEL']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_merge"))>
<then><option value="thread_merge">{$lang->items['LANG_THREAD_THREADMERGE']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_cut"))>
<then><option value="thread_cut">{$lang->items['LANG_THREAD_THREADCUT']}</option></then>
</if>
<if(checkmodpermissions("m_can_thread_top"))>
<then><option value="thread_top">{$lang->items['LANG_THREAD_THREADTOP']}</option></then>
</if>
<if(checkmodpermissions("m_can_add_poll"))>
<then><option value="polladd">{$lang->items['LANG_THREAD_POLLADD']}</option></then>
</if>
</select>
<input src="{$style['imagefolder']}/go.gif" type="image" />
<input type="hidden" name="threadid" value="$threadid" />
<input type="hidden" name="sid" value="$session[hash]" />
</form>
</then>
<else>
<if($wbbuserdata['userid'] && $wbbuserdata['userid']==$thread['starterid'] && (checkpermissions("can_close_own_topic")==1 || checkpermissions("can_del_own_topic")==1 || checkpermissions("can_edit_own_topic")==1 || checkpermissions("can_move_own_topic")==1))>
<then>
<form action="modcp.php" method="get" name="modoption">
<select name="action">
<option value="-1">{$lang->items['LANG_THREAD_OTHEROPTIONS']}</option>
<if(checkpermissions("can_close_own_topic")==1)>
<then><option value="thread_close">{$lang->items['LANG_THREAD_THREADCLOSE']}</option></then>
</if>
<if(checkpermissions("can_move_own_topic")==1)>
<then><option value="thread_move">{$lang->items['LANG_THREAD_THREADMOVE']}</option></then>
</if>
<if(checkpermissions("can_edit_own_topic")==1)>
<then><option value="thread_edit">{$lang->items['LANG_THREAD_THREADEDIT']}</option></then>
</if>
<if(checkpermissions("can_del_own_topic")==1)>
<then><option value="thread_del">{$lang->items['LANG_THREAD_THREADDEL']}</option></then>
</if>
</select>
<input src="{$style['imagefolder']}/go.gif" type="image" />
<input type="hidden" name="threadid" value="$threadid" />
<input type="hidden" name="sid" value="$session[hash]" />
</form>
</then>
</if>
</else>
</if>
</td>
</tr>
</table>
$footer
</body>
</html>
2.
Sprachvariablen hinzufügen: Bitte füge die genannten Sprachvariablen in alle deiner
Sprachpakete, sofern du mehrere hast.
Sprachvariabelnkategorie: usercp
Name: LANG_REGISTER_OPTIONS_QREPLYVIEW
Inhalt: Schnell-Antwort aktivieren?
Sprachvariabelnkategorie: usercp
Name: LANG_REGISTER_OPTIONS_QREPLYVIEW_DESC
Inhalt: Wenn diese Option gewählt ist, kannst du unter einem Thema direkt antworten.
Sprachvariabelnkategorie: thread
Name: LANG_THREAD_QUICKREPLY
Inhalt: Schnelle Antwort erstellen
Sprachvariablenkategorie: thread
Name: LANG_THREAD_QUICKREPLY_ENHANCEDEDITOR
Inhalt: Zum normalen Editor wechseln
[...]
##### Folgenden Query ausführen #####
- Wenn Quick-Reply standardmäßig eingeschalten sein soll (X durch Boardnummer ersetzen):
ALTER TABLE bbX_users ADD qreplyview INT(11) NOT NULL default '1';
- Wenn Quick-Reply standardmäßig ausgeschalten sein soll (X durch Boardnummer ersetzen):
ALTER TABLE bbX_users ADD qreplyview INT(11) NOT NULL default '0';
- Wenn es schon zu spät ist und der falsche Query ausgeführt wurde, dann einfach folgende eingeben:
ALTER TABLE bbX_users CHANGE qreplyview qreplyview TINYINT(11) DEFAULT 'Y' NOT NULL;
UPDATE bbX_users SET qreplyview = 'Y';
Y = 1 = ja; 0 = nein
### Konfiguriere den Quickreply nun so, wie du es magst. Dazu öffne
quickreply_config.php mit einem handelsüblichen Editor und lies dir ZUERST!!!
die Hinweise am Ende der Datei durch. Nun kannst du deine 1en und 0en setzen.
### Alle Files hochladen und Templates importieren. Anschließend cachen.
SQL-DATABASE ERROR
Database error in WoltLab Burning Board (2.3.3): Invalid SQL: UPDATE bb1_users SET showemail='0', admincanemail='1', usercanemail='1', invisible='0', usecookies='1', styleid='0', daysprune='0', timezoneoffset='1', startweek='0', dateformat='d.m.Y', timeformat='H:i', emailnotify='0', notificationperpm='0', receivepm='1', emailonpm='0', pmpopup='0', umaxposts='0', qreplyview='1', showsignatures='1', showavatars='1', showimages='1', threadview='0', langid='0', usewysiwyg='0' WHERE userid = '1'
mysql error: Unknown column 'qreplyview' in 'field list'
mysql error number: 1054
mysql version: 4.0.15
php version: 4.3.3
Date: 01.11.2005 @ 16:00
Script: /wbb2/usercp.php
Referer: http://web1.h594707.serverkompetenz.net/wbb2/usercp.php?action=options_change
Original von rellek
Hier deine Files.
Du musst allerdings noch das machen (falls das noch nicht passiert ist):
Code:[...] ##### Folgenden Query ausführen ##### - Wenn Quick-Reply standardmäßig eingeschalten sein soll (X durch Boardnummer ersetzen): ALTER TABLE bbX_users ADD qreplyview INT(11) NOT NULL default '1'; - Wenn Quick-Reply standardmäßig ausgeschalten sein soll (X durch Boardnummer ersetzen): ALTER TABLE bbX_users ADD qreplyview INT(11) NOT NULL default '0'; - Wenn es schon zu spät ist und der falsche Query ausgeführt wurde, dann einfach folgende eingeben: ALTER TABLE bbX_users CHANGE qreplyview qreplyview TINYINT(11) DEFAULT 'Y' NOT NULL; UPDATE bbX_users SET qreplyview = 'Y'; Y = 1 = ja; 0 = nein