Log in

View Full Version : edit announcebits?


aliencode
04-20-2004, 05:28 PM
Anyone have any experience on editing $announcebits? There is no template for it?

Zachery
04-20-2004, 05:29 PM
Anyone have any experience on editing $announcebits? There is no template for it?
What template is announcebits found in?

aliencode
04-20-2004, 05:38 PM
Its found in the FORUMHOME template and in the announcements template itself - I want to be able to edit out administrators avatars and make the announcements more like one liners but I think $announcebits is the string that carries all of them?

aliencode
04-23-2004, 04:16 PM
*bump* help plz

Duq
12-16-2004, 04:01 PM
you can edit $announcebits in the postbit and postbit_legacy templates. Depending on what you use.

<if condition="$show['announcement']">
<td class="tcat" style="font-weight:normal" colspan="3">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="tcat" style="font-weight:normal" $scrolltothis>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="tcat"></td>
<td class="tcat" style="font-weight:normal" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a></if>
</td>
</if>


as you can see it is decided by a if construction if it is a normal post or a announcement. This code is only for the categroy bar above a post. So if you want to make an announcement completly different. You should put the entire code for a post bit in the IF construction. Paste one before the else, and one after the else. And then edit the postbit you pasted between the following part:

<if condition="$show['announcement']"> blah
<else />

sorry for my lack of proper enlish, it is not really my main language, and sorry for bumping this. I was trying to figure the same thing out a couple of minutes ago and I noticed I couldn't find one helpfull post on any of the boards. But probable I overlooked it :)