vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   if posts in thread < 2 then .... (https://vborg.vbsupport.ru/showthread.php?t=78591)

diesel08 03-23-2005 01:08 AM

if posts in thread < 2 then ....
 
i want to add code between the nav bar and the thread when viewing a thread using showthread.php

i want the conditions for this text to be displayed to be:

if posts in this thread < 2 & forumid == 15 then show this <HTML>

how can i do this?

Link14716 03-23-2005 01:26 AM

Code:

<if condition="($threadinfo['replycount'] + 1) < 2">
HTML CODE HERE
</if>


diesel08 03-23-2005 01:36 AM

hey link

i dont see anything in your reply? did it maybe not save it?

thanks

hate 03-23-2005 01:38 AM

If you can not see the code he posted it means your showing up as unlicenced, and you should go to vbulletin.com/members click on priority support, make sure your email here is entered there.

Then you can view his code.

diesel08 03-23-2005 04:06 AM

i am confirmed... i have 2 registered licences.. can someone paste it outside the box so i can see it?

hate 03-23-2005 04:11 AM

No one will, the reason it is in the box is to ensure that only valid members get to see it.

Your best bet if you are licenced is to double check your email and resubmit it.

diesel08 03-23-2005 06:12 AM

wierd.. it works from home? i see the code.. i was logged in away from home and it doesnt work

anyway thats great, but how do i specify forumid = 15? within this code

hate 03-23-2005 06:17 AM

Code:

<if condition="($threadinfo['replycount'] + 1) < 2 And $thread[forumid] ==15">
Change the first part to that, it should work for you


All times are GMT. The time now is 06:39 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.01080 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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