|
I did not get what you said here
I create the page Contacts in admin Panel
let's say this page is viewpage.php?page_id=3
i.e., id = 3
next, modify the file contact.php
at the beginning of the file get id page
$_GET['page_id'] = "3";
next, change the line
opentable($locale['400']);
echo $locale['401']."<br /><br />\n";
echo "<form name='userform' method='post' action='".FUSION_SELF."'>\n";
replace them:
opentable($locale['400']);
$cp_result = dbquery("SELECT * FROM ".DB_CUSTOM_PAGES." WHERE page_id='".$_GET['page_id']."'" ;
if (dbrows($cp_result)) {
$cp_data = dbarray($cp_result);
if (checkgroup($cp_data['page_access'])) {
ob_start();
eval("?>".stripslashes($cp_data['page_content'])."<?php " ;
$custompage = ob_get_contents();
ob_end_clean();
if ($settings['tinymce_enabled']) {
$custompage = explode("<!-- pagebreak -->", $custompage);
$pagecount = count($custompage);
echo $custompage[$_GET['rowstart']];
if ($pagecount > 1) {
echo "<div align='center' style='margin-top:5px;'>\n".makepagenav($_GET['rowstart'], 1, $pagecount, 3, FUSION_SELF."?page_id=".$_GET['page_id']."&" ."\n</div>\n";
}
} else {
echo $custompage;
}
} else {
echo "<div class='admin-message' style='text-align:center'><br /><img style='border:0px; vertical-align:middle;' src ='".BASEDIR."images/warn.png' alt=''/><br /> ".$locale['400']."<br /><a href='index.php' onclick='javascript:history.back();return false;'>".$locale['403']."</a>\n<br /><br /></div>\n";
}
}
echo "<br/><form name='userform' method='post' action='".FUSION_SELF."'>\n";
accordingly, this page of contact.php displays the contents viewpage.php?page_id=3
Merged on Jan 27 2012 at 20:19:07:
in general, I'm not wait proposals
made an addon, which added to the database for approval
Edited by jikaka on 27-01-2012 16:19
|