GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Site Depth Guru's Please Could I have 1 Min? (https://gfy.com/showthread.php?t=840710)

teenfeetcash 07-11-2008 09:15 AM

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.

The Heron 07-11-2008 10:18 AM

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

stickyfingerz 07-11-2008 10:19 AM

Quote:

Originally Posted by teenfeetcash (Post 14448404)
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.

teenfeetcash 07-11-2008 10:27 AM

The Heron - You are a star, many thanks it works a treat :)

Also thanks for your reply stickyfingerz :)

stickyfingerz 07-11-2008 10:30 AM

Quote:

Originally Posted by teenfeetcash (Post 14448664)
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. :winkwink: It wasn't critical what I was doing at the time so I didn't put a ton of effort into a solution.

The Heron 07-11-2008 10:31 AM

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...

teenfeetcash 07-11-2008 10:46 AM

Just been on ICQ with Omar and require is secure - thanks guy's I was working on this all day!

The Heron 07-11-2008 11:05 AM

Glad to help, sitedepth is topnotch


All times are GMT -7. The time now is 07:06 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123