Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Joseph H on March 10, 2012, 07:26:51 AM

Title: How can i reduce the number of items at the footer of my website?
Post by: Joseph H on March 10, 2012, 07:26:51 AM
I have installed some mods and themes and both add something to the footer of my website. www.darforums.tk so how can i remove some?

Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Aleksi "Lex" Kilpinen on March 10, 2012, 07:27:23 AM
By not using mods and themes that add such?
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Joseph H on March 10, 2012, 07:35:30 AM
Isn't there another way of editing some files?

Like the index.temple.php of the theme or anything?
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Aleksi "Lex" Kilpinen on March 10, 2012, 07:37:10 AM
Basically, if you install a mod that places it's copyrights somewhere - you can't remove them without asking permission from the mod author.
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Joseph H on March 10, 2012, 07:41:24 AM
The items i want to remove is just links, not the authors copyright
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Aleksi "Lex" Kilpinen on March 10, 2012, 07:43:32 AM
The only links I can see that can fairly safely be removed, are the XHTML RSS and WAP2 links in the footer. Those can be removed from index.template.php.
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Joseph H on March 10, 2012, 07:48:29 AM
Im viewing the index.temple.php but i can remove them... I always fail.. Can you help me on that? Plz
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Aleksi "Lex" Kilpinen on March 10, 2012, 07:51:29 AM
In the default theme's index.template.php it would be this


<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>

You should be safe to just delete that part.
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Joseph H on March 10, 2012, 07:56:13 AM
Ok... Im trying, but i will have another copy of the original index.temple.php

and i hope its the index.temple.php of my current theme
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Joseph H on March 10, 2012, 08:02:53 AM
I searched for the line but i didnt get it
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Aleksi "Lex" Kilpinen on March 10, 2012, 08:03:59 AM
Do note that I said index.template.php, not index.php - You should be looking at /Themes/*your theme*/index.template.php :)
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Joseph H on March 10, 2012, 08:15:42 AM
Yes, its the index.temple.php of my theme. But it just change during downloading
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Aleksi "Lex" Kilpinen on March 10, 2012, 08:17:01 AM
No, that is not an index.template.php of an SMF theme.
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Joseph H on March 10, 2012, 08:42:44 AM
Ok bro... I think now i got it right
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Aleksi "Lex" Kilpinen on March 10, 2012, 08:47:25 AM
No, that's exactly the same files as you had before - just with a different name.
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Joseph H on March 10, 2012, 09:02:08 AM
Thnx bro... I have quoted the code, but i will have to download the file using a pc, now im using mobile. Maybe thats why i get the wrong file all the time
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Marcus Forsberg on April 04, 2012, 07:02:49 AM
Hey there,

Did you manage to find the correct file on your PC? Did the edits go well? If you need no further assistance, please do mark the topic solved! :)

As for removing copyrights: I agree they're very annoying, but if you can't handle them, you should simply uninstall the mod in question. It's very disrespectful towards the mod author to remove their copyright if the mod is free. Modding is hard work you know!
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: typan4 on March 29, 2013, 05:40:35 PM
Quote from: Aleksi "Lex" Kilpinen on March 10, 2012, 07:51:29 AM
In the default theme's index.template.php it would be this


<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>

You should be safe to just delete that part.

An old post I know but,
I removed the above code to remove the rss wap2 xhtml at the foot of my page, but checking the error logs, i was getting constant '8: Undefined index:' in the logs, so I replaced it, but the 3 links did not reapear and I'm still getting the errors ?
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Arantor on March 29, 2013, 05:41:58 PM
What undefined index, exactly?
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: typan4 on March 29, 2013, 05:56:21 PM
8: Undefined index: wap2
8: Undefined index: rss
8: Undefined index: xhtml

It seems to be bringing up that error for every page you go on. so a lot of errors !
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Arantor on March 29, 2013, 06:03:28 PM
But if you removed that code, there is no reason for those indexes to be called for, which suggests it wasn't done properly.
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: typan4 on March 29, 2013, 07:04:39 PM
The above code is exactly what I removed. lines 140-142-143

<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
         ', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
         <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>

But getting errors like this

http://www.midlandbullets.co.uk/smf/index.php?board=1.0
8: Undefined index: rss
File: /home/midlandb/public_html/smf/Themes/default/MessageIndex.template.php (html_above sub template - eval?)
Line: 148
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Arantor on March 29, 2013, 07:33:09 PM
How *exactly* did you remove it?
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: typan4 on March 29, 2013, 07:51:21 PM
In my cPanel I highlighted it in the index.template.php then pressed delete.

I've also tried replacing it with a index.template.php from a clean test forum. still get the errors and no links at the bottom of the page
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: Arantor on March 29, 2013, 10:21:23 PM
So the language data for them is missing in the index.english.php file. But that doesn't explain why if you deleted it, the code is still being called. That would imply that you didn't actually save the changes.
Title: Re: How can i reduce the number of items at the footer of my website?
Post by: typan4 on March 30, 2013, 04:59:14 AM
I think I may have fixed it. I've replaced the index.english.php file as I had recently changed the name 'guest' to 'ex member' I can only think I must have deleted something else by mistake as well. Just cleared the error logs and no new ones as yet.  :)