Current time: 12-10-2024, 02:26 AM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[18.97.14.85], connected from Cambridge, Massachusetts United States
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FREE] How To Array condition in MyBB
02-05-2010, 11:50 AM
Post: #1
Tongue [FREE] How To Array condition in MyBB
Hi,

I want to add a condition to a content in the header of MyBB.

I have enabled the PHP and templates conditionals and I need to add the code manyally, here is the code:

PHP Code:[Highlight]
<if condition="!in_array($GLOBALS[forumid],array(2))">
Here is the content.
</if> 

What I want to do is enable the code with the exception of the array code in this case 2.

Thanks.

Rafael_mybb_import479's signature -Rafael
Im a Big MyBB Fan!!! Cool
My Forum
My Blog

[Image: signature.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
0 member(s) viewed this thread in the last 365 days :
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [FREE] Forum layout black 1 2,509 02-24-2011 03:33 AM
Last Post: iiNSANE J3SUS
  [Free] Help with expcolimage howman 3 2,703 11-27-2010 03:31 PM
Last Post: howman
  [FREE] Latest Threads black 4 2,258 10-09-2010 01:55 AM
Last Post: black

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com