1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[oman] Style Chooser Link in Visitor Panel 1.5.1

Adds a link within the visitor panel to trigger the style chooser

  1. oman

    oman Well-Known Member

    oman submitted a new resource:

    [TH] Style Chooser Link in Visitor Panel - Adds a link within the visitor panel to trigger the style chooser

    Read more about this resource...
     
    Adam Howard and Mrs.T like this.
  2. oman

    oman Well-Known Member

    On the list to fix/implement:

    • Replicate the function of the footer style chooser link to actually show the name of the style being used.
    • Check permissions for viewing of styles.
    Sorted for 1.0.1!
     
    Last edited: Sep 8, 2013
    Adam Howard likes this.
  3. oman

    oman Well-Known Member

    oman updated [TH] Style Chooser Link in Visitor Panel with a new update entry:

    Update to replicate footer link behaviour, new display!

    Read the rest of this update entry...
     
    Adam Howard likes this.
  4. DRE

    DRE Well-Known Member

  5. oman

    oman Well-Known Member

    Adam Howard likes this.
  6. Adam Howard

    Adam Howard Well-Known Member

    Nothing wrong with having alternatives :)
     
    oman likes this.
  7. oman

    oman Well-Known Member

    oman updated [TH] Style Chooser Link in Visitor Panel with a new update entry:

    XenForo 1.3.0 Compatibility + New Phrase

    Read the rest of this update entry...
     
  8. kkk

    kkk Member

    Hi,
    How to remove Style selector in footer?

    style.jpg
     
  9. oman

    oman Well-Known Member

    Remove this part from the footer template:

    Code:
                    <xen:if is="{$canChangeStyle}">
                        <dt>{xen:phrase style}</dt>
                        <dd><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase style_chooser}" rel="nofollow">{$visitorStyle.title}</a></dd>
                    </xen:if>
     
  10. kkk

    kkk Member

    I know it.

    Can not be removed with extra css?

    .bla-bla-bla {
    display: none;
    }

    Class "chooser" removed style and language
     
  11. oman

    oman Well-Known Member

    I don't think so.

    I had a look myself in firebug, and I don't think there is a specific class for it. I tried to display none it, but it it got rid of other links. If I have a closer look I might be able to work it out.
     
  12. kkk

    kkk Member

    Ok
    tnx
     
  13. rafass

    rafass Well-Known Member

    how I had not seen this nice addon before?
    It is very useful, many users do not even know that is possible change the skin.(the style chooser is difficult to find) (button left)
    This addon is exactly what I was looking for a long time.
    installing............
     
  14. oman

    oman Well-Known Member

    If it all goes well for you and you are happy with the add on, feel free to leave a review. :)
     
  15. rafass

    rafass Well-Known Member

    1.gif
    I love it!! Thank you oman! ★★★★★
     
    oman likes this.
  16. Cyb3r

    Cyb3r Well-Known Member

    I just updated this on my site because "sidebar_visitor_panel" template has been changed with 1.5, here's how to do it:

    go to template modifications > [TH] Style Chooser Link in Visitor Panel > edit the only modification "sidebar_visitor_panel"

    Now in the find box add this:
    Code:
    <xen:if is="{$xenOptions.enableTrophies}">
                        <dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>
                    </xen:if>
    in replace box add this:
    Code:
    $0
                    <dl class="pairsJustified"><dt>{xen:phrase th_stylechooser_style}:</dt> <dd><xen:if is="{$canChangeStyle}"><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase style_chooser}" rel="nofollow">{$visitorStyle.title}</a></xen:if></dd></dl>
    Save the code and you are done. ;)

    Note: You have to enable debug mode in order to make changes to template modifications.
     
    oman likes this.
  17. oman

    oman Well-Known Member

    Thanks @Cyb3r - I'll put an update out shortly. :)
     
    Cyb3r likes this.
  18. oman

    oman Well-Known Member

    oman updated [TH] Style Chooser Link in Visitor Panel with a new update entry:

    Compatibility fix for XenForo Version 1.5.x

    Read the rest of this update entry...
     
    Cyb3r likes this.
  19. pecadm

    pecadm Member

    I just downloaded the latest version, but @Cyb3r's code change seems to be not included ?
    The template modification still replaces the whole block.

    btw: the <xen:if is="{$canChangeStyle}"> part should be at the beginning of the line.
    Otherwise, if users are not allowed to change the styles, they will still have a useless line starting with "Style:" but no style chooser ;)

    Code:
      <public_template_modifications>
        <modification template="sidebar_visitor_panel" modification_key="stylechooserlinkvisitorpanel" description="" execution_order="10" enabled="1" action="str_replace">
          <find><![CDATA[<xen:if is="{$xenOptions.enableTrophies}">
                        <dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>
                    </xen:if>]]></find>
          <replace><![CDATA[$0
                    <xen:if is="{$canChangeStyle}"><dl class="pairsJustified"><dt>{xen:phrase th_stylechooser_style}:</dt> <dd><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase style_chooser}" rel="nofollow">{$visitorStyle.title}</a></xen:if></dd></dl>
                    </xen:if>]]></replace>
        </modification>
      </public_template_modifications>
     
  20. oman

    oman Well-Known Member

Share This Page