MyBB Community Forums

Full Version: i want to remove the search option
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want to remove the search option because i have learnt that if i put the adsense codes to the header, and someone click at search option it will appear at the search page and this is said that against the google tos.

how can i remove the search option?

is it really true that the adsense codes at the header is against the google tos?

alternick Wrote:i want to remove the search option because i have learnt that if i put the adsense codes to the header, and someone click at search option it will appear at the search page and this is said that against the google tos.

how can i remove the search option?

Admin CP --> Users and Groups --> Manage Groups
When you edit a group, you should find the setting "Can Search Forums" and set it to know.

If you also want to remove all the links to the search page, you can do the following:

Admin CP --> Templates --> Modify / Delete --> *Expand your template set*

Template: header
Find and delete:
					<li><a href="$settings[bburl]/search.php"><img src="$theme[imgdir]/toplinks/search.gif" border="0" alt="$lang->toplinks_search" />$lang->toplinks_search</a></li>

Templates: header_welcomeblock_member
header_welcomeblock_member_admin

Find and delete:
				<a href="search.php?action=getnew">$lang->welcome_newposts</a> | <a href="search.php?action=getdaily">$lang->welcome_todaysposts</a> | 

Template: Post Bit Templates --> postbit_find
Delete all contents

Template: Forum Display Templates --> forumdisplay_searchforum
Delete all contents

Template: Member Templates --> member_profile
Find and delete:
<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid=$uid">$lang->find_threads</a> &mdash; <a href="search.php?action=finduser&amp;uid=$uid">$lang->find_posts</a>)</span>

Template: Portal Templates --> portal_welcome_membertext
Find and delete:
<a href="$settings[bburl]/search.php?action=getnew">$lang->view_new</a><br /><a href="$settings[bburl]/search.php?action=getdaily">$lang->view_todays</a>

Template: Portal Templates --> portal_search
Delete all contents

alternick Wrote:is it really true that the adsense codes at the header is against the google tos?

If you put it in the header, it will show up on all pages, which I think is against the TOS. However, as I don't use the service I am not familiar with the TOS.
ok thank you very much
Don't remove your search option - that's stupid.
-The search results aren't the only place Adsense isn't allowed. It's also not allowed on registration pages, who's online pages, etc.

But there's an easy way to get around this:

Simply modify each template separately that you want to put your Adsense ads on, such as: index, showthread, etc.
jedk Wrote:such as: index, showthread, etc.


please tell me the whole files which i can include adsense codes, so that it wont appear at index, registration and search pages.
You can have them on your index page (Index Page Templates >> index) as far as I know, since it's still a content-based page.
-Other than that, you can include it in your showthread template (Show Thread Templates >> showthread) and any other place on your message board that's driven by ad-related content (as opposed to non-related things, such as Who's Online, Registration, etc).