Header, footer

Permalink
Hello is there any possibility to generate header page and footer page to two files and include to different page?
When I build some scripts and I want include header and footer from concrete or other blocks.
I dont want include it in simple_pages becouse it write error for my script. No including or require my script.

 
Mnkras replied on at Permalink Reply
Mnkras
sorry, your not making much sense...
max258 replied on at Permalink Reply
Ok, I want add header and footer to my 3rd party script and I dont know how catch header and footer to other page.
Mnkras replied on at Permalink Reply
Mnkras
What does the header & footer do, depending on what they do you do different things
max258 replied on at Permalink Reply
Header and footers will be only base links to style the 3rd party program and optically looks like one
Mnkras replied on at Permalink Reply
Mnkras
Edit your theme then, (if I understand correctly)
max258 replied on at Permalink Reply
This isnt solution for my program, but thanks for answers.
I need somethink like this:http://codex.wordpress.org/Integrating_WordPress_with_Your_Website...
jordanlev replied on at Permalink Reply
jordanlev
You can't do it in the exact same way as wordpress. What you want to do is create concrete5 "single_pages" and put your 3rd-party scripts in there. In a way, this is the "inside out" approach from wordpress (instead of pulling in concrete5 header and footer to your 3rd party script, you pull the 3rd-party scripts into the concrete5 body).

To make a single_page, just add a php file to your site's single_pages folder. Just paste in your 3rd party code there (could be any combination of HTML, CSS, Javascript, or PHP). Then, you have to activate that page by going to Dashboard -> Pages and Themes -> Single Pages (little grey tab at the top), and add your single page to the list by entering the file name WITHOUT the .php extension into the textbox at the bottom (under where it says "Add Single Page"), then click the "Add" button.

Now if you go to that URL, you will see that all of the code you pasted in shows up inside the header/footer of your current theme.

For example, if you created a file called "my_cool_page.php", you would enter "my_cool_page" into the dashboard, then visit the url "http://yoursite.com/my_cool_page" to see it.

Hope that helps!
max258 replied on at Permalink Reply
Thanks for answer.

Single pages will be famous for me, but it prints errors for my script.
Then it's impossible work with it.
I don't know how insert single pages the external script based on oop php.
I've test static page, this work well, but when I insert OOP PHP programmed page it prints error 500 for me.

I searching for other solution, but I cannot find it in concrete5 documentation and in this forum.

When you have idea write it :)
jordanlev replied on at Permalink Reply
jordanlev
Can you post the script here? It's impossible to say what the problem is without seeing the code.

Also, try things one small step at a time. First just make sure the single_page works by putting just one line of text in it, like "Hello WOrld". If that works, then try pasting in parts of your script one piece at a time, until it breaks. When it breaks, then you know which piece is causing the trouble.
max258 replied on at Permalink Reply
Is it the complete system to buy hosting programm based on ispcp omega.
The complete code is there:http://code.google.com/p/ispvoice/...
Its free and I want it work with CMS.
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Okay, I see. Well unfortunately what you want to do is not possible without a lot of work, and a lot of learning both codebases.

I thought you just had a little bit of php and html code, but you are talking about integrating two very large and complex systems which is very difficult and is going to take a long time. Nobody can answer this in a forum post -- sorry!

-Jordan
max258 replied on at Permalink Reply
Okey thanks, then I will find integrating in wordpress.
Thanks for answers.