I need help

Discussion in 'Programming' started by nickyj83, Apr 17, 2008.

  1. #1
    Hi i have a livescore template script which works fine. There a five .php files.

    config.php
    game.php
    index.php
    footer.php
    header.php


    but what i need i just the header part of the script which is just the livescores to be part of my blog.

    The problem is i have to subscribe for this script so there is a password saved in the config.file

    So i am confused how i can put this within my wordpress blog.

    If anyone could help i would be graitfull!
     
    nickyj83, Apr 17, 2008 IP
  2. kaijohannkursch

    kaijohannkursch Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can't you simply "include" the footer.php and the header.php files into the header and footer files of your blog theme?

    include("heregoesthepathtothosefiles/header.php");
     
    kaijohannkursch, Apr 17, 2008 IP
  3. nickyj83

    nickyj83 Well-Known Member

    Messages:
    491
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #3
    What i mean is the header is the livescores. Its not that simple just to add the code!

    For example i have wordpress installed in htdocs/Wordpress.

    To get the script to work as a livescore template i need to install the script in htdocs/(script files).

    But i want the livescore (header.php) part of the script in my blog.

    The Livescores (header.php) wont without the config.php. So im confused where i install the config.php etc.

    Basically i havent goy a clue!?
     
    nickyj83, Apr 17, 2008 IP
  4. nickyj83

    nickyj83 Well-Known Member

    Messages:
    491
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #4
    And i think you need the game.php also as it has this line in the code

    include("config.php");

    The config.php has the serial code.
     
    nickyj83, Apr 17, 2008 IP
  5. nickyj83

    nickyj83 Well-Known Member

    Messages:
    491
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #5
    I have a plan if someone could help me. ive tried installing all the code in htdocs/code here but because there is a index.php file for wordpress in this folder, my blog will disappear if i put the livescore code there as it also has an index.php.

    Now what if i was to put the livescores say htdocs/folder/code and then use the web address and <iframe> it.

    The only problem is when i put a folder after htdocs/folder and type the address it wont work. Any help?
     
    nickyj83, Apr 17, 2008 IP
  6. nickyj83

    nickyj83 Well-Known Member

    Messages:
    491
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #6
    nickyj83, Apr 17, 2008 IP