step for step for a greenhorn
olaf 4
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: step for step for a greenhorn
olaf
OP
4
From: -
From: -
tht's the one
many thanks. I should have seen that to is well but ....
many thanks. I should have seen that to is well but ....
1 Re: step for step for a greenhorn
Philipp Esselbach
From: -
Editor
0From: -
Sorry, there is a typo. The script is contentteller.php and not contenttteller.php
1 Re: step for step for a greenhorn
olaf
OP
4
From: -
From: -
Sorry, I could not get it working so far. all i get is:
Not Found
The requested URL /contenttteller.php/mymodule_mypage was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8b mod_mono/2.0 mod_jk/1.2.25 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 mod_wsgi/2.0 Python/2.4.3 Server at .............
directories and files on the server exists like you did describe.
when i use the link to my php file, it opens without problem,
path: ../gbook16/gbook.php
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//Include
echo "../gbook16/gbook.phpe";
//Footer
echo $templates
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
what I am doing wrong? or did I miss something to install/enable?
Not Found
The requested URL /contenttteller.php/mymodule_mypage was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8b mod_mono/2.0 mod_jk/1.2.25 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 mod_wsgi/2.0 Python/2.4.3 Server at .............
directories and files on the server exists like you did describe.
when i use the link to my php file, it opens without problem,
path: ../gbook16/gbook.php
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//Include
echo "../gbook16/gbook.phpe";
//Footer
echo $templates
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
what I am doing wrong? or did I miss something to install/enable?
1 Re: step for step for a greenhorn
olaf
OP
4
From: -
From: -
Man thanks.
I will try my best. The page in question is a guest book script, which looks and works quite nice.
Olaf
I will try my best. The page in question is a guest book script, which looks and works quite nice.
Olaf
1 Re: step for step for a greenhorn
Philipp Esselbach
From: -
Editor
0From: -
What kind of php page? A single page or a dynamic script?
The content module is limited to HTML only. However, you could add your script as Contentteller module
1) Create a subdirectory in modules, for example /modules/mymodule
2) Create a file functions_mymodule.php in that directory with the following content:
3) Create now the file mypage.php in /modules/mymodule with the following content:
Replace the include section above with your custom script
4) You can access this custom module/page with http://youdomain/contenttteller.php/mymodule_mypage/
The content module is limited to HTML only. However, you could add your script as Contentteller module
1) Create a subdirectory in modules, for example /modules/mymodule
2) Create a file functions_mymodule.php in that directory with the following content:
<?php
if( !defined( "CONTENTTELLER" ) )
{
die( "Error" );
}
if( $action == "mypage" )
{
include( "mypage.php" );
MyPage();
}
?>
3) Create now the file mypage.php in /modules/mymodule with the following content:
<?php
function MyPage()
{
global $templates, $system, $preferences;
//Get core templates
$main_templates = $templates -> preparetemplates( "'site_header','site_footer','site_block','site_login_anon','site_login_user'", $preferences[ 'current_theme' ] );
//Get inserts
$insert = $system -> getinsert( $preferences, $main_templates );
$insert[ 'page_name' ] = $preferences[ 'website_name' ];
$insert[ 'page_description' ] = $preferences[ 'website_description' ];
$insert[ 'page_keywords' ] = $preferences[ 'website_keywords' ];
//Header
$templates -> initgzip();
echo $templates -> exectemplate( $main_templates[ 'site_header_html' ], $main_templates[ 'site_header_php' ], $insert );
//Include
echo "Your custom script here";
//Footer
echo $templates -> exectemplate( $main_templates[ 'site_footer_html' ], $main_templates[ 'site_footer_php' ], $insert );
}
?>
Replace the include section above with your custom script
4) You can access this custom module/page with http://youdomain/contenttteller.php/mymodule_mypage/
Hi there,
many thanks for the good application. It brought me much further than any other cms so far.
I really need somehow a step by step guide to embed (include) an good working php page into a normal content page. This only needed for php and contentteller. A topic about this exists already, but I am not able to follow this as to much between of knowledge is missing.
Many thanks already for the responses.
Olaf