Apex

Discussion in 'Pre-Sale Questions' started by greenchicken, Feb 1, 2015.

  1. greenchicken

    greenchicken Customer

    6
    4
    3
    Love your work and I am ready to buy Apex...

    Collapsible sidebar question

    Can this be set by usergroup or will everyone be able to collapse it?


    Thanks
     
  2. Russ

    Russ Designer

    8,450
    1,949
    113
    This can be easily set to be configurable per user group by wrapping the icon in a conditional :).
     
  3. greenchicken

    greenchicken Customer

    6
    4
    3
    You don't have that conditional for say usergroup 7 and where to put it do you?
    I would like to give my paying members an option to get it out of the way as an option...
    Thanks for the help, and the quality skins at great prices. I have been doing this since about 2001 and this is the most satisfied I have ever been with a style/skin (former vb user)
     
    Russ likes this.
  4. Russ

    Russ Designer

    8,450
    1,949
    113
    Appreciate it :)

    Here's a list of conditionals:

    https://xenforo.com/community/resources/conditional-statements.1604/

    What you can do is... open the template: rreadcrumb

    do a search for:
    Code:
    Copy Source
    <xen:if is="@xb_enable_collapsesidebar">
    
    replace with:

    Code:
    Copy Source
    <xen:if is="@xb_enable_collapsesidebar AND {xen:helper ismemberof, $visitor, 7}">
    
    Make sure all these changes you're putting in are a child style of Apex too so you don't lose any customizations when upgrading!
     
    greenchicken likes this.
  5. greenchicken

    greenchicken Customer

    6
    4
    3
    WOW that worked wonderful ...
    You made a slight error as you added an extra space behind the comma and 7 (for reference)
    Code:
    Copy Source
    <xen:if is="@xb_enable_collapsesidebar AND {xen:helper ismemberof, $visitor, 7}">
    It should be
    Code:
    Copy Source
    <xen:if is="@xb_enable_collapsesidebar AND {xen:helper ismemberof, $visitor,7}">
    and the name of the template is breadcrumb

    I figured it out...
    Thanks so much for the help
     
  6. Russ

    Russ Designer

    8,450
    1,949
    113
    Ah nice :), that space is on the official resource so I left it in there heh. Glad it's working for you. Let me know if you need anything else.
     
    greenchicken likes this.
  7. greenchicken

    greenchicken Customer

    6
    4
    3
    This works better than forcing a usergroup to a style like we were talking about over there.. And it makes my mods happy too since they can collapse it now by adding multiple usergroup id's

    Thanks
     
    Russ likes this.
  8. greenchicken

    greenchicken Customer

    6
    4
    3
    I like your work man, may hire you to build me a custom skin for my site one day
     
    Russ likes this.
  9. Russ

    Russ Designer

    8,450
    1,949
    113
    Sounds good to me :)
     

Share This Page