Help adding WP header to SMF

Discussion in 'Programming' started by gonecrazy, Mar 20, 2010.

  1. #1
    OK, so I been looking all around trying to find a way to add my header from wordpress to the header of my SMF forum (that's in a subfolder)
    I have found this code but I get an error when I use it.
    <?php 
       require('../wp-blog-header.php'); 
    ?>
    Code (markup):
    Any body know how to do this? Thanks in advance.
     
    gonecrazy, Mar 20, 2010 IP
  2. dcristo

    dcristo Illustrious Member

    Messages:
    19,796
    Likes Received:
    1,201
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    5
    #2
    Why don't you try and use static code instead of adding it dynamically?
     
    dcristo, Mar 20, 2010 IP
  3. gonecrazy

    gonecrazy Guest

    Messages:
    605
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't know what you mean by that. Please let me know =)
     
    gonecrazy, Mar 20, 2010 IP
  4. dcristo

    dcristo Illustrious Member

    Messages:
    19,796
    Likes Received:
    1,201
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    5
    #4
    Instead of using dynamic php code to add the header, why not add it with html? Grab the header code from wordpress and add it to the SMF header template. I've not actually done this, but would imagine its possible to do.
     
    dcristo, Mar 20, 2010 IP
  5. gonecrazy

    gonecrazy Guest

    Messages:
    605
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmmm, I'll have to try that out. thanks.
     
    gonecrazy, Mar 20, 2010 IP