3
Ok, I gave that a try but it still dosent seem to be working. Below is the techtheme.php im wanting to include.
<?php
include ('../../../mainfile.php');
$prefix = XOOPS_DB_PREFIX;
$dbhost = XOOPS_DB_HOST;
$dbname = XOOPS_DB_NAME;
$dbuser = XOOPS_DB_USER;
$dbpass = XOOPS_DB_PASS;
//require(XOOPS_ROOT_PATH."/class/smarty/Smarty.class.php");
//$smarty = new Smarty;
$link = mysql_connect($dbhost, $dbuser, $dbpass);
$dbs = mysql_select_db($dbname, $link);
$sql = mysql_query("SELECT * FROM `".XOOPS_DB_PREFIX."_themeconfig`", $link);
while( $row = mysql_fetch_object($sql) ){
$scroll1 = $row->xscroll1;
$scroll2 = $row->xscroll2;
$namesite = $row->xsitename;
$siteurl = $row->xsiteurl;
$slogansite = $row->xsiteslogan;
$copy = $row->tech_copy;
$link1 = "<a href="$row->link1_url">$row->link1_text</a>";
$link2 = "<a href="$row->link2_url">$row->link2_text</a>";
$link3 = "<a href="$row->link3_url">$row->link3_text</a>";
$link4 = "<a href="$row->link4_url">$row->link4_text</a>";
$link5 = "<a href="$row->link5_url">$row->link5_text</a>";
$link6 = "<a href="$row->link6_url">$row->link6_text</a>";
$link7 = "<a href="$row->link7_url">$row->link7_text</a>";
$link8 = "<a href="$row->link8_url">$row->link8_text</a>";
$link9 = "<a href="$row->link9_url">$row->link9_text</a>";
$link10 = "<a href="$row->link8_url">$row->link8_text</a>";
global $xoopsTpl;
$xoopsTpl->assign("link1",$link1);
$xoopsTpl->assign("link2",link2);
$xoopsTpl->assign("link3",link3);
$xoopsTpl->assign("link4",link4);
$xoopsTpl->assign("link5",link5);
$xoopsTpl->assign("link6",link6);
$xoopsTpl->assign("link7",link7);
$xoopsTpl->assign("link8",link8);
$xoopsTpl->assign("link9",link9);
$xoopsTpl->assign("link10",link10);
$xoopsTpl->display(XOOPS_ROOT_PATH."/themes/TechThemeDefault/theme.html");
}
?>
And in the theme.html I have included this line:
<include_php file="http://mysite.com/themes/TechThemeDefault/techtheme.php" />
However, I'm still stuck :(