Hello and congrats for this system, works great. I have done the tests on the php page and it works with seperate database pages.
Now I have tried to integrate into the cms php page but cannot get it to work. It keeps loading something. Being it is not a <!DOCTYPE html> but actual php with theme attached I need to convert the code or set it so the so there is not need of the <?php and ?> as these are already at top and bottom of page.
Example
<?
//
// ------------------------------------------------------------------------- //
// based on run-cms: Content Management for the Masses //
// < http://www.runcms.com > //
// ------------------------------------------------------------------------- //
// Original Author: David
// Author Website : http://www.dcgsnc.com
// Licence Type : GPL
// ------------------------------------------------------------------------- //
include("header.php");
include(XOOPS_ROOT_PATH."/modules/variations/cache/config.php");
include(XOOPS_ROOT_PATH."/modules/variations/include/functions.php");
include_once(XOOPS_ROOT_PATH."/modules/variations/class/arbre.php");
$mytree = new XoopsArbre($db->prefix("variant_categories"),"cid","pid");
if($xoopsConfig['startpage'] == "variations"){
$xoopsOption['show_rblock'] =1;
include(XOOPS_ROOT_PATH."/header.php");
make_cblock();
echo "<br />";
}else{
$xoopsOption['show_rblock'] =0;
include(XOOPS_ROOT_PATH."/header.php");
}
# function index
#####################################################
function index() {
global $db, $xoopsConfig, $xoopsUser, $moderated, $myts, $mytree, $souscat, $classm, $nbsouscat, $meta, $newann, $affichnbann;
OpenTable();
##################### TITLE #######################
echo "<table width='100%' border='0' class='bg2' cellpadding='1' cellspacing='0' align='center'><tr><td>";
echo "<table width='100%' border='0' bgcolor='#FFFFFF' cellpadding='8' cellspacing='0' align='center' height='60'>";
echo "<tr><td><font size='5' color='#007DCC'><b>$title</b></font><br /><font color='#98A4B9'><I>$type no$lid / "._VAR_VIEW2." no$view</I></font><br />";
if ($code19) { echo "<IMG SRC=\"images/level/$code19.gif\" align=\"absmiddle\">"; }
echo "</td><td align='right'>";
if ( $xoopsUser ) {
if ( $xoopsUser->isAdmin() ) { echo "<A HREF=\"admin/index.php?op=AnnoncesModAnnonce&lid=$lid\"><IMG SRC=\"images/modif.gif\" align=\"absmiddle\" BORDER=0 ALT=\""._VAR_MODADMIN."\"></A> <A HREF=\"supprann.php?op=AnnoncesDel&lid=$lid\"><IMG SRC=\"images/del.gif\" align=\"absmiddle\" border=0 ALT=\""._BOX_SUPPRANN."\"></a> "; }}
if ($mem) { echo "<IMG SRC=\"images/mem/$mem.png\" align=\"absmiddle\">"; }
echo "</td></tr></table>";
echo "</td></tr></table><br /><br />";
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<?php
$cmtx_parameters = 'lid';
$cmtx_identifier = 'cmtx_url';
$cmtx_reference = 'Page One';
$cmtx_path = '../../myreview/';
require $cmtx_path . 'includes/commentics.php'; //don't edit this line
?>
include(XOOPS_ROOT_PATH."/footer.php");
CloseTable();
}
---------------------------------------------------------------
the idea is to have the original theme but have the details of the item you are reviewing.
Thanks I hope its clear enough as I am not a super specialist in php
regards David
Now I have tried to integrate into the cms php page but cannot get it to work. It keeps loading something. Being it is not a <!DOCTYPE html> but actual php with theme attached I need to convert the code or set it so the so there is not need of the <?php and ?> as these are already at top and bottom of page.
Example
<?
//
// ------------------------------------------------------------------------- //
// based on run-cms: Content Management for the Masses //
// < http://www.runcms.com > //
// ------------------------------------------------------------------------- //
// Original Author: David
// Author Website : http://www.dcgsnc.com
// Licence Type : GPL
// ------------------------------------------------------------------------- //
include("header.php");
include(XOOPS_ROOT_PATH."/modules/variations/cache/config.php");
include(XOOPS_ROOT_PATH."/modules/variations/include/functions.php");
include_once(XOOPS_ROOT_PATH."/modules/variations/class/arbre.php");
$mytree = new XoopsArbre($db->prefix("variant_categories"),"cid","pid");
if($xoopsConfig['startpage'] == "variations"){
$xoopsOption['show_rblock'] =1;
include(XOOPS_ROOT_PATH."/header.php");
make_cblock();
echo "<br />";
}else{
$xoopsOption['show_rblock'] =0;
include(XOOPS_ROOT_PATH."/header.php");
}
# function index
#####################################################
function index() {
global $db, $xoopsConfig, $xoopsUser, $moderated, $myts, $mytree, $souscat, $classm, $nbsouscat, $meta, $newann, $affichnbann;
OpenTable();
##################### TITLE #######################
echo "<table width='100%' border='0' class='bg2' cellpadding='1' cellspacing='0' align='center'><tr><td>";
echo "<table width='100%' border='0' bgcolor='#FFFFFF' cellpadding='8' cellspacing='0' align='center' height='60'>";
echo "<tr><td><font size='5' color='#007DCC'><b>$title</b></font><br /><font color='#98A4B9'><I>$type no$lid / "._VAR_VIEW2." no$view</I></font><br />";
if ($code19) { echo "<IMG SRC=\"images/level/$code19.gif\" align=\"absmiddle\">"; }
echo "</td><td align='right'>";
if ( $xoopsUser ) {
if ( $xoopsUser->isAdmin() ) { echo "<A HREF=\"admin/index.php?op=AnnoncesModAnnonce&lid=$lid\"><IMG SRC=\"images/modif.gif\" align=\"absmiddle\" BORDER=0 ALT=\""._VAR_MODADMIN."\"></A> <A HREF=\"supprann.php?op=AnnoncesDel&lid=$lid\"><IMG SRC=\"images/del.gif\" align=\"absmiddle\" border=0 ALT=\""._BOX_SUPPRANN."\"></a> "; }}
if ($mem) { echo "<IMG SRC=\"images/mem/$mem.png\" align=\"absmiddle\">"; }
echo "</td></tr></table>";
echo "</td></tr></table><br /><br />";
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<?php
$cmtx_parameters = 'lid';
$cmtx_identifier = 'cmtx_url';
$cmtx_reference = 'Page One';
$cmtx_path = '../../myreview/';
require $cmtx_path . 'includes/commentics.php'; //don't edit this line
?>
include(XOOPS_ROOT_PATH."/footer.php");
CloseTable();
}
---------------------------------------------------------------
the idea is to have the original theme but have the details of the item you are reviewing.
Thanks I hope its clear enough as I am not a super specialist in php
regards David