vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   When a post is made? (https://vborg.vbsupport.ru/showthread.php?t=212208)

sheppardzwc 04-26-2009 01:15 PM

When a post is made?
 
Is there an <if> statement for when a post is created in a specific forum? Along with that, the title of that thread? I'm trying to create a line of text that will show up near the header when a post is made in a specific forum for my technical staff.

Lynne 04-26-2009 02:37 PM

The variable names used in the if statement would depend on which template you are using. So, which template are you modifying?

sheppardzwc 04-26-2009 02:52 PM

Quote:

Originally Posted by Lynne (Post 1799322)
The variable names used in the if statement would depend on which template you are using. So, which template are you modifying?

I'll probably use navbar. Our header is already customized and I don't want to add much more to it.

Lynne 04-26-2009 03:15 PM

You can try using $forumid in that template. I've never done a condition for the forumid in the navbar before. But, try (change x to your forumid):
HTML Code:

<if condition="$forumid == 'x'">
whatever
</if>


sheppardzwc 04-26-2009 03:49 PM

Quote:

Originally Posted by Lynne (Post 1799354)
You can try using $forumid in that template. I've never done a condition for the forumid in the navbar before. But, try (change x to your forumid):
HTML Code:

<if condition="$forumid == 'x'">
whatever
</if>


Ok, but is there any way that it could only show if a new post is made in that forum? i.e.

HTML Code:

<if condition="$newpost[forumid] == true">
stuff
</if>



All times are GMT. The time now is 04:21 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.03984 seconds
  • Memory Usage 1,725KB
  • 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_html_printable
  • (2)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