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?
By not using mods and themes that add such?
Isn't there another way of editing some files?
Like the index.temple.php of the theme or anything?
Basically, if you install a mod that places it's copyrights somewhere - you can't remove them without asking permission from the mod author.
The items i want to remove is just links, not the authors copyright
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.
Im viewing the index.temple.php but i can remove them... I always fail.. Can you help me on that? Plz
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.
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
I searched for the line but i didnt get it
Do note that I said index.template.php, not index.php - You should be looking at /Themes/*your theme*/index.template.php :)
Yes, its the index.temple.php of my theme. But it just change during downloading
No, that is not an index.template.php of an SMF theme.
Ok bro... I think now i got it right
No, that's exactly the same files as you had before - just with a different name.
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
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!
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 ?
What undefined index, exactly?
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 !
But if you removed that code, there is no reason for those indexes to be called for, which suggests it wasn't done properly.
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
How *exactly* did you remove it?
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
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.
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. :)