vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   get forum id in showthread? (https://vborg.vbsupport.ru/showthread.php?t=45798)

Exo 11-17-2002 12:08 AM

get forum id in showthread?
 
Hi,

how can i check the forum id in showthread?

if ($forumid!=298){
eval("dooutput(\"".gettemplate("showthread_new")." \");");
}
else {
eval("dooutput(\"".gettemplate("showthread")."\"); ");
}


the $forumid!=298 does not work so, because all forums use than the showthread_new template! :(


thanks for help! :)

Freddie Bingham 11-17-2002 02:25 AM

Try $foruminfo[forumid]

Exo 11-17-2002 03:19 AM

thanks for help! :)


but does not work :(

N!ck 11-17-2002 03:49 AM

$threadinfo[forumid]

Exo 11-17-2002 03:55 AM

still the same in all forums than :confused: :confused:

Freddie Bingham 11-17-2002 02:25 PM

Well, it would be $foruminfo[forumid] OR $threadinfo[forumid] in vB3, but I haven't looked at vB2 in such a long time. Sounds like to me, you have other issues as a forumid will never be the same in all forums. Doesn't make much sense does it?

Xenon 11-17-2002 02:38 PM

in vb2 i think it's $thread[forumid] ;)

TECK 11-17-2002 04:13 PM

Quote:

Originally posted by Exo
Hi,

how can i check the forum id in showthread?

Code:

if ($thread['forumid'] == value) {
  eval("dooutput(\"".gettemplate('showthread_new')."\");");
} else {
  eval("dooutput(\"".gettemplate('showthread')."\");");
}


Exo 11-17-2002 11:41 PM

ahhh thanks $thread[forumid] does now work! :))

Xenon 11-18-2002 03:54 PM

you're welcome ;)

Floren, it seems we know the code of vb2 better than some devs ;)


All times are GMT. The time now is 08:17 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.01055 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete