Need to put code in to a page

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

By Robarbh - March 1

Hello,

I need to upgrade code from mchform but can't find the page to copy it into in cmsb

It seems to be caused by the form code embedded into your website is still using http:// while your new MachForm is now accessible using https://. Like in the following image, that is still using http://

https://arsicbros.com/contact.php?General%20Contact-13

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

 You will need to re-generate the form code, and then copy and paste the newly generated code into your webpage https://arsicbros.com/online-proposal-request and https://arsicbros.com/contact.php?General%20Contact-13

If there is any further question, please feel free let me know. Thank you.

where can I find the pages in cms to change

Thanks

Robert

Robert Hedrick

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 Robarbh - March 3

Dave,

I really Appreciate that

Thank You so much.

Robert

Robert Hedrick