Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: tk1 on April 05, 2014, 12:06:09 PM

Title: Remove Header Link
Post by: tk1 on April 05, 2014, 12:06:09 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3845)

i noticed some small mods being approved so here is my first mod, this mod is simply it makes it so the header is no longer a link!

mod is under released under Creative Commons - Public Domain License - so do as you wish!
http://creativecommons.org/publicdomain/mark/1.0/

mod may not work in all themes so deal with it :P

I also got told their is no min amount of edits needed so I hope this gets approved!  i hope to make more mods as i grow!
Title: Re: Remove Header Link
Post by: SaltedWeb on June 25, 2014, 10:26:39 PM
Does this remove the link and the words or just the link?
Title: Re: Remove Header Link
Post by: kat on June 26, 2014, 06:34:16 AM
Looking at the parser, just the link. I would assume that removing this entire line...

<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>

...from index.template.php would remove both. (Keep a copy of the file, as a backup, in case I'm wrong.)
Title: Re: Remove Header Link
Post by: SaltedWeb on June 26, 2014, 08:37:59 AM
the picture is below :
Title: Re: Remove Header Link
Post by: SaltedWeb on June 26, 2014, 08:39:35 AM
Quote from: [email protected] on June 26, 2014, 06:34:16 AM
Looking at the parser, just the link. I would assume that removing this entire line...

<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>

...from index.template.php would remove both. (Keep a copy of the file, as a backup, in case I'm wrong.)
Not sure that will keep the very top would it ??
Title: Re: Remove Header Link
Post by: I B D on June 26, 2014, 08:58:21 AM
Diamond from what i see in this mod it removes the link from the forum name area ... so look up top of this site see where the SMF logo is ... it removes the link from their and not from the linktree as your picture shows.
Title: Re: Remove Header Link
Post by: Burke ♞ Knight on June 26, 2014, 09:05:04 AM
Yes, this mod only makes the site name at top, which gets replaced by logo if add one in the Current Theme settings, so it's not a link.

This has nothing to do with the text that is wanted to be removed.
Title: Re: Remove Header Link
Post by: SaltedWeb on June 26, 2014, 09:22:20 AM
Ok I posted support else where for it to be removed some how ?