Advertisement:

Author Topic: custom links in footer  (Read 2521 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: 8,238
  • 'Tis the gift to be simple (duh)
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: 8,238
  • 'Tis the gift to be simple (duh)
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

  • SMF Hero
  • ******
  • Posts: 1,436
  • 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
The configuration of my Linux VPS (SMF 2.0 with 140+ mods) can be found here and notes on my mods can be found here

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,274
    • StoryBB/StoryBB 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)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.