Announcement

Collapse
No announcement yet.

If Conditionals - Every Usergroup Except Group X

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sergio68
    replied
    Thx.

    Leave a comment:


  • Colin F
    replied
    Conditionals and variables won't work in phrases.

    Leave a comment:


  • Sergio68
    replied
    Ok, in the footer it's working, probably directly in the text copyright variable it's not possible.

    Leave a comment:


  • Sergio68
    replied
    Originally posted by Lats View Post
    Just to confirm, this is for your copyright text at the bottom of your forum? Can you not just place the number in there manually?

    Or, does your copyright change from forum to forum?
    I would like to add in that copyright text the HTML I need just couse I was confortable, but I need a link to the RSS feed of that specific forum.

    I can otherwise add it in the footer manually hoping I can read that variable.

    Leave a comment:


  • Lats
    replied
    Just to confirm, this is for your copyright text at the bottom of your forum? Can you not just place the number in there manually?

    Or, does your copyright change from forum to forum?

    Leave a comment:


  • Sergio68
    replied
    I've also tried $forum[forumid] but it's not working, I suppose there is a particolar syntax to let it works.

    Leave a comment:


  • Sergio68
    replied
    Ok this way is readed as a variable : '$forumid' but the result is empty

    Leave a comment:


  • Sergio68
    replied
    Originally posted by Lats View Post
    Try placing $forumid within double quotes - "$forumid"
    Nope, this is the output URL : http://www.bodyweb.it/forums/external.php?type=rss2&forumids=%22$forumid%22

    Instead of : http://www.bodyweb.it/forums/externa...ss2&forumids=9

    Leave a comment:


  • Lats
    replied
    Try placing $forumid within double quotes - "$forumid"

    Leave a comment:


  • Sergio68
    replied
    Probably I did not explain it in the correct way.

    I'm trying from the admin panel to insert in the Copyright Text variable some extra HTML.

    PHP Code:
    Copyright  1999-2006 Bodyweb.it - <br><br /><a href='feed://www.bodyweb.it/forums/external.php?type=rss2&amp;forumids=$forumid'><img src='/forums/images/misc/rss2.gif' border='0' /></a><br><br /> 
    But the output on the link is $forumid and not the number.

    Leave a comment:


  • Lats
    replied
    Try this...
    Code:
    <if condition="$forumid == 2">

    Leave a comment:


  • Sergio68
    replied
    Originally posted by Lats View Post
    Try this...
    Code:
    <if condition="$bbuserinfo[usergroupid] != 12">
    Thx, that's the way to read vbulletin variables, just what I need.
    Can I ask you:
    a) What's the variable for forum number ?
    b) The syntax of that if condition, in PHP I use { } instead of <>

    Leave a comment:


  • Seawolf
    replied
    Thanks

    Leave a comment:


  • Lats
    replied
    Try this...
    Code:
    <if condition="$bbuserinfo[usergroupid] != 12">

    Leave a comment:


  • Seawolf
    started a topic If Conditionals - Every Usergroup Except Group X

    If Conditionals - Every Usergroup Except Group X

    I know there's a way to do this, I used to do it myself... I just can't remember, I'm rusty.

    Something like <if usergroup = !12>


    something like that....

    what I'm trying to do is display adsense ads on my forum to every usergroup except contributors, which is group #12.

    Thanks.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X