Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: celestia. on July 12, 2009, 11:31:28 AM

Title: Making the community name come up on the windows bar w/o showing up on the forum
Post by: celestia. on July 12, 2009, 11:31:28 AM
Is there a way to change the forum title that gets displayed in the top windows bar so that it does not appear on the actual forum? By SMF default, the forum name appears in the top windows bar. It would not be a problem except I don't want the text-link to appear on the actual forum (as it does when you select a text link instead of a header image)
I've done a google search but i don't seem to be using the correct terminology for what i'm after.
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: Tyrsson on July 13, 2009, 03:42:03 AM
What version of SMF are you using and what theme?
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: celestia. on July 13, 2009, 04:12:21 AM
Forum version: SMF 1.1.9.
Theme is: corp-lt119v1 (1.1.5)
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: Tyrsson on July 13, 2009, 04:22:04 AM
Please bear in mind this may not be exactly the same since this is not a default theme.

Find:
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';





Replace with:
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; "></span>';


That should do it.
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: celestia. on July 13, 2009, 04:28:47 AM
Sorry, this may be all too obvious, but which file should I be looking at?

Settings.template.php  or Settings.php ...or a completely different one?
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: Tyrsson on July 13, 2009, 04:30:19 AM
Sorry about that.... Themes/default/index.template.php around line #182 I think.
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: Tyrsson on July 13, 2009, 04:30:58 AM
ALso please do not use standard notepad to edit php files. Use something like Notepad++. Its free.
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: celestia. on July 13, 2009, 04:38:02 AM
Thankyou very much :)
I actually just edited it within the forum using the configuration links to 'modify themes'.
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: Tyrsson on July 13, 2009, 04:39:26 AM
Awesome :)

Will mark this one as solved. If you have any further questions please feel free to post them.
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: celestia. on July 13, 2009, 08:14:03 AM
Thank you very much :)
Do you have tips for searching this forum? I usually do a quick search, but some of the queries get so technical that I'm not sure i'm looking for it until I've actually read through it.
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: TheMortician4 on July 13, 2009, 12:35:27 PM
Quote from: Tyrsson on July 13, 2009, 04:30:19 AM
Sorry about that.... Themes/default/index.template.php around line #182 I think.

What editor should be used to modify any of these files? or the best suggested editors?
Title: Re: Making the community name come up on the windows bar w/o showing up on the forum
Post by: celestia. on July 13, 2009, 02:51:06 PM
Quote from: emjan101 on July 13, 2009, 12:35:27 PM
Quote from: Tyrsson on July 13, 2009, 04:30:19 AM
Sorry about that.... Themes/default/index.template.php around line #182 I think.

What editor should be used to modify any of these files? or the best suggested editors?


Quote from: Tyrsson on July 13, 2009, 04:30:19 AM
Sorry about that.... Themes/default/index.template.php around line #182 I think.
is this ^^ what you're after ?