Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: iorG19 on October 19, 2017, 06:36:17 PM

Title: custom links in footer
Post by: iorG19 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.
Title: Re: custom links in footer
Post by: Sir Osis of Liver on October 19, 2017, 06:46:31 PM
index.template.php



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>';


Title: Re: custom links in footer
Post by: iorG19 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

<a href="http://www.google.com"> <img src="{url_of_img}" height="15px" width="80px" border="0" alt="hello, Join me"></a>
Title: Re: custom links in footer
Post by: Sir Osis of Liver on October 19, 2017, 07:10:16 PM


<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>


Title: Re: custom links in footer
Post by: aegersz 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
Title: Re: custom links in footer
Post by: Arantor 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)