A Simple request (I think)

Discussion in 'PHP' started by hlq, Sep 17, 2007.

  1. #1
    I have a phpLD bidding directory here that I would like to add a site wide box to in the right side template.

    It would be placed where the articles box is and be the same style only showing the top bidders link and his bid. The articles box would be below it.

    Being very new to this I would be grateful if someone could give be a hand with this.

    Thanks,
    hlq
     
    hlq, Sep 17, 2007 IP
  2. Cesay

    Cesay Peon

    Messages:
    121
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That's an easy one even for beginners :) Just create a new file and put whatever it is you want to display into it(HTML, PHP, whatever). If you name the file widget.php, you would put this in your template wherever you want the new box to appear:

    <?php include('widget.php');?>
    PHP:
    Then you'll only need to ever make changes in one place, widget.php. You can read more about including files in the PHP manual.
     
    Cesay, Sep 17, 2007 IP