vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   help with forumid (https://vborg.vbsupport.ru/showthread.php?t=53792)

winston 06-03-2003 02:38 PM

help with forumid
 
hi there
what do i change the value to to include this on all forums instead of just forumid 30.
PHP Code:

if (($threadinfo[forumid]==30 

and can i put 30,31,34 for multipile forums?
thnx

filburt1 06-03-2003 03:18 PM

PHP Code:

if (in_array($threadinfo['forumid'], array(303134)))
{
    ...


Always use quotes for array keys!

winston 06-03-2003 03:50 PM

so i have to change that whole line? I thought i could just change the value from 30 to 0 and it would include all forums but it didnt work on any after changing to 0. I wouldnt mind just including it on all forums. though without adding the array if possible. I'm very new to php but know enough to be dangerous. lol
thank you for the help
wins

noppid 06-03-2003 04:18 PM

if ( 1 ) { //($threadinfo[forumid]==30

This will cause the condition to be true and do the instructions in the IF statement no matter what. (ie. all forums.)

winston 06-03-2003 04:41 PM

thnx alot that worked perfectly

noppid 06-03-2003 04:43 PM

"I love it when a plan comes together!"

Xenon 06-03-2003 05:49 PM

Quote:

I love it when a plan comes together!
that sounds so familar to me.
translating into german and it sounds like Hannibal Smith ;)

noppid 06-03-2003 08:00 PM

You got it!!!

I always like ol' George.


All times are GMT. The time now is 12: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.00986 seconds
  • Memory Usage 1,724KB
  • 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_php_printable
  • (1)bbcode_quote_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