Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on SSI PHP 4images Drupal in the Design and Development forum
This should be very basic. It is probably not a problem with Drupal, but my own ignorance. I need to include a 4images gallery into ...

  1. #1
    Loyal Client
    Join Date
    Sep 2001
    Location
    Asheville, NC
    Posts
    30

    SSI PHP 4images Drupal

    This should be very basic. It is probably not a problem with Drupal, but my own ignorance. I need to include a 4images gallery into a Drupal page. I've created a basic page and put

    <?php include("http://helpingnicaragua.org/4images/index.php"); ?>
    into the body. I initially chose the Full HTML text type. When that did not work, I created a new type I called Code that had absolutely no filtering. That does not work either. The code does not show up on the page, so it is not be interpreted as text. All I get is a blank block where the 4images page should be.

    The 4images gallery is installed in a 4images directory off of home/public_html. Drupal is installed in a Drupal directory off of home/public_html.

    What am I doing wrong?
    Tim Sanders
    BSEET, CNE, MCP

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    You just want the whole images page to show up inside the other page?
    Good luck

  3. #3
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    There's a hundred questions I could ask, how you want it to behave, css vs tables vs frames, but here's a way for you to get it done, I think.

    Code:
    <iframe id="AFrameID"
      name="AFrameName"
      style="width:800px; height:600px; border: 0px"
      src="http://helpingnicaragua.org/4images/index.php"
      scrolling="yes">
    </iframe>
    Good luck

  4. #4
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    If you just want the images code executed by the drupal page, you need to give a php include() a server file path such as
    <?php include("/home/account/www/4images/index.php") ?>
    instead of the http:// URI you were using.

    However, it is quite unlikely to work because the images code probably expects to be running from its own directory.
    Last edited by Ron; 04-12-2011 at 12:18 PM. Reason: clarified the code
    Good luck

  5. #5
    Loyal Client
    Join Date
    Sep 2001
    Location
    Asheville, NC
    Posts
    30
    Thanks, the Iframe code worked. I tweaked the size a little, but I think it will do what I want.
    Tim Sanders
    BSEET, CNE, MCP

  6. #6
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    You should be aware that google probably won't love this, and may penalize your drupal page as a duplicate of the 4images page.
    Good luck

  7. #7
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    I have a page that brings in content from another website (specifically requested by the owner of that site -- it's a maintained contact list). The way I do that is through a cronjob -- 4 times a day I fetch the page within a php program that processes it stripping out the html header and body tags (and does other stuff unimportant to this discussion) and saves it to my server space. Then MY page just uses an SSI to read the file in.

    While Google may or may not recognize the content as a duplicate, at least it isn't seeing it directly with the iframe.
    Good luck

  8. #8
    JPC Member
    Join Date
    May 2011
    Posts
    1
    Quote Originally Posted by tims View Post
    This should be very basic. It is probably not a problem with Drupal, but my own ignorance. I need to include a 4images gallery into a Drupal page. I've created a basic page and put

    <?php include("http://helpingnicaragua.org/4images/index.php"); ?>
    into the body. I initially chose the Full HTML text type. When that did not work, I created a new type I called Code that had absolutely no drupal seo filtering. That does not work either. The code does not show up on the page, so it is not be interpreted as text. All I get is a blank block where the 4images page should be.

    The 4images gallery is installed in a 4images directory off of home/public_html. Drupal is installed in a Drupal directory off of home/public_html.

    What am I doing wrong?
    the code looks clean I cant see an issue either

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •