Need to put code in to a page

7 posts by 2 authors in: Forums > CMS Builder
Last Post: March 3   (RSS)

By Dave - March 1

Hi Robert, 

I'd have a look at the source code for contact.php.  It looks like all the machform code is there.

And there's a section in the CMS that lets you change the text and forum number here: 
https://arsicbros.com/cmsAdmin/admin.php?menu=contact_forms

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

By Robarbh - March 1

Dave,
i looked at the contact.php I don't see it there

where would be the source code

what am I missing i am very new to cmsb system

Robert

Robert Hedrick

By Dave - March 1

Hi Robert, 

That part isn't integrated into the CMS so it's something different, but it looks like you've got a block of code in contact.php like this:

<?php				 
  require("/home1/arsicbro/public_html/machform/machform.php");
  $mf_param['form_id'] = $contactRecord['form_id'];
  $mf_param['base_path'] = 'https://arsicbros.com/machform/';
  display_machform($mf_param);
?>

That's likely the part that is calling MachForm. 

The only part coming from CMSB is the $contactRecord['form_id'] which is set based on the URL.  

Dave Edis - Senior Developer
interactivetools.com

By Robarbh - March 2

Dave,

I must be stupid but I cannot find the place to edit and put the code

I have looked at all the php files in public_html Folder

<div id="mf_placeholder"

     data-formurl="//arsicbros.com/machform/embed.php?id=11903"

     data-formheight="677" 

     data-formtitle="Contact Email Form" 

     data-paddingbottom="10">

</div>

<script>

            (function(f,o,r,m){

                        r=f.createElement('script');r.async=1;r.src=o+'js/mf.js';

                        m=f.getElementById('mf_placeholder'); m.parentNode.insertBefore(r, m);

            })(document,'//arsicbros.com/machform/');

</script>

Robert Hedrick

By Dave - March 3

Hi Robert, 

I pasted it in contact.php for you, have a look for the block of code below this tag: <?php // new code: START ?>

https://www.arsicbros.com/online-proposal-request

I didn't test though but it appears to be displaying correctly.

If you need more help with CMSB or any related scripts we also have consulting services available.

Cheers

Dave Edis - Senior Developer
interactivetools.com

By Robarbh - March 3

Dave,

I really Appreciate that

Thank You so much.

Robert

Robert Hedrick