I've got it figured out. Here is what I did, since I have Quick Reply installed.
In showthreaded.tmpl I looked for:
[]
<table border="0" class="tablesurround">
<tr>
<td class="navigation">
$editlinkstart
<img src="{$config['images']}/edit.gif" border="0" alt="{$ubbt_lang['PEDIT_HEAD']}" $imagestyle />
{$ubbt_lang['EDIT_ICON']}
$editlinkstop
</td>
<td class="navigation">
$replylinkstart
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle />
{$ubbt_lang['REPLY_ICON']}
$replylinkstop
</td>
<td class="navigation">
$quotelinkstart
<img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle />
{$ubbt_lang['QUOTE_ICON']}
$quotelinkstop
</td>
<td class="navigation">
<a href="#quickreply">
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" $imagestyle />
{$ubbt_lang['QUICK_REPLY']}
</a>
</td>
</tr>
</table>
[/]
and replaced it with:
[]
UBBTPRINT;
//---------------
// Post, Edit, and Reply link start
if ($edit == "on") {
echo <<<UBBTPRINT
<table border="0" class="tablesurround">
<tr>
<td class="navigation">
$editlinkstart
<img src="{$config['images']}/edit.gif" border="0" alt="{$ubbt_lang['PEDIT_HEAD']}" $imagestyle />
{$ubbt_lang['EDIT_ICON']}
$editlinkstop
</td>
<td class="navigation">
$replylinkstart
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle />
{$ubbt_lang['REPLY_ICON']}
$replylinkstop
</td>
<td class="navigation">
$quotelinkstart
<img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle />
{$ubbt_lang['QUOTE_ICON']}
$quotelinkstop
</td>
<td class="navigation">
<a href="#quickreply">
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" $imagestyle />
{$ubbt_lang['QUICK_REPLY']}
</a>
</td>
</tr>
</table>
UBBTPRINT;
}
else {
if ($reply == "on") {
echo <<<UBBTPRINT
<table border="0" class="tablesurround">
<tr>
<td class="navigation">
$replylinkstart
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle />
{$ubbt_lang['REPLY_ICON']}
$replylinkstop
</td>
<td class="navigation">
$quotelinkstart
<img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" $imagestyle />
{$ubbt_lang['QUOTE_ICON']}
$quotelinkstop
</td>
<td class="navigation">
<a href="#quickreply">
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" $imagestyle />
{$ubbt_lang['QUICK_REPLY']}
</a>
</td>
</tr>
</table>
UBBTPRINT;
}
}
//---------------
// Post, Edit, and Reply link stop
echo <<<UBBTPRINT
[/]
In showflat.tmpl I found:
[]
<table class="tablesurround" border="0">
<tr>
<td class="navigation" nowrap="nowrap">
{$postrow[$i]['editlinkstart']}
<img src="{$config['images']}/edit.gif" border="0" alt="{$ubbt_lang['PEDIT_HEAD']}" width="21" height="14" $imagestyle />
{$ubbt_lang['EDIT_ICON']}
{$postrow[$i]['editlinkstop']}
</td>
<td class="navigation" nowrap="nowrap">
{$postrow[$i]['replylinkstart']}
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle />
{$ubbt_lang['REPLY_ICON']}
{$postrow[$i]['replylinkstop']}
</td>
<td class="navigation" nowrap="nowrap">
{$postrow[$i]['quotelinkstart']}
<img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle />
{$ubbt_lang['QUOTE_ICON']}
UBBTPRINT;
if (($user['U_Username']) && (($Open != "C") && ($Open != "M"))) {
$qreplylinkstart = "<a href="javascript:quickreply('$i');">";
$qreplylinkstop = "</a>";
} else {
$qreplylinkstart = "";
$qreplylinkstop = "";
}
echo <<<UBBTPRINT
<td class="navigation" nowrap="nowrap">
$qreplylinkstart
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" width="27" height="14" $imagestyle />
{$ubbt_lang['QUICK_REPLY_ICON']}
$qreplylinkstop
</td>
</tr>
</table>
[/]
and replaced it with:
[]
UBBTPRINT;
//---------------
// Post, Edit, and Reply link start
if ($postrow[$i]['editlinkstart'] != "") {
echo <<<UBBTPRINT
<table class="tablesurround" border="0">
<tr>
<td class="navigation" nowrap="nowrap">
{$postrow[$i]['editlinkstart']}
<img src="{$config['images']}/edit.gif" border="0" alt="{$ubbt_lang['PEDIT_HEAD']}" width="21" height="14" $imagestyle />
{$ubbt_lang['EDIT_ICON']}
{$postrow[$i]['editlinkstop']}
</td>
<td class="navigation" nowrap="nowrap">
{$postrow[$i]['replylinkstart']}
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle />
{$ubbt_lang['REPLY_ICON']}
{$postrow[$i]['replylinkstop']}
</td>
<td class="navigation" nowrap="nowrap">
{$postrow[$i]['quotelinkstart']}
<img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle />
{$ubbt_lang['QUOTE_ICON']}
UBBTPRINT;
if (($user['U_Username']) && (($Open != "C") && ($Open != "M"))) {
$qreplylinkstart = "<a href="javascript:quickreply('$i');">";
$qreplylinkstop = "</a>";
} else {
$qreplylinkstart = "";
$qreplylinkstop = "";
}
echo <<<UBBTPRINT
<td class="navigation" nowrap="nowrap">
$qreplylinkstart
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" width="27" height="14" $imagestyle />
{$ubbt_lang['QUICK_REPLY_ICON']}
$qreplylinkstop
</td>
</tr>
</table>
UBBTPRINT;
}
else {
if ($reply == "on") {
echo <<<UBBTPRINT
<table class="tablesurround" border="0">
<tr>
<td class="navigation">
{$postrow[$i]['replylinkstart']}
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle />
{$ubbt_lang['REPLY_ICON']}
{$postrow[$i]['replylinkstop']}
</td>
<td class="navigation">
{$postrow[$i]['quotelinkstart']}
<img src="{$config['images']}/quote.gif" border="0" alt="{$ubbt_lang['REPLY_POST']}" width="27" height="14" $imagestyle />
{$ubbt_lang['QUOTE_ICON']}
{$postrow[$i]['quotelinkstop']}
</td>
</tr>
</table>
UBBTPRINT;
}
}
//---------------
// Post, Edit, and Reply link stop
echo <<<UBBTPRINT
[/]
There is also the post button at the top of the postlist page that would be nice to get rid of too - to complete the removal hack. I have tried to get this to work, but alas, my PHP skills are meager. Here is what I've tried, but has not worked. Can someone tell me where I went wrong?
In postlist.tmpl I found:
[]
<table border="0" class="tablesurround">
<tr>
<td class="navigation" nowrap="nowrap">
<!-- postoption is either newpost.gif or greynewpost.gif -->
$newpoststart
<img src="{$config['images']}/$postoption" alt="{$ubbt_lang['MAKE_A_NEW']}" border="0" {$images['newpost']} $imagestyle />
{$ubbt_lang['NEW_POST_ICON']}
$newpoststop
</td>
<td class="navigation" nowrap="nowrap">
<!-- prevoption is either previous.gif or greyprevious.gif -->
$prevstart
<img src="{$config['images']}/$prevoption" alt="{$ubbt_lang['PREV_PAGE']}" border="0" {$images['previous']} $imagestyle />
{$ubbt_lang['PREV_ICON']}
$prevstop
</td>
<td class="navigation" nowrap="nowrap">
<a href="{$config['phpurl']}/ubbthreads.php?Cat=$Cat&C=$C">
<img src="{$config['images']}/all.gif" alt="{$ubbt_lang['FORUM_IND']}" border="0" {$images['all']} $imagestyle />
{$ubbt_lang['INDEX_ICON']}
</a>
</td>
<td class="navigation" nowrap="nowrap">
<!-- nextoption is either next.gif or greynext.gif -->
$nextstart
<img src="{$config['images']}/$nextoption" alt="{$ubbt_lang['NEXT_PAGE']}" border="0" {$images['next']} $imagestyle />
{$ubbt_lang['NEXT_ICON']}
$nextstop
</td>
<td class="navigation" nowrap="nowrap">
<!-- expandoption is either expand.gif or greyexpand.gif -->
$expandstart
<img src="{$config['images']}/$expandoption" alt="{$ubbt_lang['TEXT_EXP']}" border="0" {$images['expand']} $imagestyle />
{$ubbt_lang['EXP_ICON']}
$expandstop
</td>
<td class="navigation" nowrap="nowrap">
<!-- collapseoption is iether collapse.gif or greycollapse.gif -->
$collapsestart
<img src="{$config['images']}/$collapseoption" alt="{$ubbt_lang['TEXT_COLL']}" border="0" {$images['collapse']} $imagestyle />
{$ubbt_lang['COL_ICON']}
$collapsestop
</td>
</tr>
</table>
[/]
and replaced it with:
[]
UBBTPRINT;
//---------------
// Post link start
if ($post == "off") {
echo <<<UBBTPRINT
<table border="0" class="tablesurround">
<tr>
<td class="navigation" nowrap="nowrap">
<!-- prevoption is either previous.gif or greyprevious.gif -->
$prevstart
<img src="{$config['images']}/$prevoption" alt="{$ubbt_lang['PREV_PAGE']}" border="0" {$images['previous']} $imagestyle />
{$ubbt_lang['PREV_ICON']}
$prevstop
</td>
<td class="navigation" nowrap="nowrap">
<a href="{$config['phpurl']}/ubbthreads.php?Cat=$Cat&C=$C">
<img src="{$config['images']}/all.gif" alt="{$ubbt_lang['FORUM_IND']}" border="0" {$images['all']} $imagestyle />
{$ubbt_lang['INDEX_ICON']}
</a>
</td>
<td class="navigation" nowrap="nowrap">
<!-- nextoption is either next.gif or greynext.gif -->
$nextstart
<img src="{$config['images']}/$nextoption" alt="{$ubbt_lang['NEXT_PAGE']}" border="0" {$images['next']} $imagestyle />
{$ubbt_lang['NEXT_ICON']}
$nextstop
</td>
<td class="navigation" nowrap="nowrap">
<!-- expandoption is either expand.gif or greyexpand.gif -->
$expandstart
<img src="{$config['images']}/$expandoption" alt="{$ubbt_lang['TEXT_EXP']}" border="0" {$images['expand']} $imagestyle />
{$ubbt_lang['EXP_ICON']}
$expandstop
</td>
<td class="navigation" nowrap="nowrap">
<!-- collapseoption is iether collapse.gif or greycollapse.gif -->
$collapsestart
<img src="{$config['images']}/$collapseoption" alt="{$ubbt_lang['TEXT_COLL']}" border="0" {$images['collapse']} $imagestyle />
{$ubbt_lang['COL_ICON']}
$collapsestop
</td>
</tr>
</table>
UBBTPRINT;
}
else {
echo <<<UBBTPRINT
<table border="0" class="tablesurround">
<tr>
<td class="navigation" nowrap="nowrap">
<!-- postoption is either newpost.gif or greynewpost.gif -->
$newpoststart
<img src="{$config['images']}/$postoption" alt="{$ubbt_lang['MAKE_A_NEW']}" border="0" {$images['newpost']} $imagestyle />
{$ubbt_lang['NEW_POST_ICON']}
$newpoststop
</td>
<td class="navigation" nowrap="nowrap">
<!-- prevoption is either previous.gif or greyprevious.gif -->
$prevstart
<img src="{$config['images']}/$prevoption" alt="{$ubbt_lang['PREV_PAGE']}" border="0" {$images['previous']} $imagestyle />
{$ubbt_lang['PREV_ICON']}
$prevstop
</td>
<td class="navigation" nowrap="nowrap">
<a href="{$config['phpurl']}/ubbthreads.php?Cat=$Cat&C=$C">
<img src="{$config['images']}/all.gif" alt="{$ubbt_lang['FORUM_IND']}" border="0" {$images['all']} $imagestyle />
{$ubbt_lang['INDEX_ICON']}
</a>
</td>
<td class="navigation" nowrap="nowrap">
<!-- nextoption is either next.gif or greynext.gif -->
$nextstart
<img src="{$config['images']}/$nextoption" alt="{$ubbt_lang['NEXT_PAGE']}" border="0" {$images['next']} $imagestyle />
{$ubbt_lang['NEXT_ICON']}
$nextstop
</td>
<td class="navigation" nowrap="nowrap">
<!-- expandoption is either expand.gif or greyexpand.gif -->
$expandstart
<img src="{$config['images']}/$expandoption" alt="{$ubbt_lang['TEXT_EXP']}" border="0" {$images['expand']} $imagestyle />
{$ubbt_lang['EXP_ICON']}
$expandstop
</td>
<td class="navigation" nowrap="nowrap">
<!-- collapseoption is iether collapse.gif or greycollapse.gif -->
$collapsestart
<img src="{$config['images']}/$collapseoption" alt="{$ubbt_lang['TEXT_COLL']}" border="0" {$images['collapse']} $imagestyle />
{$ubbt_lang['COL_ICON']}
$collapsestop
</td>
</tr>
</table>
UBBTPRINT;
}
//---------------
// Post link stop
echo <<<UBBTPRINT
[/]
I'm pretty sure, maybe, that I didn't get the variable correct. Is $post correct? I tried all different variables including $newpost, $postoption, and I even got desperate and tried $newpoststart. What else is wrong with it? Lay it on me!