Intergrating my forum to my webpage!?!?!?!? Help?

evanderman623's picture

They have: 5 posts

Joined: Apr 2009

So I always loved webpages, and have always wanted to operate one, i've gone through a share of crappy webpages but i want to change all that.... but untill i learn to do things like the pro's i really need some help with mixing my html / css webpage with php....

now consider i do not have any php experience

All i want to do is include my header / navigation bar in on my forum webpage.... now is there a way i can just plug in the same html/css code in to some forum file and it will just magically work?

or will i need to do something fancy?

the way i rigged it for now is used old school frames. to load webpages... but thats causing a lot of chaos with the search engines.... they see the results for the forum but now how i would liek them to see my webpage with the header and nav bar.. ahhhhh im frustrated because im not very educated on any of this website stuff..

We don't need no water let the Mofu burn!!!!

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Hi evanderman,

Sorry I asn't able to reply to this sooner. What forum software are you using? Try the instructions in this article to automatically include your header & footer:

http://www.apaddedcell.com/how-automatically-include-your-header-navigat...

How that works might depend on which forums software you're using and how it's set up.

evanderman623's picture

They have: 5 posts

Joined: Apr 2009

thanx for the advice but i m still kinda lost.... i cant get it to work. and I Dont really want to seperate the frame , is there a way i can just include it in my web site? i got a standard header for each page but those are . html and my forum is .php and i dont know which file to update. like can i access my forum index page and paste my html code in there?

We don't need no water let the Mofu burn!!!!

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Did you look at the article I linked to? That's the technique you need to use. That will allow you to just include your frame in your forum template. That may, however, depend on which forum software you're using and how it's set up.

Otherwise you could just paste it into the forum template. Again, that depends on the forum software you're using.

evanderman623's picture

They have: 5 posts

Joined: Apr 2009

okay.... Smiling lol i'm sorry for being kinda slow at this.. but I really am getting frustrated. so i read the article again.... and i put this in on my webpage...

<?php
include("m8.html");
?>
and it worked... just not where i wanted it to... lol i worked fine on the regular webpages... but when i tried to plug it in to my forum it just ignores it.....

and then i took ur other advice just copied and pasted it in.... but it looks broken.

i got everything there the buttons and and header text but not my bg image ( i'm using gray background and white letters.... and the bg of the page is white... so it just looks stupid....

ahhh i'm very frustrated with this... can you please try to explain where exactly i gotta put the code in on my forum? i'm using sfm simple forum machines...

:-/

We don't need no water let the Mofu burn!!!!

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

I'm not familiar with sfm simple forum - sounds like it might not support writing your own PHP. The other potential problem is that you weren't accessing the file correctly. This is the same problem you're having with the image not showing up. How you access the files depends on where the forum is installed on your forum.

I'll pretend that your forum is installed at yoursite.com/forum and the include is at yoursite.com/m8.html. To access that from the forum, you would need to access it like this:

<?php
include("../m8.html");
?>

Similarly, if you were just pasting an image, and the image was located at yoursite.com/images/image.gif, you would need to put it in like this:

<img src="../images/image.gif" height="X" width="X" alt="blah" />

Does that make any sense?

evanderman623's picture

They have: 5 posts

Joined: Apr 2009

YES!!!! that worked.... lol I'm so stupid... lol but i have another problem.....

it worked and all but now the style.css file took over my forum style.css ( I copied and pasted the menu code in to my forum index template... and the menu shows up now but my forum page is all broken... :-/ i really need to learn php but have no time at all :-/

We don't need no water let the Mofu burn!!!!

evanderman623's picture

They have: 5 posts

Joined: Apr 2009

cuz you see what happened after i copied the code for my navigation from ( m1.html ) my menu page and pasted it in to my template.index.php but now my style sheet from my m1.html page is effecting my forum index page. what can i do to stop it?

We don't need no water let the Mofu burn!!!!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.