Application with C5 front end?

Permalink
I've been asked to develop a web application using Concrete5 as the front end, so that the user authentication and the "static" pages of the site are handled by C5, but all the clever stuff I can write myself in PHP. I need to add my own database tables and store more information about users than C5 itself can handle. I don't think I can write this as a straightforward block, so instead I need to be able to jump from a C5 page into my scripts but still know who is logged in and remain "secure". I notice that some PHP $_SESSION data is available, but none appears to straightforwardly represent the user id - is there an easy way to get the uid? I've taken a quick look at the API documentation but to be honest its far too complex for me to understand.

hockeyshooter
 
frz replied on at Permalink Reply
frz
there's a part of concrete5 called single pages that let you build out custom applications while still using the theme and getting at standard data like user session..

check out the developer docs and look for single pages..
hockeyshooter replied on at Permalink Reply
hockeyshooter
Thanks - I did wonder about that, but so far I haven't been able to get C5 to accept a single file, be it PHP or HTML. Every one is rejected (with or without file extension).
frz replied on at Permalink Reply
frz
You're not supposed to add PHP/html files through the file manager - you have to add single pages to the directory for em in your install.
hockeyshooter replied on at Permalink Reply
hockeyshooter
I go to 'Pages and Themes', click the 'Single Pages' tab and at the bottom of that page there's a section titled Add Single Page. Are you saying that's not what I need to use? If not, what is that for? And what do you mean by 'em'?
frz replied on at Permalink Reply
frz
that's where you tell concrete5 about the single pages you want in your system.

You then have to ftp a file to match the reference you made into the file system. I was only pointing out that you cant upload those files through the file manager in concrete5
hockeyshooter replied on at Permalink Reply
hockeyshooter
OK, looks like I am doing the right thing - but as I say, it will not accept anything we upload: plain text, HTML or PHP. Always comes back with:
"That specified path doesn't appear to be a valid static page."
I can even type that path into the browser and it works, so I know the file is there.
frz replied on at Permalink Reply
frz
http://www.concrete5.org/help/building_with_concrete5/developers/mvc/single_pages
hockeyshooter replied on at Permalink Reply
hockeyshooter
That works - just a shame it doesn't give any clues on the 'Single Pages' page. Given I've already created my forms in a custom block, I guess I could use 'single pages' for the scripts that the forms submit to?
bcarone replied on at Permalink Reply
bcarone
Lets see your example of your single page hockeyshooter. If your doing a Single Page according to the developer's How-To, I would imagine it should be working for you.

The only issue I can see doing a custom forum is that the database schema may be off. If that is the case, try adding your tables for the forum into your C5 db. Then you can work within the framework of C5. I am not sure if this will work (since I am working on a design for that sort of thing as we speak, not a forum though) within the confines of a single page. Theoretically it should work but getting there and testing is 90% of the battle.

Let us know if it works.
hockeyshooter replied on at Permalink Reply
hockeyshooter
I'm not adding a forum - its a set of reporting forms for managing a European project. The data is going to be private, so I can't show anyone.

However, I am very much interested in having a forum on my website - is this forum downloadable?
hockeyshooter replied on at Permalink Reply
hockeyshooter
I've temporarily given up on using single pages and returned to included scripts in a custom block. Problem I have now is that when I submit my forms, it dumps you on the login page (although it doesn't actually log you out). Any ideas?