Add if rule in the plugin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zi5
    Member
    • Dec 2006
    • 64
    • 3.6.x

    Add if rule in the plugin

    Hello ,
    I just would like to know how i can put this if rule inside plugin ,
    <if condition="$show['member']">
    include a file for example
    </if>

    maybe you will tell me to use is rules , is the below right ?

    if (is_member_of($vbulletin->userinfo, 1)) (The group of guests)
    {
    //return empty result
    } else {
    include
    }

    Thanks ,
    Zi5
    بوابة نوكيا - محرك برامج عربي - عالم نوكيا - TravPL
  • Brandon_R
    Banned
    • Aug 2009
    • 243

    #2
    Code:
    if (is_member_of($vbulletin->userinfo, 1))
    {
    	\\Code here will run if the user is of usergroup guest
    }
    else
    {
    	\\Code here will run if the user if not of usergroup guest
    }

    Comment

    • Zi5
      Member
      • Dec 2006
      • 64
      • 3.6.x

      #3
      I already know this code , i had put it in my post , i hope you to re read my subject Brandon .
      Thanks ,
      Zi5
      بوابة نوكيا - محرك برامج عربي - عالم نوكيا - TravPL

      Comment

      • Removed-836727
        Banned by User Request
        • Apr 2006
        • 1274

        #4
        For only members:
        PHP Code:
        if ($show['member'])
        {
        ....

        Comment

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