The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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! |
#2
|
||||
|
||||
Try $foruminfo[forumid]
|
#3
|
||||
|
||||
thanks for help!
but does not work |
#4
|
|||
|
|||
$threadinfo[forumid]
|
#5
|
||||
|
||||
still the same in all forums than
|
#6
|
||||
|
||||
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?
|
#7
|
||||
|
||||
in vb2 i think it's $thread[forumid]
|
#8
|
||||
|
||||
Quote:
Code:
if ($thread['forumid'] == value) { eval("dooutput(\"".gettemplate('showthread_new')."\");"); } else { eval("dooutput(\"".gettemplate('showthread')."\");"); } |
#9
|
||||
|
||||
ahhh thanks $thread[forumid] does now work! )
|
#10
|
||||
|
||||
you're welcome
Floren, it seems we know the code of vb2 better than some devs |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|