1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Add custom sidebar block

Discussion in 'Template Modifications [Archive]' started by Trombones13, Dec 9, 2010.

  1. Trombones13

    Trombones13 Well-Known Member

    I figured this would be complicated, but it's actually a pretty easy edit to make. :D I didn't already see a guide for this, so:

    1. Make a custom template (any title is fine):
    <div class="section">
    	<div class="secondaryContent">
    2. Open template PAGE_CONTAINER and find {xen:raw $sidebar}. Just below that (before the closing div tag), add:
    <xen:include template="name_of_your_custom_template" />
    That should be it! The block will appear at the bottom of the sidebar. If you want it to appear just below the visitor_panel block, but above the Staff/Members Online Now blocks, move the xen:include tag one line up, above {xen:raw $sidebar}. :)


    To choose an alternate location to place your sidebar block(s), please see this post. :)
  2. Peggy

    Peggy Well-Known Member

    Kurt do you have a screenshot or live demo of the finished "product"?
  3. DaKat

    DaKat Well-Known Member

    I'd like to see it, too!
  4. Trombones13

    Trombones13 Well-Known Member

    I'll take a screenshot later, but I'm using it in the "Get Social" block here.
    Blandt likes this.
  5. Blandt

    Blandt Well-Known Member

    Kurt .. you are my favorite member :D ...
    Trombones13 likes this.
  6. Peggy

    Peggy Well-Known Member

    Traitor... :(

    Blandt likes this.
  7. Trombones13

    Trombones13 Well-Known Member

    D'aww, thanks. :D
  8. Blandt

    Blandt Well-Known Member

    hahahahaha :D

    look at what Kurt says : quote " I figured this would be complicated, but it's actually a pretty easy edit to make. :D "

    ... and he took the time to post his discovery :)
    Trombones13, Peggy and EQnoble like this.
  9. EQnoble

    EQnoble Well-Known Member

    Spankx for this buddy, I'll put it to good use :) Carry on...
    Trombones13 likes this.
  10. Peggy

    Peggy Well-Known Member

    I am proud of you. :D
    Blandt and Trombones13 like this.
  11. Shelley

    Shelley Well-Known Member

    Well done. I took a screenshot and your more than free to add it into your post. Thanks for sharing. :)

    Trombones13 and Blandt like this.
  12. ddmmh

    ddmmh Well-Known Member

    Hi Trombones,

    Newbie question. When the template is made how is it saved? Php, txt? And where is it stored so I can may call it up with the other code? thanks.
  13. Peggy

    Peggy Well-Known Member

    Good question. You don't save is "as" anything. Just give it a title, with _ in between the words if there's more than one word in the title, and click the save button. It does it all for you. :)
    ddmmh likes this.
  14. Peggy

    Peggy Well-Known Member

    Kurt, what if I want to place the block in another position in the sidebar? Like right below the Members Online box.

    How would I do that?
  15. ddmmh

    ddmmh Well-Known Member

    Ahh inside the ACP. Got it, thanks Peggy.
  16. Peggy

    Peggy Well-Known Member

    Oooops, sorry, yes in the ACP.
  17. Trombones13

    Trombones13 Well-Known Member

    XF Sidebar Locations.png
    For all of these edits, the text you're putting in will be <xen:include template="kurt_social" />. Just replace kurt_social with the name of your template.

    1. Below the Visitor Panel (your name, messages, likes, and points):
    Template: forum_list
    Add above: <xen:include template="sidebar_online_users" />

    2. Below "Staff Online Now:"
    Template: sidebar_online_users
    Add above: <!-- block: sidebar_online_users -->

    3. Below "Members Online Now:"
    Template: forum_list
    Add above: <!-- block: forum_stats -->

    4. Below "Forum Statistics:"
    Template: forum_list
    Add below: <!-- end block: forum_stats -->

    5. Below all other sidebar blocks (in this instance, TaigaChat):
    Template: PAGE_CONTAINER
    Add below: <!-- end block: forum_stats --> and any other <xen:include template lines
  18. Peggy

    Peggy Well-Known Member

    Thank you sweetie!
  19. Trombones13

    Trombones13 Well-Known Member

    My previous post has been updated so that your sidebar blocks won't show up in other sidebars (i.e. in conversations). Big thanks to Shadab for the help. :D
    Peggy likes this.
  20. Travis

    Travis Active Member

    Sorry if I'm blind,but where? I don't see it!

Share This Page