Trying to add PHP Script

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Jul 29, 2013 5:03 pm
Reply with quote
Report this post
I am trying to add a php script for a modal popup mailchimp signup form I purchased on CodeCanyon.

To add the Subscribe Modal form to your PHP page first you will need to add the 'Click here to subscribe' button to the page which activates the DooMailChimp Subscribe Modal form.

Use any editor (like Dreamweaver etc..) and go into the source code view of your page and add the following code in between the head tag of your PHP page(<head>… </head>), lets call this code Require:

Require Code: <?php require 'doo_inc/class/dooMCForm.php';?>


Now add the following code in between your body tag (<body>…</body>), lets call this code doo_load_form:

doo_load_form Code: <?php echo $DooForm->doo_load_form(true, true, true,'blueBtn', Click here to Subscribe); ?>


I have all of the files neccessary to make this script work. I tried implementing with "Advanced Custom HTML Module" and "Flexi Custom Code Module" which both allow PHP.

I have followed the authors directions but am just getting an error code.

Thoughts??

Thanks!
:D
User avatar
Expert Boarder

GK User
Mon Jul 29, 2013 5:45 pm
Reply with quote
Report this post
You can't use any of joomla admin editor feature. Instead go to your template folder (templates/gk_creativity), then to layouts subfolder and find file containing header element (try default.php or head.php). The code should go there.
User avatar
Moderator

GK User
Mon Jul 29, 2013 5:54 pm
Reply with quote
Report this post
Cyberek wrote:You can't use any of joomla admin editor feature. Instead go to your template folder (templates/gk_creativity), then to layouts subfolder and find file containing header element (try default.php or head.php). The code should go there.


I tried. It's throwing an error. I wish this website wasn't due at 5 hours.

I am not using the joomla editors to do this... I tried using this and it did not work:

http://extensions.joomla.org/extensions ... ules/15251
User avatar
Expert Boarder

GK User
Mon Jul 29, 2013 9:14 pm
Reply with quote
Report this post
Those "errors" are most important thing. Could You paste them here?
User avatar
Moderator


cron