Help / Search button to remove

Started by mariodieck, May 16, 2010, 06:59:10 AM

Previous topic - Next topic

mariodieck

Hello dear community, I would like to remove the Help and Search Butoon, from the list (top)

Show Picture:


Is it possible?  The bar breaks

And the statistics under the bar, I would also like to remove

sAce

in sources/subs.php
Code (find) Select

                        'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),


Code (replace with) Select
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => false,
'sub_buttons' => array(
),
),
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => false,
'sub_buttons' => array(
),
),


mariodieck

Thanks  ;)

And the statistics under the bar, I would also like to remove.

sAce

Acp > current theme > enable sp style stats

mariodieck

Hi, I have looked but found nothing.

How accurate must the name be?

Here is a picture, what settings I have


mariodieck


kat

Uncheck "Statistiken auf dem Bord-Index anzeigen?"

mariodieck

It is disabled, but it is still showing up.

kat

Just to try and narrow this down, does it show, if you use the SMF default theme?

mariodieck

No, even there it wid not be displayed.  :-\

kat

I'm confused, now...


You want it displayed? Or, not?

mariodieck

I would like it remove, because the display the header breaks

See picture



thanks

kat

That's odd.


I have that theme on my test site and there's no problem, with that, there.


I wonder what could be causing it?

Allusion

You can also remove the search permission from membergroup permissions and the Search button shouldn't be displayed.

Members can actually use the search features, even if the Search button isn't showing, if they have permission to do so and they know the search URL (index.php?action=search).

mariodieck

Quote from: Kat on May 23, 2010, 04:11:13 PM
That's odd.


I have that theme on my test site and there's no problem, with that, there.


I wonder what could be causing it?

This is because the numbers are too high by me

38546 posts in 3937 topics - from 32803 member

The numbers are too high

Quote from: Allusion on May 23, 2010, 04:35:23 PM
You can also remove the search permission from membergroup permissions and the Search button shouldn't be displayed.

Members can actually use the search features, even if the Search button isn't showing, if they have permission to do so and they know the search URL (index.php?action=search).

Wath ?

kat

What he means, is that, if you got to Admin>Permissions and select a membergroup, then click "Modify", one of the options, under "General", is "Search for posts and topics".


If you uncheck that, the searchbox should disappear.


It won't for admins, though.

kat

If you want to get rid of it, totally, you can edit the theme's index.template.php file.


Find this:


<div id="searchfield">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input class="biginput" type="text" name="search" value="', $txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['search'], '...\';" style="width: 170px;" /> ';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form><br />
</div>';
echo '




and delete it. (KEEP A COPY OF THE FILE AS A BACKUP!!!)

mariodieck

Thanks, I have it managed.

I have in line 182, this removes

$context['common_stats']['total_posts'], '</b> ', $txt['posts'], ' ', $txt['in'], ' <b>',

See Pictures:


mfg Mario

Can Closed



Advertisement: