Problem with Justify, Center, etc. in forum posting

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
EyeCheated
Registered User
Posts: 2
Joined: Thu Dec 25, 2008 3:20 am

Problem with Justify, Center, etc. in forum posting

Post by EyeCheated »

I am putting together a website http://doxcoding.com/ if you want to see what I am talking about. It is phpnuke and is was using by default phpbb 2.0.21. I have since upgraded to the 2.0.23. When I use the regular forum theme's the justify, center, etc. buttons operate as they should when posting in the forum. However when I apply a theme that runs the /forum from the template folder the buttons show up, and I can attach pictures to them. Other than that they do nothing when you click on them. Makes it a little rough when posting :? Also I can not get the Smilies to show up on the side yet you can click the see all smilies and see them in a new window.

I am no expert when it comes to php but I have successfully used a tutorial from here for my "can't center align my signature" problem. So I can follow instructions. From my understanding I believe it must be a problem with the code in the posting_body.tpl which I have put below.

Code: Select all

<script language="JavaScript" src="modules/Forums/bbcode_box/add_bbcode.js" type="text/javascript">

<!--

// bbCode control by

// subBlue design

// http://www.subBlue.com



// Startup variables

var imageTag = false;

var theSelection = false;



// Check for Browser & Platform for PC & IE specific bits

// More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html

var clientPC = navigator.userAgent.toLowerCase(); // Get client info

var clientVer = parseInt(navigator.appVersion); // Get browser version



var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));

var is_nav  = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)

                && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)

                && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));



var is_win   = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));

var is_mac    = (clientPC.indexOf("mac")!=-1);





// Helpline messages

b_help = "{L_BBCODE_B_HELP}";

i_help = "{L_BBCODE_I_HELP}";

u_help = "{L_BBCODE_U_HELP}";

q_help = "{L_BBCODE_Q_HELP}";

c_help = "{L_BBCODE_C_HELP}";

l_help = "{L_BBCODE_L_HELP}";

o_help = "{L_BBCODE_O_HELP}";

p_help = "{L_BBCODE_P_HELP}";

w_help = "{L_BBCODE_W_HELP}";

a_help = "{L_BBCODE_A_HELP}";

s_help = "{L_BBCODE_S_HELP}";

f_help = "{L_BBCODE_F_HELP}";



// Define the bbCode tags

bbcode = new Array();

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[center]','[/center]');

imageTag = false;



// Shows the help messages in the helpline window

function helpline(help) {

document.post.helpbox.value = eval(help + "_help");

}





// Replacement for arrayname.length property

function getarraysize(thearray) {

for (i = 0; i < thearray.length; i++) {

if ((thearray == "undefined") || (thearray == "") || (thearray == null))

return i;

}

return thearray.length;

}



// Replacement for arrayname.push(value) not implemented in IE until version 5.5

// Appends element to the array

function arraypush(thearray,value) {

thearray[ getarraysize(thearray) ] = value;

}



// Replacement for arrayname.pop() not implemented in IE until version 5.5

// Removes and returns the last element of an array

function arraypop(thearray) {

thearraysize = getarraysize(thearray);

retval = thearray[thearraysize - 1];

delete thearray[thearraysize - 1];

return retval;

}





function checkForm() {



formErrors = false;



if (document.post.message.value.length < 2) {

formErrors = "{L_EMPTY_MESSAGE}";

}



if (formErrors) {

alert(formErrors);

return false;

} else {

bbstyle(-1);

//formObj.preview.disabled = true;

//formObj.submit.disabled = true;

return true;

}

}



function emoticon(text) {

text = ' ' + text + ' ';

if (document.post.message.createTextRange && document.post.message.caretPos) {

var caretPos = document.post.message.caretPos;

caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;

document.post.message.focus();

} else {

document.post.message.value += text;

document.post.message.focus();

}

}



function bbfontstyle(bbopen, bbclose) {

if ((clientVer >= 4) && is_ie && is_win) {

theSelection = document.selection.createRange().text;

if (!theSelection) {

document.post.message.value += bbopen + bbclose;

document.post.message.focus();

return;

}

document.selection.createRange().text = bbopen + theSelection + bbclose;

document.post.message.focus();

return;

} else {

document.post.message.value += bbopen + bbclose;

document.post.message.focus();

return;

}

storeCaret(document.post.message);

}





function bbstyle(bbnumber) {



donotinsert = false;

theSelection = false;

bblast = 0;



if (bbnumber == -1) { // Close all open tags & default button names

while (bbcode[0]) {

butnumber = arraypop(bbcode) - 1;

document.post.message.value += bbtags[butnumber + 1];

buttext = eval('document.post.addbbcode' + butnumber + '.value');

eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');

}

imageTag = false; // All tags are closed including image tags :D

document.post.message.focus();

return;

}



if ((clientVer >= 4) && is_ie && is_win)

theSelection = document.selection.createRange().text; // Get text selection



if (theSelection) {

// Add tags around selection

document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];

document.post.message.focus();

theSelection = '';

return;

}



// Find last occurance of an open tag the same as the one just clicked

for (i = 0; i < bbcode.length; i++) {

if (bbcode == bbnumber+1) {

bblast = i;

donotinsert = true;

}

}



if (donotinsert) { // Close all open tags up to the one just clicked & default button names

while (bbcode[bblast]) {

butnumber = arraypop(bbcode) - 1;

document.post.message.value += bbtags[butnumber + 1];

buttext = eval('document.post.addbbcode' + butnumber + '.value');

eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');

imageTag = false;

}

document.post.message.focus();

return;

} else { // Open tags



if (imageTag && (bbnumber != 14)) { // Close image tag before adding another

document.post.message.value += bbtags[15];

lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list

document.post.addbbcode14.value = "Img"; // Return button back to normal state

imageTag = false;

}



// Open tag

document.post.message.value += bbtags[bbnumber];

if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag

arraypush(bbcode,bbnumber+1);

eval('document.post.addbbcode'+bbnumber+'.value += "*"');

document.post.message.focus();

return;

}

storeCaret(document.post.message);

}



// Insert at Claret position. Code from

// http://www.faqts.com/knowledge_base/vie ... 52/fid/130

function storeCaret(textEl) {

if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();

}



//-->

</script>



<!-- BEGIN privmsg_extensions -->

<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">

<tr>

<td valign="top" align="center" width="100%">

<table height="40" cellspacing="2" cellpadding="2" border="0">

<tr valign="middle">

<td>{INBOX_IMG}</td>

<td><span class="cattitle">{INBOX_LINK}  </span></td>

<td>{SENTBOX_IMG}</td>

<td><span class="cattitle">{SENTBOX_LINK}  </span></td>

<td>{OUTBOX_IMG}</td>

<td><span class="cattitle">{OUTBOX_LINK}  </span></td>

<td>{SAVEBOX_IMG}</td>

<td><span class="cattitle">{SAVEBOX_LINK}  </span></td>

</tr>

</table>

</td>

</tr>

</table>



<br clear="all" />

<!-- END privmsg_extensions -->



<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>



{POST_PREVIEW_BOX}

{ERROR_BOX}



<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">

<tr>

<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>

<!-- BEGIN switch_not_privmsg -->

-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>

<!-- END switch_not_privmsg -->

</tr>

</table>



<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">

<tr>

<th class="thHead" colspan="2" height="25"><b>{L_POST_A}</b></th>

</tr>

<!-- BEGIN switch_username_select -->

<tr>

<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>

<td class="row2"><span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" /></span></td>

</tr>

<!-- END switch_username_select -->

<!-- BEGIN switch_privmsg -->

<tr>

<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>

<td class="row2"><span class="genmed"><input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onclick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td>

</tr>

<!-- END switch_privmsg -->

<tr>

<td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>

<td class="row2" width="78%"> <span class="gen">

<input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />

</span> </td>

</tr>

<tr>

<td class="row1" valign="top">

<table width="100%" border="0" cellspacing="0" cellpadding="1">

<tr>

<td><span class="gen"><b>{L_MESSAGE_BODY}</b></span> </td>

</tr>

<tr>

<td valign="middle" align="center"> <br />

<table width="100" border="0" cellspacing="0" cellpadding="5">

<tr align="center">

<td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b>{L_EMOTICONS}</b></td>

</tr>

<!-- BEGIN smilies_row -->

<tr align="center" valign="middle">

<!-- BEGIN smilies_col -->

<td><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" onmouseover="this.style.cursor='hand';" onclick="emoticon('{smilies_row.smilies_col.SMILEY_CODE}');" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td><!-- END smilies_col -->

</tr>

<!-- END smilies_row -->

<!-- BEGIN switch_smilies_extra -->

<tr align="center">

<td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td>

</tr>

<!-- END switch_smilies_extra -->

</table>

</td>

</tr>

</table>

</td>

<td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span>

<table width="450" border="0" cellspacing="0" cellpadding="2">

<tr align="right" valign="middle">
<td>
<p dir="rtl" style="margin-top: 0; margin-bottom: 0" align="left"><span class="gen">
<span class="genmed">
 <select name="fc" onChange="BBCfc()" onMouseOver="helpline('fc')"
<option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed" dir="ltr">
<option selected>Font Color</option>
<option style="color:black;" value="{T_FONTCOLOR1}" value="{T_FONTCOLOR1}">{L_COLOR_DEFAULT}</option>
<option value="darkred">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select>   <select name="fs" onChange="BBCfs()" onMouseOver="helpline('fs')"
<option value="7" class="genmed" dir="ltr">
<option selected>Font Size</option>
{L_FONT_TINY}</option>
<option value="9" class="genmed">{L_FONT_SMALL}</option>
<option value="12" class="genmed">{L_FONT_NORMAL}</option>
<option value="18" class="genmed">{L_FONT_LARGE}</option>
<option value="24" class="genmed">{L_FONT_HUGE}</option>
</select> <span lang="ar-sy"> </span><select name="ft" onChange="BBCft()" onMouseOver="helpline('ft')"
<option style="color:black; background-color: #FFFFFF " value="{L_ARIAL}" class="genmed" dir="ltr">
<option selected>Font type</option>
<option value="Arial">Default font
</option>
<option style="color:black; background-color: #FFFFFF " value="Andalus" class="genmed">
Andalus</option>
<option style="color:black; background-color: #FFFFFF " value="Arial" class="genmed">
Arial</option>
<option style="color:black; background-color: #FFFFFF " value="Comic Sans MS" class="genmed">
Comic Sans MS</option>
<option style="color:black; background-color: #FFFFFF " value="Courier New" class="genmed">
Courier New</option>
<option value="Lucida Console">Lucida Console
</option>
<option style="color:black; background-color: #FFFFFF " value="Microsoft Sans Serif" class="genmed">
Microsoft Sans Serif</option>
<option style="color:black; background-color: #FFFFFF " value="Symbol" class="genmed">
Symbol</option>
<option style="color:black; background-color: #FFFFFF " value="Tahoma" class="genmed">
Tahoma</option>
<option style="color:black; background-color: #FFFFFF " value="Times New Roman" class="genmed">
Times New Roman</option>
<option style="color:black; background-color: #FFFFFF " value="Traditional Arabic" class="genmed">
Traditional Arabic</option>
<option style="color:black; background-color: #FFFFFF " value="Verdana" class="genmed">
Verdana</option>
<option style="color:black; background-color: #FFFFFF " value="Webdings" class="genmed">
Webdings</option>
<option style="color:black; background-color: #FFFFFF " value="Wingdings" class="genmed">
Wingdings</option>
</select></span></span></span><p dir="rtl" style="margin-top: 0; margin-bottom: 0">
<span class="genmed"><span style="font-size: 5pt"> </span></span></td>
</tr>
<span class="gen">
<tr>
<td width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<p dir="ltr" align="left"><span class="gen">
<span class="genmed">
<span lang="ar-sy"> </span><img src="modules/Forums/bbcode_box/images/justify.gif" alt="justify" name="justify" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCjustify()" onmouseover="helpline('justify')" type="image"><img src="modules/Forums/bbcode_box/images/right.gif" alt="right" name="right" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCright()" onmouseover="helpline('right')" type="image"><img src="modules/Forums/bbcode_box/images/center.gif" alt="center" name="center" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCcenter()" onmouseover="helpline('center')" type="image"><img src="modules/Forums/bbcode_box/images/left.gif" alt="left" name="left" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCleft()" onmouseover="helpline('left')" type="image">  
<img src="modules/Forums/bbcode_box/images/bold.gif" alt="bold" name="bold" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCbold()" onmouseover="helpline('b')" type="image"><img src="modules/Forums/bbcode_box/images/italic.gif" alt="italic" name="italic" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCitalic()" onmouseover="helpline('i')" type="image"><img src="modules/Forums/bbcode_box/images/under.gif" alt="under line" name="under" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCunder()" onmouseover="helpline('u')" type="image">  
<img src="modules/Forums/bbcode_box/images/fade.gif" alt="fade" name="fade" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCfade()" onmouseover="helpline('fade')" type="image"><img src="modules/Forums/bbcode_box/images/grad.gif" alt="gradient" name="grad" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCgrad()" onmouseover="helpline('grad')" type="image">  
<img src="modules/Forums/bbcode_box/images/rtl.gif" alt="Right to Left" name="dirrtl" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCdir('rtl')" onmouseover="helpline('rtl')" type="image"><img src="modules/Forums/bbcode_box/images/ltr.gif" alt="Left to Right" name="dirltr" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCdir('ltr')" onmouseover="helpline('ltr')" type="image">  
<img src="modules/Forums/bbcode_box/images/marqd.gif" alt="Marque to down" name="marqd" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCmarqd()" onmouseover="helpline('marqd')" type="image"><img src="modules/Forums/bbcode_box/images/marqu.gif" alt="Marque to up" name="marqu" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCmarqu()" onmouseover="helpline('marqu')" type="image"><img src="modules/Forums/bbcode_box/images/marql.gif" alt="Marque to left" name="marql" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCmarql()" onmouseover="helpline('marql')" type="image"><img src="modules/Forums/bbcode_box/images/marqr.gif" alt="Marque to right" name="marqr" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCmarqr()" onmouseover="helpline('marqr')" type="image"></span></span></td>
</tr>
<tr>
<td dir="rtl">
<p align="right" dir="rtl" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 5pt"> </span><p align="left" dir="ltr" style="margin-top: 0; margin-bottom: 0"><span class="gen">
<span class="genmed">
 <img src="modules/Forums/bbcode_box/images/code.gif" alt="Code" name="code" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCcode()" onmouseover="helpline('code')" type="image"><img src="modules/Forums/bbcode_box/images/php.gif" alt="php" name="php" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBphpsh()" onmouseover="helpline('phpsh')" type="image"><img src="modules/Forums/bbcode_box/images/quote.gif" alt="Quote" name="quote" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCquote()" onmouseover="helpline('quote')" type="image">  
<img src="modules/Forums/bbcode_box/images/url.gif" alt="URL" name="url" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCurl()" onmouseover="helpline('url')" type="image"><img src="modules/Forums/bbcode_box/images/email.gif" alt="Email" name="email" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCmail()" onmouseover="helpline('mail')" type="image"><img src="modules/Forums/bbcode_box/images/web.gif" alt="Wep Page" name="web" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCweb()" onmouseover="helpline('web')" type="image">  
<img src="modules/Forums/bbcode_box/images/img.gif" alt="Image" name="img" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCimg()" onmouseover="helpline('img')" type="image"><img src="modules/Forums/bbcode_box/images/flash.gif" alt="Flash" name="flash" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCflash()" onmouseover="helpline('flash')" type="image"><img src="modules/Forums/bbcode_box/images/video.gif" alt="Video" name="video" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCvideo()" onmouseover="helpline('video')" type="image"><img src="modules/Forums/bbcode_box/images/sound.gif" alt="Stream" name="stream" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCstream()" onmouseover="helpline('stream')" type="image"><img src="modules/Forums/bbcode_box/images/ram.gif" alt="Real Media" name="ram" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCram()" onmouseover="helpline('ram')" type="image">  
<img src="modules/Forums/bbcode_box/images/hr.gif" alt="H-Line" name="hr" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBChr()" onmouseover="helpline('hr')" type="image">  
<img src="modules/Forums/bbcode_box/images/plain.gif" alt="Remove BBcode" name="plain" width="30" height="27" border="0" style="border-style: outset; border-width: 1" onclick="BBCplain()" onmouseover="helpline('plain')" type="image"></span></td>
</tr>
</table>
</td>
</tr>

</table>
</td>
</tr>

<tr>

<td colspan="9"> <span class="gensmall">

<input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" />

</span></td>

</tr>

<tr>

<td colspan="9"><span class="gen">

<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>

</span></td>

</tr>

</table>

</span></td>

</tr>

<tr>

<td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>

<td class="row2"><span class="gen"> </span>

<table cellspacing="0" cellpadding="1" border="0">

<!-- BEGIN switch_html_checkbox -->

<tr>

<td>

<input type="checkbox" name="disable_html" {S_HTML_CHECKED} />

</td>

<td><span class="gen">{L_DISABLE_HTML}</span></td>

</tr>

<!-- END switch_html_checkbox -->

<!-- BEGIN switch_bbcode_checkbox -->

<tr>

<td>

<input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />

</td>

<td><span class="gen">{L_DISABLE_BBCODE}</span></td>

</tr>

<!-- END switch_bbcode_checkbox -->

<!-- BEGIN switch_smilies_checkbox -->

<tr>

<td>

<input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />

</td>

<td><span class="gen">{L_DISABLE_SMILIES}</span></td>

</tr>

<!-- END switch_smilies_checkbox -->

<!-- BEGIN switch_signature_checkbox -->

<tr>

<td>

<input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />

</td>

<td><span class="gen">{L_ATTACH_SIGNATURE}</span></td>

</tr>

<!-- END switch_signature_checkbox -->

<!-- BEGIN switch_notify_checkbox -->

<tr>

<td>

<input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />

</td>

<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>

</tr>

<!-- END switch_notify_checkbox -->

<!-- BEGIN switch_delete_checkbox -->

<tr>

<td>

<input type="checkbox" name="delete" />

</td>

<td><span class="gen">{L_DELETE_POST}</span></td>

</tr>

<!-- END switch_delete_checkbox -->
<!-- BEGIN switch_lock_topic -->
<tr>
<td>
<input type="checkbox" name="lock" {S_LOCK_CHECKED} />
</td>
<td><span class="gen">{L_LOCK_TOPIC}</span></td>
</tr>
<!-- END switch_lock_topic -->
<!-- BEGIN switch_unlock_topic -->
<tr>
<td>
<input type="checkbox" name="unlock" {S_UNLOCK_CHECKED} />
</td>
<td><span class="gen">{L_UNLOCK_TOPIC}</span></td>
</tr>
<!-- END switch_unlock_topic -->


<!-- BEGIN switch_type_toggle -->

<tr>

<td></td>

<td><span class="gen">{S_TYPE_TOGGLE}</span></td>

</tr>

<!-- END switch_type_toggle -->

</table>

</td>

</tr>

{ATTACHBOX}{POLLBOX}

<tr>

<td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>

</tr>

</table>



<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">

<tr>

<td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td>

</tr>

</table>

</form>



<table width="100%" cellspacing="2" border="0" align="center">

<tr>

<td valign="top" align="right">{JUMPBOX}</td>

</tr>

</table>



{TOPIC_REVIEW_BOX}

[/code]

If someone could help me I would really appreciate it. Also so I don't clutter you up with a new post I was also wondering about this phpbb 3.0 and if it can be used to upgrade a nuke forum. My forum sais I now have the most current forum 2.0.23. And if it can be used why can you no longer put html in a post, that would detour me from wanting the upgrade unless there is a "hack" to fix that. Thank you for taking the time to read my troubles.

Thanks,
EyeCheated
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Problem with Justify, Center, etc. in forum posting

Post by ric323 »

We do NOT support Nuke boards here at all, they are not the same code as phpBB available from here.
e.g. Justify and Centre are not valid codes on a vanilla phpBB2 install.
You would have to convert from Nuke back to plain phpBB before upgrading to phpBB3, although there might be a direct convertor available now. You would lose all your Nuke features if you did that though.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
EyeCheated
Registered User
Posts: 2
Joined: Thu Dec 25, 2008 3:20 am

Re: Problem with Justify, Center, etc. in forum posting

Post by EyeCheated »

Thank you for your insight. 2.0.23 suits my needs just fine and would not care to downgrade from nuke as we are a portal. I figured as such about the 3.0 but if I may, just for anyone stumbling around trying to find an answer to my problem I fixed it myself. If I could I would like to post the the link to the site that showed me how to fix this problem. I don't know if it will get taken down since it deals with nuke but I figure since you don't deal with it, it might be good to have a place to redirect someone. Anyway the place that I found the answer and the download of the modified posting_body.tpl and the bbcode.php is from http://www.nukecode.com/modules.php?nam ... =8305#8305 I hope that helps anyone that has the same problem I did.

~ EyeCheated
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Problem with Justify, Center, etc. in forum posting

Post by ameeck »

ric323 wrote:We do NOT support Nuke boards here at all, they are not the same code as phpBB available from here.
e.g. Justify and Centre are not valid codes on a vanilla phpBB2 install.
You would have to convert from Nuke back to plain phpBB before upgrading to phpBB3, although there might be a direct convertor available now. You would lose all your Nuke features if you did that though.
A NUKE to phpBB3 converter can be found here:
http://www.phpbb.com/community/viewtopi ... 5&t=642955

It's marked as beta but has taken over many forums successfuly.
Locked

Return to “2.0.x Support Forum”