Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Remove Search

Aloittaja Rozayz, syyskuu 16, 2013, 02:02:43 AP

« edellinen - seuraava »

Rozayz

http://i.imgur.com/isvtCHJ.png [nofollow]

^ this is basically what I want done.

Theme used is BRFinale, so if you're reading Crip... :)


index.template.php as attached ~


Thank you in advance.

Chalky

So do you just want the search box removed or all the really useful "Show unread" stuff and avatar area as well?  Be aware that "Show unread posts" and "Show unread replies" are the most used and popular functions of any SMF forum and removing them will probably make your members really really unhappy.

Burke ♞ Knight

How about leaving that section in, and adding a banner that is same width at the top?
Would look great, as well as still have the useful functions. :)

Rozayz

Lainaus käyttäjältä: ChalkCat - syyskuu 16, 2013, 04:21:27 AP
So do you just want the search box removed or all the really useful "Show unread" stuff and avatar area as well?  Be aware that "Show unread posts" and "Show unread replies" are the most used and popular functions of any SMF forum and removing them will probably make your members really really unhappy.
Spose I'll give that ago. Initially I wanted the "Show Unread Posts" etc removed, but on second thought I decided I'll keep it so long as I can get the searchbox removed so the banner looks nice.

Also, how do I alter the left margin width so this scroll bar disappears and I'm able to use <p align> to center? - http://i.imgur.com/yBDqOCl.png [nofollow]

kat

Why not leave that stuff, as-is, and put the banner above it?

Like this:

http://playing.twaddlehosting.co.uk

ARG01

Lainaus käyttäjältä: K@ - syyskuu 16, 2013, 03:45:37 IP
Why not leave that stuff, as-is, and put the banner above it?

Like this:

http://playing.twaddlehosting.co.uk

Or, we can all just stare at that sites background.  :D

But I agree. A banner at the top would be better and easier to add. You would be surprised at how many actually use the quick search option.
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Rozayz

Lainaus käyttäjältä: K@ - syyskuu 16, 2013, 03:45:37 IP
Why not leave that stuff, as-is, and put the banner above it?

Like this:

http://playing.twaddlehosting.co.uk [nofollow]
Simply don't want to, lol. If it's really that hard to remove teh search box, dw bout it.


Lainaus käyttäjältä: ARG - syyskuu 16, 2013, 04:32:18 IP
Lainaus käyttäjältä: K@ - syyskuu 16, 2013, 03:45:37 IP
Why not leave that stuff, as-is, and put the banner above it?

Like this:

http://playing.twaddlehosting.co.uk [nofollow]

Or, we can all just stare at that sites background.  :D

But I agree. A banner at the top would be better and easier to add. You would be surprised at how many actually use the quick search option.
The website is only going to be used by ~ 15 people, all of which have the opinion that it isn't really needed and would look tidier without it.

PS, how do I at least remove the "News:" I removed the SMF logo but can't seem to find how to remove that :l the index.template.php is attached in first post if someone would be able to do it and/or tell me how. Cheers.

ARG01

I am not at my comp to try this but try removing this to get rid of the news and search. Keep a back up of your file before editing.

<div class="news normaltext">
<form id="search_form" 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" />';

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

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<h2>', $txt['news'], ': </h2>
<p>', $context['random_news_line'], '</p>';

echo '
</div>
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Rozayz

Added banner, looks crap. http://i.imgur.com/g28B4vQ.png [nofollow]


Also changed index.css

/* the main title, always stay at 45 pixels in height! */
h1.forumtitle
{
line-height: 45px;
font-size: 1.8em;
font-family: Geneva, verdana, sans-serif;
margin: 0;
padding: 0;
float: left;
}


to

/* the main title, always stay at 45 pixels in height! */
h1.forumtitle
{
line-height: 45px;
font-size: 1.8em;
font-family: Geneva, verdana, sans-serif;
margin: 0;
padding: 0;
text-align: center;
}


to center the image.


How would I go about fixing this so the banner sits between "Hello <user>" and "Search"?

Rozayz

#9
Lainaus käyttäjältä: ARG - syyskuu 16, 2013, 04:52:15 IP
I am not at my comp to try this but try removing this to get rid of the news and search. Keep a back up of your file before editing.

<div class="news normaltext">
<form id="search_form" 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" />';

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

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<h2>', $txt['news'], ': </h2>
<p>', $context['random_news_line'], '</p>';

echo '
</div>

Worked a charm.

Now how do I adjust this so the banner sits correctly? http://i.imgur.com/XoM4JQ1.png [nofollow]

ARG01

#10
Lainaus käyttäjältä: Rozayz - syyskuu 16, 2013, 04:57:12 IP

removed by K@


I actually take offense at that remark. Good luck.  ;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

kat

#11
That term's not what it appears, apparently...

Assuming that's right... (Even if a bit naff)

i.imgur.com/g28B4vQ.png looks OK, to me. At least, it would if the image was as wide as the page.

Burke ♞ Knight

Even so, that is not appropriate, and I understand ARG's comment.

Rozayz

#13
Apologies. No offence intended.

I've semi-figured out the banner by making it bigger. I'm now trying to add a rotate.php script to my website.

Here is the guide I have followed so far;

It's not working. Can someone tell me what I've done wrong?
http://i.imgur.com/prp6A8J.png [nofollow]

Images are reachable via direct URL but image does not display in banner/header area when rotate.php URL is entered in Current Theme -> Logo image URL: <url here> :(

Halp.

kat

Apology gracefully given and accepted. Remarks removed.

With regard to the rotator, you'd probably get a better response in that topic that you linked to. :)

Advertisement: