Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
7,852 Members
164,864 Posts
38 Users Online

Please welcome our newest member, Marokas!

Affiliates
Go Back AdminFusion » Getting Started » Software » vBulletin » Variable for Forum ID?
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 08-30-2007, 09:41 PM   #1

Toucan42's Avatar

Title: Veteran

Points: 5,168, Level: 21Points: 5,168, Level: 21Points: 5,168, Level: 21
Level up: 22%, 382 Points neededLevel up: 22%, 382 Points neededLevel up: 22%, 382 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Apr 2006

Posts: 700

Location: www.NewOniTunes.com

Toucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to behold
Send a message via AIM to Toucan42 Send a message via MSN to Toucan42 Send a message via Yahoo to Toucan42  
 
Variable for Forum ID?

I want to run some conditional code in postbit based on forum id but can't find what variable to use to know the forum id. help anyone?
__________________
Where's Waldo?, Book Club, Scavenger Hunt, Role Playing, Travel Guide, Photos, Videos and more.
TalkWhatever.com - Blogs, Social Groups and Forum
Reply With Quote
Old 08-30-2007, 09:49 PM   #2

Toucan42's Avatar

Title: Veteran

Points: 5,168, Level: 21Points: 5,168, Level: 21Points: 5,168, Level: 21
Level up: 22%, 382 Points neededLevel up: 22%, 382 Points neededLevel up: 22%, 382 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Apr 2006

Posts: 700

Location: www.NewOniTunes.com

Toucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to beholdToucan42 is a splendid one to behold
Send a message via AIM to Toucan42 Send a message via MSN to Toucan42 Send a message via Yahoo to Toucan42  
 
I think it is $forum[forumid]

would a condition be written as:

<if condition="$forum[forumid] == xx">code</if>?
__________________
Where's Waldo?, Book Club, Scavenger Hunt, Role Playing, Travel Guide, Photos, Videos and more.
TalkWhatever.com - Blogs, Social Groups and Forum
Reply With Quote
Old 08-30-2007, 10:49 PM   #3

BamaStangGuy's Avatar



Title: Forum Enthusiast

Points: 14,699, Level: 36Points: 14,699, Level: 36Points: 14,699, Level: 36
Level up: 37%, 151 Points neededLevel up: 37%, 151 Points neededLevel up: 37%, 151 Points needed
Activity: 8%Activity: 8%Activity: 8%

Join Date: Sep 2005

Posts: 2,478

Location: Alabama

BamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond repute
Send a message via AIM to BamaStangGuy  
 
that looks like it should work.

You could also use it in an array:
PHP Code:
<if condition="in_array($forum['forumid'], array(1,2,3,6))"></if> 
__________________
Ford Mustang Forums - F-Series Trucks
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help converting please AnnCP SMF 1 09-18-2006 05:02 PM
Error logs pointing to undefined variable in photopost BamaStangGuy vBulletin 3 08-30-2006 04:43 AM
ads on vbulletin PostingWorld Graphics and Design 12 02-10-2006 06:44 AM

AdminFusion

All times are GMT +1. The time now is 01:52 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72