westis wrote: Ah, you mean that my tweaks would be good for Roman?



westis wrote: Ah, you mean that my tweaks would be good for Roman?
We're all ears, fr3nch13. This sounds like just waht I've been looking for.fr3nch13 wrote: ps. i also figured out an interesting little hack to get just about any application's front-end to run within cmsms. but the app's admin is seperate from cmsms's admin.
Code: Select all
<?
$tpl = "http://russellarkin.imageworksstudio.com/index.php?page=external_template";
$tplstr = "[replaceme]";
if($_POST) {
.... do something here .....
} else {
theform();
}
function theform($err=array()){
global $tpl,$tplstr;
ob_start();
?>
form html here
<?
$result = ob_get_contents();
ob_end_clean();
if($tpl!='' and $tplstr!='')
echo parseTemplate($tpl,$tplstr,$result);
else
echo $result;
}
function parseTemplate($tpl,$str,$html) {
$handle = fopen($tpl, "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
return str_replace($str,$html,$contents);
}
?>
iNSiPiD wrote: That example just looks like a Web form.
I had assumed you'd somehow hacked the admin to include links to your own custom administration screen(s). Or have you?
I have achieved this same result more securely I think by using a user-defined tag or written my own plugin. This avoids the need for ob_start to resend any header info and also means the page is parsed earlier and without caching the entire thing.
Have I missed something? Are you sure that site is built using CMSMS? The /admin URL brings up another login screen. Or did you just customise that too?
No i have not hacked the admin to point to and administration screen because there was no administration screen.I had assumed you'd somehow hacked the admin to include links to your own custom administration screen(s). Or have you?
This is running cmsms 0.10.4. i renamed the admin direcory to my_account. And yes, i did customize it.Have I missed something? Are you sure that site is built using CMSMS? The /admin URL brings up another login screen. Or did you just customise that too?