Page 1 of 1

PHP/JavaScript Problems!!!

Posted: Wed Jul 05, 2006 11:28 pm
by blis102
Hey all,
Heres my problem. I have a premade php/javascript script that serves as a user registration field that sends data to my database. The script works, but i cant seem to find how to integrate it into CMSMS. Here is location of the problem page:

http://winecountrybride.com/index.php/r ... gistration

I know you can use literal tags to make the javascript work as it should... and i tried it, but to no avail.

Im thinking, do i need to create my own module? or can i just use the code in the pages? I have everything built i just need to integrate it. Notice on the page how the javascript and PHP are visibile... is there a way to make these not parse as text but as proper code?

Thank for you help!!

Re: PHP/JavaScript Problems!!!

Posted: Thu Jul 06, 2006 12:32 am
by calguy1000
a) checkout the frontendusers, customcontent, and selfregistration modules, they will probably do what you want.
    if they don't work for you, I'd enjoy hearing why.

b) barring that, you can put your php stuff into user defined tags, and then call them with {tagname} in your page.

c) you can turn on use_smarty_php_tags in the config.php and then use {php} and {/php} to delimit your php code.