Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    I have a guestbook for my site that currently opens in a new window. I would like to have it viewed within the existing window and displayed like other pages on my site. I tried doing so by copying the PHP code into a template but when I tried viewing it I get the PHP code displayed rather than what the PHP is meant to be spitting out. Can someone have a look at (old URL) to see what I mean and make suggestions on how to fix it. To view the original guestbook the url is (old URL).

    Thanks in advance!

  2.  

  3. #2
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    You need to change the file extension from .html to .php for it to work.
    - Brian

  4. #3
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    OK, got that in place and it worked. Thanks.

    Next question is - I need to change the visual layout of the page. I have set the demo page in as "x". The guestbook is structured in a way that it is all in modules and calls on the modules as it needs them. Once such module is used to display the heading and I need to find where this call is being made from. I know which external file it is asking for (body.php) but I need to know where the call is coming from. Any suggestions?

    Edit by Wired: Fixed Link

  5. #4
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    A posting of the code ?
    - Brian

  6. #5
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    I saw that coming but I think it will end up too hard as there are quite a few external calls.

    I'll enable directory listings on my site so you can all see what is going on.

  7. #6
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    Done....

    check out "x" to see the code.

    The current/original index file is index.php. The modified/test version is called gb.php


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:45 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com