Site Depth Guru's Please Could I have 1 Min?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teenfeetcash
    Confirmed User
    • Jun 2007
    • 527

    #1

    Site Depth Guru's Please Could I have 1 Min?

    Hey

    We are playing around with Site Depth as the CMS for our sites and for some reason if we embed:

    <?php
    $show = 'news';
    require_once 'xxxxxxxxxxxx/websites/2.php';
    require_once 'xxxxxxxxxxxx/members_area.php';
    ?>

    and

    <?php
    $show = 'recent_gal_updates';
    require_once 'xxxxxxxxxxxx/websites/2.php';
    require_once 'xxxxxxxxxxxx/members_area.php';
    ?>

    In 2 separate tables on the same page, only content from 1 of the categories is displayed, and the other table is just blank.

    If I have 1 category populated by SD on any table it works, but more than 1 php call it only shows content from 1 category.

    I would assume it's ok to call <?php . . . many times on a page?

    Any help would be appreciated.
    Got Foot Traffic?

    http://www.teenfeetcash.com
  • The Heron
    Confirmed User
    • Apr 2001
    • 4496

    #2
    instead of "require_once" just use "require" think that'll work

    Comment

    • stickyfingerz
      Doin fine
      • Oct 2005
      • 24984

      #3
      Originally posted by teenfeetcash
      Hey

      We are playing around with Site Depth as the CMS for our sites and for some reason if we embed:

      <?php
      $show = 'news';
      require_once 'xxxxxxxxxxxx/websites/2.php';
      require_once 'xxxxxxxxxxxx/members_area.php';
      ?>

      and

      <?php
      $show = 'recent_gal_updates';
      require_once 'xxxxxxxxxxxx/websites/2.php';
      require_once 'xxxxxxxxxxxx/members_area.php';
      ?>

      In 2 separate tables on the same page, only content from 1 of the categories is displayed, and the other table is just blank.

      If I have 1 category populated by SD on any table it works, but more than 1 php call it only shows content from 1 category.

      I would assume it's ok to call <?php . . . many times on a page?

      Any help would be appreciated.
      Last time I asked about this I was told only one instance per page would work. You might try an iframe for the second, but I think it didn't work for me when I tried that.

      Comment

      • teenfeetcash
        Confirmed User
        • Jun 2007
        • 527

        #4
        The Heron - You are a star, many thanks it works a treat

        Also thanks for your reply stickyfingerz
        Got Foot Traffic?

        http://www.teenfeetcash.com

        Comment

        • stickyfingerz
          Doin fine
          • Oct 2005
          • 24984

          #5
          Originally posted by teenfeetcash
          The Heron - You are a star, many thanks it works a treat

          Also thanks for your reply stickyfingerz
          Ok wish I would of been given that answer when I asked lol. Ill also try this out. It wasn't critical what I was doing at the time so I didn't put a ton of effort into a solution.

          Comment

          • The Heron
            Confirmed User
            • Apr 2001
            • 4496

            #6
            Not sure how I came up with that, they might have told me or I might have stumbled on it. Either way, might not be secure or something could be why they didn't mention it...

            Comment

            • teenfeetcash
              Confirmed User
              • Jun 2007
              • 527

              #7
              Just been on ICQ with Omar and require is secure - thanks guy's I was working on this all day!
              Got Foot Traffic?

              http://www.teenfeetcash.com

              Comment

              • The Heron
                Confirmed User
                • Apr 2001
                • 4496

                #8
                Glad to help, sitedepth is topnotch

                Comment

                Working...