Jump to content


- - - - -

RESOLVED: "If category"?


  • Please log in to reply
9 replies to this topic

#1 xmobile

xmobile

    Advanced Member

  • Members
  • PipPipPipPip
  • 86 posts
  • Real Name:Miro Vodkca
  • IPB Version:v3.0.x

Posted 13 June 2010 - 11:57 AM

how can i show word for example "hello" in category with id only 1 and 3 not 2 ?

thanks

#2 xmobile

xmobile

    Advanced Member

  • Members
  • PipPipPipPip
  • 86 posts
  • Real Name:Miro Vodkca
  • IPB Version:v3.0.x

Posted 13 June 2010 - 12:27 PM

i am coded this but its not works ;)

<if="$this->ipsclass->forum['id'] == 3">
ok
<else />
not
</if>

Edited by xmobile, 13 June 2010 - 12:33 PM.


#3 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 13 June 2010 - 12:45 PM

Try this:

<if="$data['id'] == X">
ok
<else />
not
</if>

X = Category ID. Not tested (no 23x testboard to hand at the moment) ;)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#4 xmobile

xmobile

    Advanced Member

  • Members
  • PipPipPipPip
  • 86 posts
  • Real Name:Miro Vodkca
  • IPB Version:v3.0.x

Posted 13 June 2010 - 12:46 PM

going to test :)

//not working ;)

Edited by xmobile, 13 June 2010 - 12:48 PM.


#5 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 13 June 2010 - 12:49 PM

<if="$this->ipsclass->input['f'] == X">
Alrightyo
<else />
Negative
</if>


#6 xmobile

xmobile

    Advanced Member

  • Members
  • PipPipPipPip
  • 86 posts
  • Real Name:Miro Vodkca
  • IPB Version:v3.0.x

Posted 13 June 2010 - 12:50 PM

will try ;)

Edited by xmobile, 13 June 2010 - 01:10 PM.


#7 xmobile

xmobile

    Advanced Member

  • Members
  • PipPipPipPip
  • 86 posts
  • Real Name:Miro Vodkca
  • IPB Version:v3.0.x

Posted 13 June 2010 - 01:11 PM

Martin thankssss ;)

also how can i make array of groups when will be showed true ? :)

for example ok will be cats 2,3,4,5 only :)

#8 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 13 June 2010 - 01:47 PM

The issue this topic was opened for has now been resolved. ;)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#9 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 13 June 2010 - 01:57 PM

View Postxmobile, on Jun 13 2010, 03:11 PM, said:

Martin thankssss ;)

also how can i make array of groups when will be showed true ? :)

for example ok will be cats 2,3,4,5 only :)
<if="in_array( $this->ipsclass->input['f'], array( 2,3,4,5,6 )">


Glad I could help :)

#10 xmobile

xmobile

    Advanced Member

  • Members
  • PipPipPipPip
  • 86 posts
  • Real Name:Miro Vodkca
  • IPB Version:v3.0.x

Posted 13 June 2010 - 02:02 PM

okay thanks i will never forget who helped me a lot ! ;)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users