• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • 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.
  • 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

Peggy

Well-known member
#1
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! :)
 
R

ragtek

Guest
#2
[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]
 

Brogan

XenForo moderator
Staff member
#5
[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]
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.
 

Peggy

Well-known member
#7

Peggy

Well-known member
#8
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. :)