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.

Footer Links on Portal and Forum

Discussion in 'Template Modifications [Archive]' started by Peggy, Apr 30, 2011.

  1. Peggy

    Peggy Well-Known Member

    On my webite I'm using Erik's Flexile style and Jaxel's portal. I wanted a place where I could place Site Sponsor links on the portal.

    Renada tried to help me with a module, bless her heart, but we just couldn't get it to look right. Then I decided that I wanted the links separate from the portal content anyway, and while I'm at it, why not have them on every page.

    So I enlisted Brogan's help, bless him. :) And here's what we came up with.

    In the templates section of your style, create a new template, give it a name (I named mine footer_links), add the following content, and save.

    Code:
    <div class="messageText ugc baseHtml pageBackground" style="padding-top: 1em">
    <table border="0"  width="100%" cellpadding="5" cellspacing="5" valign="center">
    <tr>
    <td style="border:0; font-family: Trebuchet MS; font-size: 13px"><a href="http://www.your link here">Your link could be here</a></td>
    <td style="border:0; font-family: Trebuchet MS; font-size: 13px"><a href="http://www.your link here">Your link could be here</a></td>
    <td style="border:0; font-family: Trebuchet MS; font-size: 13px"><a href="http://www.your link here">Your link could be here</a></td>
    <td style="border:0; font-family: Trebuchet MS; font-size: 13px"><a href="http://www.your link here">Your link could be here</a></td>
    <td style="border:0; font-family: Trebuchet MS; font-size: 13px"><a href="http://www.your link here">Your link could be here</a></td>
    </tr>
    </table>
    </div>
    Then go to the PAGE_CONTAINER template, and find:
    Code:
    <xen:hook name="page_container_breadcrumb_bottom">
                <div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
                </xen:hook>
    ABOVE this, add:
    Code:
    <xen:include template="footer_links" />
    This will place the footer links right above the bottom breadcrumb. If you want the links below the breadcrumb, place the above snippet, in the PAGE_CONTAINER template below
    Code:
    <xen:hook name="page_container_breadcrumb_bottom">
                <div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
                </xen:hook>
    Now, this is just how I did it, for my particular needs. If you want the footer links only on the portal, or only on the forum, you can ask here and I'm sure someone (probably Brogan :p ) will help you.

    Enjoy! :)
     
    Neal likes this.
  2. ragtek

    ragtek Guest

    [ot]
    AS you see, there's a hook, IMHO it would be better to use this, instead of changing the template because you wouldn't need to change the template on every update where you would need to revert the original template;)
    [/ot]
     
  3. Peggy

    Peggy Well-Known Member

    Since I don't know how to use hooks (not a coder), can you advise as to how to do this?
     
    bogus likes this.
  4. ragtek

    ragtek Guest

  5. Brogan

    Brogan XenForo Moderator Staff Member

    While I take your point, this is the template modifications forum, not the add-on releases forum and not everyone is capable of creating add-ons using hooks, etc.
     
  6. ragtek

    ragtek Guest

  7. Peggy

    Peggy Well-Known Member

  8. Peggy

    Peggy Well-Known Member

    I should probably add that the style that I edit templates in is a child style, and I do not lose my edits with upgrades. :)
     

Share This Page