Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 10, 2008, 05:02:04 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: SMF Link back to Homepage  (Read 1275 times)
archangel
Intergalactic Cowboy
*****
Offline Offline

Posts: 62



WWW
« on: November 11, 2007, 05:36:29 PM »

Hello All!

I've installed SMF on my website. It works great, but I would like for it to return to the homepage when people leave the forum. I'd be willing to bet this is staring me in the face .... however everyone gets brain lock once in a while. Yep

Thanks for the help!
Logged

-Archangel
wektech
Jabba the Hutt
*****
Offline Offline

Posts: 690


WWW
« Reply #1 on: November 12, 2007, 03:49:40 AM »

There are several approaches to deal with this issue. You could have the forum open up in a new window, so when they are done the viewer still has the original window/tab open. You could also modify your templates index.template.php file to add a link back to your site. What I did was to use an php include to call my main sites header/menu above SMF. Using the php header include allowed me to keep the look and feel of the rest of the site without a whole lot of template modifications.
Logged

lexhair
Intergalactic Superstar
*****
Offline Offline

Posts: 159


« Reply #2 on: November 12, 2007, 10:30:16 AM »

Generally speaking, I prefer users decide whether to open new windows or not. I use wektech's idea and have the main forum logo at the masthead link back to the web site's main page. It's easier (but not as elegant) as using a php include.
Logged
Kopete
Truth and Honor
Pong! (the videogame) Master
*****
Offline Offline

Posts: 29


Yippee-Kiyay!


« Reply #3 on: November 13, 2007, 03:07:55 PM »

A lot of SMF themes have the ability to have a banner above the forum. Once this has been uploaded to the proper directory an entry is entered in the Admin section to make it link back to the primary web site. The coding I used is below and has worked well.

Code:
<div align="center">
<table border="1" cellspacing="0" width="798" style="border-collapse: collapse"

height="80" bordercolor="#FFFFFF" id="table1" cellpadding="0">
<tr>
<td><a target="_blank" href="http://www.domainname.com/"><img border="0"

src="http://www.domainname.com/smf/Themes/helios_multi11final/images/forum_header.jpg"

width="798" height="80"></td>
</tr>
</table>
</div>
Logged

Where is the honor in a lie? There's only Honor in the Truth!
archangel
Intergalactic Cowboy
*****
Offline Offline

Posts: 62



WWW
« Reply #4 on: November 14, 2007, 12:31:50 PM »

Thanks!
I'll give that a shot and see what happens.  Clapping
Logged

-Archangel
Kopete
Truth and Honor
Pong! (the videogame) Master
*****
Offline Offline

Posts: 29


Yippee-Kiyay!


« Reply #5 on: November 14, 2007, 02:44:10 PM »

You're welcome. When you create the graphic for the banner and upload it to the proper directory, it should work like a charm.
Logged

Where is the honor in a lie? There's only Honor in the Truth!
lexhair
Intergalactic Superstar
*****
Offline Offline

Posts: 159


« Reply #6 on: November 16, 2007, 09:29:32 AM »

Just say no to target=_blank.
Logged
Kopete
Truth and Honor
Pong! (the videogame) Master
*****
Offline Offline

Posts: 29


Yippee-Kiyay!


« Reply #7 on: November 16, 2007, 10:31:35 AM »

To each their own lexhair. Smile
Logged

Where is the honor in a lie? There's only Honor in the Truth!
lexhair
Intergalactic Superstar
*****
Offline Offline

Posts: 159


« Reply #8 on: November 16, 2007, 10:53:36 AM »

To each their own lexhair. Smile
Absolutely!!  Very Happy
Logged
archangel
Intergalactic Cowboy
*****
Offline Offline

Posts: 62



WWW
« Reply #9 on: November 21, 2007, 08:41:36 AM »

I have also discovered that there is a way to modify very easily the tab menu. You must be very careful to cross every "T" and dot every "i" with the script. I made this modification to my forum and it works great. I plan to also employ your advise here as well.

Thanks again for the help!

P.S. Where does Lunarpages get all of those smiley's?

 
Logged

-Archangel
Kopete
Truth and Honor
Pong! (the videogame) Master
*****
Offline Offline

Posts: 29


Yippee-Kiyay!


« Reply #10 on: November 21, 2007, 05:28:47 PM »

Glad we could help. As for the smilies...they come from SMF...or at lease several of them do. Try googling smilies for SMF and you'll find plenty I'll bet. Wink
Logged

Where is the honor in a lie? There's only Honor in the Truth!
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM