PDA

View Full Version : Linking to the SMF forum through my site



US2Canada
04-29-2007, 12:22 PM
OK, this is probably going to be very obvious - cuz I've searched around here and I've not found anybody else who needed to figure out how to do this . . . but here goes. I have created a message board through Fantastico/SMF. It shows up in my HM directory files when I look using the FTP - but I don't know how to link to it through my webpage. In other words, there's a tab on the homepage of my website for "Discussions". What link does I use there? I know it should be an "inside" link, rather than a link to the url that shows up in the browser address line when I open the forum because I tried that already and it goes to some Adobe advertisement!!

I'm also including php scripting on my homepage that will pull info from the bulletin board and display it on my homepage. I need to know what identifying info to include in the script so that it will point to the forum.

Thanks

charlesgan
04-29-2007, 06:12 PM
where you install the smf to? subfolder after the main domain??
eg. http://www.yourdomain.com/forums

then this will be your path.

i installed smf to main domain. and accessing is just mydomain.com :)

nerdykit
04-29-2007, 06:15 PM
Hmm. That Adobe advertisement thing is weird. I run a SMF forum and I can just link to it with href="/forum/" as the href part of my link. 'Cause its in a folder named forum. I could go with "/forum/index.php" if I wanted to but...

A full path works too. href="http://www.mydomain.com/forum/"

I wonder if the problem isn't in the code underneath the tab on your website. I suspect it turns out to be really not what you think it is when you specify it.

US2Canada
04-29-2007, 09:18 PM
Thanks, guys. I haven't had time to play with this yet but I'm hoping it works. Yes, the forum did install in a sub-directory of the main domain - so I'll try your suggestions. Really can't figure out the link to the Adobe thing - or whatever it was - that was weird. Thanks.

Hostalot
05-01-2007, 03:52 PM
I suggest you use an absolute link i.e. http://www.blabblaosdf.com/forum rather than the relative href="/forum/" . The latter is bound to cause confusion/trouble as your site grows.