How do I include my forum into my main site?

Discussion in 'PHP' started by lassie911, Jul 10, 2007.

  1. #1
    I have tried Iframes and the <?php include("forum.php"); ?> tags. Both work but the problems with the iframe is it only works by width="" and height="" but not ="100%". The Include tag wont open in my mainsite but only links to the forum when you click on a topic or thread. What is the best solution so that the forum is in my mainsite and stays there once you click on a topic or thread??
     
    lassie911, Jul 10, 2007 IP
  2. ProgrammersTalk

    ProgrammersTalk Peon

    Messages:
    684
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    isn't that can only take .inc
    I personally don't program php, so you need to double check on this :)
     
    ProgrammersTalk, Jul 10, 2007 IP
  3. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, any extension should work.

    An include won't work as everything probably has relative paths. A frame would just be stupid.

    I think you should either do a redirect or put the entire forum up one dir. i.e. in the root.
     
    MMJ, Jul 10, 2007 IP
  4. lassie911

    lassie911 Well-Known Member

    Messages:
    1,521
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Tell me how the redirect would work please. Lol at a frame would just be stupid.
     
    lassie911, Jul 10, 2007 IP
  5. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can do an html redirect with the <meta> tag or a php redirect with the header() function.
     
    MMJ, Jul 11, 2007 IP
  6. kajol

    kajol Well-Known Member

    Messages:
    523
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #6
    What about your main site and what script are you using for forum?

    If the main site is Joomla or Mambo and the forum script is SMF or phpBB, they are lot of forum bridges available.
     
    kajol, Jul 11, 2007 IP
  7. lassie911

    lassie911 Well-Known Member

    Messages:
    1,521
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    160
    #7
    I'm using phpBB.
     
    lassie911, Jul 11, 2007 IP
  8. kajol

    kajol Well-Known Member

    Messages:
    523
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #8
    What about your main site?, Are you using Joomla or Mambo?

     
    kajol, Jul 13, 2007 IP
  9. lassie911

    lassie911 Well-Known Member

    Messages:
    1,521
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    160
    #9
    ^Nope, just plain old php.

    "You can do an html redirect with the <meta> tag or a php redirect with the header() function."
    Could you give me an example?
     
    lassie911, Jul 13, 2007 IP
  10. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
  11. kip

    kip Notable Member

    Messages:
    1,521
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    205
    #11
    send me the links, should be pretty easy.

    do you have a seperated header/footer.php ?
     
    kip, Jul 15, 2007 IP
  12. lassie911

    lassie911 Well-Known Member

    Messages:
    1,521
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    160
    #12
    Yes, I have seperate header and footer files. I will pm you the links because my site isn't live yet and I don't want the public to view it just yet. Thanks Kip.
     
    lassie911, Jul 18, 2007 IP