Advertisement:

Author Topic: custom links in footer  (Read 1690 times)

Offline iorG19

  • Newbie
  • *
  • Posts: 2
custom links in footer
« on: October 19, 2017, 06:36:17 PM »
Hi folks,

I wonder how can i add some custom links in footer or some banner.
My point is to put a little banner 15px x 80px (right) aligned before default links:
help in /index.php?action=help
rules in index.php?action=help;sa=rules

and so on...

My question is:
What's the file should i edit and where is it?
Thank you in advance and cheers.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,110
  • 'Tis the gift to be simple
Re: custom links in footer
« Reply #1 on: October 19, 2017, 06:46:31 PM »
index.template.php

Code: [Select]

echo '
<ul>
<li class="floatright"><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', (!empty($modSettings['requireAgreement'])) ? '| <a href="' . $scripturl . '?action=help;sa=rules">' . $txt['terms_and_rules'] . '</a>' : '', ' | <a href="#top_section">', $txt['go_up'], ' ▲</a></li>
<li class="copyright">', theme_copyright(), '</li>
</ul>';


Offline iorG19

  • Newbie
  • *
  • Posts: 2
Re: custom links in footer
« Reply #2 on: October 19, 2017, 07:07:21 PM »
yes i fond it but i don't know how to put it;

can you do it for me please with the example bellow

Code: [Select]
<a href="http://www.google.com"> <img src="{url_of_img}" height="15px" width="80px" border="0" alt="hello, Join me"></a>

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,110
  • 'Tis the gift to be simple
Re: custom links in footer
« Reply #3 on: October 19, 2017, 07:10:16 PM »
Code: [Select]

<li class="floatright"><img src="{url_of_img}" height="15px" width="80px" border="0" alt="hello, Join me"><a href="', $scripturl, '?action=help">', $txt['help'], '</a>


Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,117
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: custom links in footer
« Reply #4 on: October 20, 2017, 01:29:29 AM »
The OP may be interested in the "Global Headers and Footers" mod

http://custom.simplemachines.org/mods/index.php?mod=351
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,059
    • Arantor on GitHub
Re: custom links in footer
« Reply #5 on: October 20, 2017, 04:13:11 AM »
That mod doesn't list compatibility with 2.1 - and that would put it above the footer not in the footer itself where these links are (by default in 2.1)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.