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

XF 1.1 How I can move sidebar (not all)

Discussion in 'XenForo Questions and Support' started by Marocinoh, Jun 11, 2012.

  1. Marocinoh

    Marocinoh Member

    Hi Xenforo Fan's,
    I have a question, what this the code for paste in other template?
    Look at screenshot, please.
    Thanks for advance,
    Ali

    Ps: SorRy, FoR My EnGliSh :)
     

    Attached Files:

  2. Chris D

    Chris D XenForo Developer Staff Member

    Hi this is the sidebar_visitor_panel

    This is the code:

    Code:
    <xen:if is="{$visitor.user_id}">
     
    <div class="section visitorPanel">
    <div class="secondaryContent">
     
    <xen:avatar user="$visitor" size="m" img="true" />
     
    <div class="visitorText">
    <h2>{xen:phrase signed_in_as_x_sidebar, 'name={xen:helper username, $visitor, 'NoOverlay'}'}</h2>
    <div class="stats">
    <xen:hook name="sidebar_visitor_panel_stats">
    <dl class="pairsJustified"><dt>{xen:phrase messages}:</dt> <dd>{xen:number $visitor.message_count}</dd></dl>
    <dl class="pairsJustified"><dt>{xen:phrase likes}:</dt> <dd>{xen:number $visitor.like_count}</dd></dl>
    <dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>
    </div>
    </xen:hook>
    </div>
     
    </div>
    </div>
     
    <xen:else />
     
    <div class="section loginButton">
    <div class="secondaryContent">
    <label for="LoginControl" id="SignupButton"><a href="{xen:link login}" class="inner">{xen:if $xenOptions.registrationSetup.enabled, {xen:phrase sign_up_now}, {xen:phrase log_in}}</a></label>
    </div>
    </div>
     
    </xen:if>
    Where are you wanting to move it to?
     
    Marocinoh likes this.
  3. Marocinoh

    Marocinoh Member

    Yeah Thanks Yorick! :)
    But, it's not beautiful :(

    Move in ad_header, look at picture :/
     

    Attached Files:

    • b.jpg
      b.jpg
      File size:
      18.8 KB
      Views:
      11
  4. Chris D

    Chris D XenForo Developer Staff Member

    Yeah, that might not be the best location for it.
     
  5. Russ

    Russ Well-Known Member

    Marocinoh likes this.
  6. Marocinoh

    Marocinoh Member

    Yeah, it is her that I would do but I do not know coded ...
     
  7. Marocinoh

    Marocinoh Member

    My code:
    PHP:
    <xen:hook name="ad_header" />
    <
    div style="float: right; width: 300px; position: relative; top: 0px;">
     
    <
    xen:if is="{$visitor.user_id}">
     
    <
    div class="section visitorPanel">
    <
    h2>Bienvenue {xen:helper username$visitor'NoOverlay'whitecenter}</h2>
    <
    xen:avatar user="$visitorsize="s" img="true" />
    {
    xen:number $visitor.message_count} {xen:phrase messages}
    {
    xen:number $visitor.like_count} {xen:phrase likes}
    {
    xen:number $visitor.trophy_points} {xen:phrase points}
    <
    div class="visitorText">
    <
    div class="stats">
    <
    xen:hook name="sidebar_visitor_panel_stats">
    </
    div>
    </
    xen:hook>
    </
    div>
     
    </
    div>
     
    <
    xen:else />
     
    </
    xen:if>
    </
    div>
    1. How I can align Message count, like count, trophy count near my avatar?
    2. How I can add a background black (fieldset arround)
    3. It's all :/

    Thanks for advance,
    Ali
     

    Attached Files:

  8. Marocinoh

    Marocinoh Member

Share This Page