vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   edit announcebits? (https://vborg.vbsupport.ru/showthread.php?t=64149)

aliencode 04-20-2004 05:28 PM

edit announcebits?
 
Anyone have any experience on editing $announcebits? There is no template for it?

Zachery 04-20-2004 05:29 PM

Quote:

Originally Posted by aliencode
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.

Quote:

<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:

Quote:

<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 :)


All times are GMT. The time now is 02:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00998 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete