Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Place contact button at header
#1
Not Solved
The contact button is currently located at the bottom of the page. I want to place the Contact button on my header page. How would I do that? I would also like to add an image besides the word 'contact.'

#2
Not Solved
URL to your forum? What's the theme you're using?

Seriously, we can't guide you without some minimal information.
#3
Not Solved
theme = redysh.

url = in pm.
#4
Not Solved
Ok, can you also copy and paste the contents of your header template please?
#5
Not Solved
<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			<div id="header" style="text-align: center;">
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
</div>
			<div class="menu">
				<ul>
<li><a href="http://www.facebook.com/pages/....."><img 
src="{$theme['imgdir']}/toplinks/facebook2.png" alt="" title="" 
/>Facebook</a></li>

<li><a href="http://www.twitter.com/..."><img 
src="{$theme['imgdir']}/toplinks/twitter2.png" alt="" title="" 
/>Twitter</a></li>
					<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
					<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
				</ul>
			</div>
			<hr class="hidden" />
			<div id="panel">
				{$welcomeblock}
			</div>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			{$pending_joinrequests}
			<navigation>
			{$board_messages}
			<br />
<p class="newsbar">Follow us on Twitter and Facebook for the latest news!</p>
#6
Not Solved
Replace it with:

<div id="container">
        <a name="top" id="top"></a>
        <div id="header">
            <div id="header" style="text-align: center;">
<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
</div>
            <div class="menu">
                <ul>
		    <li><a href="http://www.facebook.com/pages/<snip>"><img src="{$theme['imgdir']}/toplinks/facebook2.png" alt="" title="" />Facebook</a></li>
		    <li><a href="http://www.twitter.com/<snip>"><img src="{$theme['imgdir']}/toplinks/twitter2.png" alt="" title="" />Twitter</a></li>
		    <li><a href="{$mybb->settings['bburl']}/portal.php"><img src="{$theme['imgdir']}/toplinks/portal.gif" alt="" title="" />Portal</a></li>
                    <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
                </ul>
            </div>
            <hr class="hidden" />
            <div id="panel">
                {$welcomeblock}
            </div>
        </div>
        <hr class="hidden" />
        <br class="clear" />
        <div id="content">
            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}
            {$pending_joinrequests}
            <navigation>
            {$board_messages}
            <br />
<p class="newsbar">Follow us on Twitter and Facebook for the latest news!</p>

And change {$theme['imgdir']}/toplinks/portal.gif to the actual path of the image.
#7
Not Solved
Thanks, ill try it out later
#8
Not Solved
Header template new theme:

<div id="container">
	<a name="top" id="top"></a>
	<div id="header">
		<h1 class="logo"><a href="{$mybb->settings['bburl']}/index.php">{$mybb->settings['bbname']}</a></h1>		
		<div id="navbar">
			<ul class="menu">
				<li class="active"><a href="{$mybb->settings['bburl']}/index.php">Home</a></li>
				<li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li>
				<li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
				<li><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></li>
			</ul>
			<hr class="hidden" />
			<div id="search">
			<form method="post" action="{$mybb->settings['bburl']}/search.php">
				<input type="hidden" name="action" value="do_search" />
				<input type="hidden" name="postthread" value="1" />
				<input type="hidden" name="forums" value="all" />
				<input type="hidden" name="showresults" value="threads" />
				<input class="textbox" type="text" name="keywords" value="Search..." onfocus="if(this.value == 'Search...') { this.value = ''; }" onblur="if(this.value=='') { this.value='Search...'; }" size="25" />
				<input type="submit" class="button" value="Search" />
				<br class="clear">
				</form>
			</div>
			<div id="panel">
				{$welcomeblock}
			</div>
			<br class="clear" />
		</div>
		<div id="colorchanger">
			<span>Pick a color</span>
			<ul>
				<li><a href="#de1212">Red</a></li>
				<li><a href="#21d529">Green</a></li>
				<li><a href="#35a2db">Blue</a></li>
			</ul>
		</div>
	</div>

<div class="on-icon"></div>
<div class="off-icon"></div>
<div class="offlock-icon"></div>


	<hr class="hidden" />
	<br class="clear" />
	<div id="content">
		{$pm_notice}
		{$bannedwarning}
		{$bbclosedwarning}
		{$unreadreports}
		{$pending_joinrequests}
		<navigation>
		<br />
#9
Not Solved
Yes?
#10
Not Solved
Sorry,

What I mean is how do I put the contact button to the header page instead of the footer?

This is at the footer page:

"<span class="smalltext"><a href="{$mybb->settings['contactlink']}">{$lang->bottomlinks_contactus}</a> | <a href="{$mybb->settings['homeurl']}">"

Do I place this at the index template?


Forum Jump:


Users browsing this thread: 1 Guest(s)