PDA

View Full Version : Is there a way to remove the "Last Article" column from the main content page?


kholtman
05-30-2008, 10:40 PM
Hopefully a checkbox hidden somewhere, and not by modifying a PHP file.

Thanks.

Brian
05-31-2008, 06:03 PM
You can do that by modifying the 'ADV_DYNA', 'ADV_DYNA_BROWSECATEGORY', and 'adv_dyna_categorybits_level1/2' templates to remove the code for the column.

Our Sponsors
 

Noctavia
08-09-2008, 06:11 AM
I've just gone and done this for my site. For those wanting to know how, here's what I did. Find the bits of code below and put the <!-- and --> around it.

ADV_DYNA
<!-- <td align="center" class="thead" width="150"><span style="white-space: nowrap"><phrase 1="$vbphrase[entry]">$vbphrase[last_x]</phrase></span></td>
-->

ADV_DYNA_BROWSECATEGORY
<!-- <td align="center" class="thead" style="white-space: nowrap" width="150"><a href="$catsorturls[lastentrydateline]" rel="nofollow"><phrase 1="$vbphrase[entry]">$vbphrase[last_x]</a> $catarrow[lastentrydateline]</phrase></td>
-->

adv_dyna_categorybit_level1
(I actually ended up deleting all this code as the <!-- and --> didn't want to work properly...
<!-- <td class="alt2" nowrap="nowrap">
<if condition="$cats['lastentryid']">
<span class="smallfont"><strong><a href="$cats[lastentrylink]">$cats[lastentrytitle]</a></strong><br />
$vbphrase[by]
<if condition="$cats['lastentryuserid']">
<a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$cats[lastentryuserid]">$cats[lastentryusername]</a>
<else />
$vbphrase[guest]
</if>
</span><div class="smallfont" align="right">$cats[lastupdateddate] <span class="time">$cats[lastupdatedtime]</span> <a href="$cats[lastentrylink]"><img alt="" border="0" src="$stylevar[imgdir_button]/lastpost.gif" /></a></div>
<else />
<div class="smallfont">$vbphrase[never]</div>
</if>
</td>
-->

adv_dyna_categorybit_level2
<!-- <td class="alt2" nowrap="nowrap">
<div class="smallfont">
<if condition="$cats['lastentryid']">
<strong><a href="$cats[lastentrylink]">$cats[lastentrytitle]</a></strong><br />
$vbphrase
<if condition="$cats['lastentryuserid']">
<a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$cats[lastentryuserid]">$cats[lastentryusername]</a>
<else />
$vbphrase[guest]
</if>
<div class="smallfont" align="right">$cats[lastupdateddate] <span class="time">$cats[lastupdatedtime]</span> <a href="$cats[lastentrylink]"><img alt="" border="0" src="$stylevar[imgdir_button]/lastpost.gif" /></a></div>
<else />
$vbphrase[never]
</if>
</div>
</td>
[B]-->

ericpsf
08-10-2008, 04:08 AM
Hi Noctavia,

It works perfectly only on the main page but messed up in the subsequent sub-category pages.

Any advise?

Thank you.

Our Sponsors
 

Arkidas
08-10-2008, 11:40 AM
Same here. Something's wrong with adv_dyna_categorybit_level1 ( I removed the code, didn't comment it out ).

Noctavia
08-11-2008, 06:42 AM
I've just noticed the same on mine (after reading your comment). As I mentioned I above, I too had to remove the code from adv_dyna_categorybit_level1 and adv_dyna_categorybit_level2, although that doesn't appear to have fixed it.

Hrm...