News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Making my forum\'s header clickable?

Started by pressmar91, January 21, 2008, 03:39:15 PM

Previous topic - Next topic

pressmar91

How do I make the forum on my site clickable so that it returns to the homepage of my site? Or better yet, incorporate my homepage's header instead of the forum's header?

My forum:hxxp:vacationcentric.com/forum/index.php [nonactive]

Homepage:
hxxp:vacationcentric.com [nonactive]

greyknight17


DavidCT

#2
To include your main site's header...

Backup the original file, then edit /Themes/(theme name or default)/index.template.php

Directions here are for the default theme, may not be the same for yours.

Find: function template_main_above()

Then below that find the <body> tag and edit as:

<body>';

include('/home/yourid/public_html/header.php');

   echo '

(end edit)

Obviously the path/name is whatever yours is, make sure you have all the ' things.  It can be a HTML file or php.  This same method can put adsense on it too.

---

Or to make the header image clickable, again will vary by theme...

below that area above, find:

<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

change to <a href="url"><img src........etc....</a> - watch the ending '; required!

pressmar91

Didn't seem to work with my theme. I would like to replace the header with the following code:

<div id="loader">Loading</div><div id="container">
<div id="header">
<div id="head_wrap">
<div id="logo">
<a href="http://vacationcentric.com/"><img  align="left" src="images/logo.gif" alt="VacationCentric.com | Free Vacation Rental Listings! Vacation Rentals Worldwide, Forum & more" title="VacationCentric.com | Free Vacation Rental Listings! Vacation Rentals Worldwide, Forum & more" /></a>
<!--start banner-->

<div class="banner_normal"></div>
<!--end banner-->
</div>
<div id="languages">
<ul>
<li class="flag"><a href="index-en-1.html"><img src="http://vacationcentric.com/admin/images/flags/us.png" alt=" " /><br />en</a></li>
</ul>
</div>

</div>
</div>


<script language="javascript" type="text/javascript">
//<![CDATA[
var cot_loc0=(window.location.protocol == "https:")? ">/trustlogo.js">https://trustlogo.comodo.com/<<coverageID>>/trustlogo.js" :
">/trustlogo.js">http://trustlogo.comodo.com/<<coverageID>>/trustlogo.js";
document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
</script> <div id="menu">
<div class="round_top">
<img src="images/menu_tl.gif" alt="" width="7" height="6" class="corner" style="display:none;" />
</div>
<ul id="menu_nav">

<li><a href="index.html">Home</a></li><li><a href="find-rental.html">Find a rental</a></li><li><a href="register.html">Sign Up</a></li><li><a href="http://vacationcentric.com/members/index.php">Owner login</a></li><li><a href="about.html">About</a></li><li><a href="news.html">News</a></li><li><a href="contact.html">Contact</a></li><li><a href="index.php?obj=sections&amp;id=4">Packages</a></li><li><a href="index.php?obj=sections&amp;id=5">FAQ</a></li><li><a href="index.php?obj=sections&amp;id=16">Owners</a></li><li><a href="index.php?obj=sections&amp;id=17">Renters</a></li><li><a href="http://forum.vacationcentric.com/">Forum</a></li>
</ul>
<div id="rss">

<a href="http://vacationcentric.com/rss/rss.php" target="_blank"><img src="http://vacationcentric.com/images/rss_icon.gif" alt=" " /></a>
</div>
<div id="wishlist">
<a href="wishlist.html">wishlist: <span class="span_orange">0</span> item(s)</a>
</div>
<div class="round_bottom">
<img src="images/menu_bl.gif" alt="" width="7" height="6" class="corner" style="display:none;" />

</div>
</div>

Rumbaar

"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

DavidCT

If you still can't figure it out, attach the index.template.php from your theme or make it available for download from your site (preferred, copy/rename to .txt) and I'll take a look at it.  It's best to put the header code in a seperate file though, unless you prefer not to.

Sarge

pressmar91, did you manage to do what you need? Have you tried the above advice from Rumbaar and DavidCT?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

pressmar91

Sorry but advice is just too confusing. I just want replace the header at hxxp:www.vacationcentric.com [nonactive] with the one on my forum, hxxp:www.vacationcentric.com/forum/index.php [nonactive]

Rumbaar

The level of work and customization to integrate the main sites menu system into your forum is beyond the general support we can give at SMF forums.

You'll need to seek professional help in the area of web design to accomplish that task.  You can try the Help Wanted section, it may be of assistance.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: