integrating a simple php application into cmsms site

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Jesse
Forum Members
Forum Members
Posts: 29
Joined: Fri Jan 07, 2011 8:56 pm

integrating a simple php application into cmsms site

Post by Jesse »

Hi, I am in the process of re-creating a currently static site as a cmsms site.
In the existing site I put together a really basic php application. http://www.consumercredit.com/card-act-quiz.php
It is basically just a quiz which scores the user's answers.
I was wondering if anyone had tried incorporating something like this into a cmsms site in the past and how they did it?
Everything else I am doing is just content I can paste in, but Im not sure how I do something dynamic like this?
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: integrating a simple php application into cmsms site

Post by Jeff »

You should be able to put it in a UDT.

1. Remove the <?php .... ?> and put the rest in a UDT.
2. If the script has any embed html switch it to pure php with echo or print commands.
3. Put the UDT ( {udt_name} ) on a new page.
4. Update any page references in the UDT (pay attention to the file extension set in the config)

That should do it but to be sure I would have to look at the script.
Post Reply

Return to “The Lounge”