What I would like is to be able to have a pop out pilot centre like the one below (seperate from the main website). But obviously its not going to be part of the template however for some of the pages I would like to use the code from the.tpl files ( if you follow me).
Well, you could have it on a different page, like not connected to the website… Or you would have to make it in the .tpl form… If you explain a bit mroe in depth I can help you…
If you are trying to lose the phpvms layout and have a different layout for your pilot module but still use data from phpvms and the functions built in to it, there are two ways you can do it.
1 - action.php instead of index.php will bypass the template structure and you can direct the function to bring up a template that has only what you want in it.
2 - create your own pages and load the codon structure at the start to make all the functions available in your stand alone page ->
Warning: include_once(core/codon.config.php) [function.include-once]: failed to open stream: No such file or directory in /home/virginat/public_html/pilotcentre/index.php on line 465
Warning: include_once() [function.include]: Failed opening 'core/codon.config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/virginat/public_html/pilotcentre/index.php on line 465
Warning: include_once(core/codon.config.php) [function.include-once]: failed to open stream: No such file or directory in /home/virginat/public_html/pilotcentre/index.php on line 465
Warning: include_once() [function.include]: Failed opening ‘core/codon.config.php’ for inclusion (include_path=‘.:/usr/lib/php:/usr/local/lib/php’) in /home/virginat/public_html/pilotcentre/index.php on line 465
Is what I put in. Any ideas?
Your error shows that you are trying to find the file in
include_path=‘.:/usr/lib/php:/usr/local/lib/php’
I don’t think you have your file in the php library.
You need to have the complete path to the file if it in not in the same directory or a sub directory of where the file is that is calling it. -> if phpvms is set up in the root then it should be something like ->
../core/codon.config.php
or if that will not work try
http ://www.yoursite.com/core/codon.config.php
if phpvms is in a subfolder than you will have to add that to the path in your include function.
Ok we’re getting there, it’s found the file, but …
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/virginat/public_html/pilotcentre/index.php:7) in /home/virginat/public_html/core/codon.config.php on line 40
Ok we’re getting there, it’s found the file, but …
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/virginat/public_html/pilotcentre/index.php:7) in /home/virginat/public_html/core/codon.config.php on line 40
Are you starting a session in your standalone file? it is either that or you have white space after your closing php tag.
Maybe I am mis-understanding but I thought you were building basically a standalone site for your pilots to use but still use the data from phpvms. ie ->
your phpvms is “root/phpvms”
and
your pilot center is “root/pilotcenter”
so your pilotcenter is operating outside of the phpvms install. if you are within phpvms you would already have access to the data and functions. If you are just trying to bypass the skin and work within the phpvms install then I would use the action.php method.
When I say whitespace, check and see if there are any spaces after the last php tag in your files, have those will give you the “headers already sent” error
I loaded your script on my local server and it works fine, no errors outside of not having the images. It may be the way your server is configured, try putting the file in another directory and linking to the config file with the new path.