News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

WhiteBox

Started by Crip, July 06, 2011, 11:38:56 AM

Previous topic - Next topic

Crip

I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Celebhdforum

hey can anyone help me i have tried a couple of things over the past weeks and cant get to work.

i am trying to remove the news post and the search bar.

I want to keep everything else and so it just moves up.

Picture is in attachment

ARG01

I am not at my comp to test this but try removing this in index.template.php. Back up your file before making changes!!!

echo '
<div id="searcharea">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
  <input class="inputbox" type="text" name="search" value="', $txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['search'], '...\';" /> ';

// 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>
</div>';

  // Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
{
echo '
  <div id="news">
  <b>', $txt['news'], ':</b> ', $context['random_news_line'], '</div>';
}


Note: Since these are both "id"s you may also need to remove a following "</div>" or two. I am not positive since again, I am not at my comp to test this.  ;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Crip

thnks ARG,

yep, remove Both those divides , tis it may shift upwards a-bit...
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Celebhdforum

Many thanks

That working perfect first time much appreciated.


Also could you tell me is it easy to remove the top link tree off on every page?



Crip

Prolly so , but i dunno how..?

QuoteAlso could you tell me is it easy to remove the top link tree off on every page?
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

margarett

Just comment out the function call to the linktree in index.template.php ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Crip

I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Advertisement: