How do I remove top search, Hello, unread, replies from frontpage?

Started by hygron, March 26, 2014, 07:22:09 PM

Previous topic - Next topic

hygron

latewood.com
smf 2.0.6
TP 1.0

I would like to remove the Hello member, unread posts, new replies, and the search;  From the banner area at top of forum.

I use tinyporta; and have all the same blocks in my left and/or right side panels.

I thank you all forward for the help.  I do believe this is an smf edit, not a TP, one.

come join me at: http://www.Hygronomics.com/forum1
My newest site: http://myvirtualworld.org Virtual Domain Hosting

shadow82x

It's a theme related change. Mind attaching your themes index.template.php here?
Colin B
Former Spammer, Customize, & Support Team Member

kat

For what it's worth, there's a little arrow, top-right of the screen.

If you click on it, it hides that stuff.

hygron

Quote from: mcblaber on March 26, 2014, 09:09:32 PM
It's a theme related change. Mind attaching your themes index.template.php here?
I assume you are wanting the index file of the theme I am using, (Bloc's Impulse 2) and not the default  SMF curve theme

come join me at: http://www.Hygronomics.com/forum1
My newest site: http://myvirtualworld.org Virtual Domain Hosting

hygron

Quote from: K@ on March 27, 2014, 11:12:15 AM
For what it's worth, there's a little arrow, top-right of the screen.

If you click on it, it hides that stuff.
I am using Bloc's Impulse 2)  It does not have a button.  however;  I am going to install the Curve theme, and click the button to see if it does anything for the impulse 2 theme, but I doubt it.  Thanks

come join me at: http://www.Hygronomics.com/forum1
My newest site: http://myvirtualworld.org Virtual Domain Hosting

Kindred

install the curve theme?

It should NEVER have been uninstalled since all other themes REQUIRE files and other things from the Curve them
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

hygron

Quote from: Kindred on March 29, 2014, 06:48:27 PM
install the curve theme?

It should NEVER have been uninstalled since all other themes REQUIRE files and other things from the Curve them
OK.  Terminology mistake.

Of couse I did not completely uninstall curve theme!  If I did nothing would work;  I assume

I was talking about changing themes.

Wish you would have answered my question.

Do you want the impilse2 index file or the curve index file?

Also;  What is best way to post it?

Remember;  I am legally blind and, because of this, I have not coded or built sites for almost 2 years.  I am trying to give correct info so that I can receive support. Thanks foe all your efforts.

come join me at: http://www.Hygronomics.com/forum1
My newest site: http://myvirtualworld.org Virtual Domain Hosting

Kindred

the index.template.php file for EACH THEME that you allow to be used will have to be edited

If you are just talking about the upshrink button, then that value should be preserved in your cookie, regardless of the theme that you switch to.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

hygron

Quote from: hygron on March 29, 2014, 06:32:48 PM
Quote from: mcblaber on March 26, 2014, 09:09:32 PM
It's a theme related change. Mind attaching your themes index.template.php here?
I assume you are wanting the index file of the theme I am using, (Bloc's Impulse 2) and not the default  SMF curve theme
Here is the index.template for Imp[ulse2 attached

come join me at: http://www.Hygronomics.com/forum1
My newest site: http://myvirtualworld.org Virtual Domain Hosting

hygron

Quote from: hygron on March 29, 2014, 07:24:28 PM
Quote from: hygron on March 29, 2014, 06:32:48 PM
Quote from: mcblaber on March 26, 2014, 09:09:32 PM
It's a theme related change. Mind attaching your themes index.template.php here?
I assume you are wanting the index file of the theme I am using, (Bloc's Impulse 2) and not the default  SMF curve theme
Here is the index.template for Imp[ulse2 attached
Thanks!  I plan on just using the Impulse2 theme.  I am pretty sure that once you all show me what to remove or how to edit this;  I can do it on any other theme.  Hopefully.  Peace

As far as the button.  It is not there in the Impulse2 theme.  i clicked every button I could SEE. 

come join me at: http://www.Hygronomics.com/forum1
My newest site: http://myvirtualworld.org Virtual Domain Hosting

kat

It seems that editing the theme's index.template.php file, to replace this:

echo '</form>';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<ul style="padding-top: 23px;">
<li class="first"><b>', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></b></li>
<li><a href="', $scripturl, '?action=unread">' , $txt['im_unread'] , '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">' , $txt['im_replies'] , '</a></li>';


with this:

echo '</form>';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<ul style="padding-top: 23px;">
';


gets rid of the "Hello" and "replies" stuff.

Removing this:

echo '<form id="search_form" style="position: absolute; top: 24px; left: 20px; margin: 0;" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<input type="text" name="search" value="" class="input_text" />&nbsp;
<input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />';


seems to remove the search box.

At least, those worked on my forum, with that theme. :)

Please, though, make sure you keep a copy of the original file, just in case...

Advertisement: