Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: mulwa on April 24, 2014, 09:21:45 AM

Title: how can i adjust the user info and search box on the header?
Post by: mulwa on April 24, 2014, 09:21:45 AM
pls i need a help on how i can make the logo to be at the right hand side of the header and the search box to be moved to the left hand side under the user info. I changed my logo from default to custom and it moved the user info and search box down. See the screen shot of how i want the header to be. I have pointed to arrow to where i want them to be. Thank you for your time and help.
Title: Re: how can i adjust the user info and search box on the header?
Post by: kat on April 24, 2014, 11:46:15 AM
That looks like a custom theme, Mulwa. As we don't have a clue as to how that theme was coded, you might be best asking in the theme's support topic. That's assuming you get the theme from here, of course...
Title: Re: how can i adjust the user info and search box on the header?
Post by: Sir Osis of Liver on April 24, 2014, 03:46:27 PM
Which theme?
Title: Re: how can i adjust the user info and search box on the header?
Post by: mulwa on April 25, 2014, 06:12:21 AM
it's a custom theme based on default theme. The theme is "on the beach" link to the theme; http://custom.simplemachines.org/themes/index.php?lemma=2753
Title: Re: how can i adjust the user info and search box on the header?
Post by: kat on April 25, 2014, 06:41:19 AM
I see you've posted in the theme's support topic. :)

I'll mark this "Solved". :)
Title: Re: how can i adjust the user info and search box on the header?
Post by: mulwa on April 25, 2014, 08:48:05 AM
pls don't nark it solved, cause i need that to be done on default theme as well. Pls i need a help on the default theme that the header might be as i wanted it to be.
Title: Re: how can i adjust the user info and search box on the header?
Post by: kat on April 25, 2014, 09:24:47 AM
Ah... You didn't tell us that...
Title: Re: how can i adjust the user info and search box on the header?
Post by: mulwa on April 25, 2014, 12:22:30 PM
am sorry for that. Pls help me to do it for the default theme also. Cause i would use it on the default theme as well
Title: Re: how can i adjust the user info and search box on the header?
Post by: kat on April 25, 2014, 03:30:40 PM
Without needing to completely recode the thing, couldn't you make the logo a gif/png, with a transparent background? If the left part's transparent, the actual logo will appear on the right. Kinda like the attached.
Title: Re: how can i adjust the user info and search box on the header?
Post by: mulwa on April 25, 2014, 05:08:08 PM
but why is it pressing the user info and the search box down when i put and custom logo? Just look at the screen shot how the user info and the search box are moved down. And if i use a small logo, the user info and the search box move up again. It happens like that even on default theme
Title: Re: how can i adjust the user info and search box on the header?
Post by: Deaks on April 26, 2014, 02:10:09 AM
this is cause of the size of the logo and how the default theme is designed to work with logo's as on the beach is just a variation of the default it will act the same.
Title: Re: how can i adjust the user info and search box on the header?
Post by: mulwa on April 26, 2014, 08:24:55 AM
Μπράιαν Poύνικ Ντίκεν,
please can you help me to fix it for me on the default theme? Thank you for your time sir
Title: Re: how can i adjust the user info and search box on the header?
Post by: kat on April 26, 2014, 12:13:15 PM
Use a smaller logo? Seems the easiest way...
Title: Re: how can i adjust the user info and search box on the header?
Post by: mulwa on April 28, 2014, 06:04:10 PM
@ K@ you are right. But i would like to make the logo a bit bigger.
Title: Re: how can i adjust the user info and search box on the header?
Post by: kat on April 29, 2014, 06:41:25 AM
I would imagine that the best way to get a bigger logo (which, by the way, a lot of your members might find extremely annoying, after a while), would be to forget the normal way of adding a logo and add some code to index.template.php, to show the logo independent of the normal "Show logo" stuff.

I'm not sure where to put the code, now, coz it's a long time since I did this... But, I used this:

<div style = "text-align: center;"> <img src="http://www.forum.com/Banner.gif" usemap="#Banner" alt="" style="border-style:none" /></div>

It'd probably need to go somewhere around  the <body>'; tag.

Although... In that file, there's a line that says this:

// Custom banners and shoutboxes should be placed here, before the linktree.

Maybe something could go there, huh? Not sure what, to be honest, coz I tried the code, above, there, and the forum croaked. :(


Before you start editing files, though, you WILL remember my sig... won't you? ;)
Title: Re: how can i adjust the user info and search box on the header?
Post by: mulwa on April 29, 2014, 04:52:09 PM
thank you K@, maybe i should be trying to check the section where i need to place the code
Title: Re: how can i adjust the user info and search box on the header?
Post by: kat on April 29, 2014, 04:58:38 PM
It'd be best for you to try things out, coz you know exactly where you want the logo.

Trial and error, perhaps?

Do remember to keep the original file, as a backup, though. :)