{"id":1293,"date":"2020-03-27T10:30:15","date_gmt":"2020-03-27T09:30:15","guid":{"rendered":"http:\/\/ginclub.website\/home2\/gentsinnyon\/?page_id=1293"},"modified":"2020-11-24T20:49:50","modified_gmt":"2020-11-24T19:49:50","slug":"guide-to-the-program","status":"publish","type":"page","link":"https:\/\/ginclub.website\/home2\/gentsinnyon\/gin-club-home\/user-guide\/administrators-guide\/guide-to-the-program\/","title":{"rendered":"Guide to the program"},"content":{"rendered":"\n<p>Unfortunately this is rather quirky and convoluted. See <a href=\"http:\/\/ginclub.website\/home2\/gentsinnyon\/gin-club-home\/user-guide\/administrators-guide\/background-to-architecture\/\">Background <\/a>to understand the history which may explain some of the convolutedness (if that word is not too convoluted!!)<\/p>\n\n\n\n<p>I do all development on a PC simulation of a web site, using NetBeans, free from Oracle, to manage the code and XAMPP to simulate the website. Only once the code is fully tested do I copy it to HostGator.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Changing between web and PC simulation<\/h2>\n\n\n\n<p>There is a module in the home grown code,  <br>public_html\/home2\/ non_wp_routines, <br>called constants.php. This MUST be changed in going from local simulation to web. In particular <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>LOCAL_HOST must be set FALSE for the web and TRUE for PC simulation<\/li><li>DEBUG_MODE must be set FALSE for the web. It can be set either TRUE or FALSE for PC simulation mode, TRUE will generate a lot of extra output which can be useful for debugging purposes but a pain in the actual site.<\/li><\/ul>\n\n\n\n<p>All the WordPress code is in folder &#8220;public_html\/home2\/gentsinnyon&#8221;.  This contains a file called &#8220;wp_constant\/plugins\/mgw-gin-enable-db-updates&#8221; which contains a method called &#8220;mgw_gin_define_constants()&#8221;. <br>LOCAL_HOST must also be set here. Again set FALSE for web and TRUE for PC simulation. <\/p>\n\n\n\n<p>I&#8217;m sure there must be a better way than having to define LOCAL_HOST twice in separate modules of code. But I don&#8217;t know a simple way. Probably possible to have the code detect where it&#8217;s running. Help anyone!!<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Old bits of code<\/h2>\n\n\n\n<p>Some of the variables in constants.php are no longer used, also some of the code such as transition_files.php. This is a remnant from some of the changes I needed to make to the database as the code moved through several stages of development. I&#8217;ve left them in here for fear that omitting them may break some link.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unfortunately this is rather quirky and convoluted. See Background to understand the history which may explain some of the convolutedness (if that word is not too convoluted!!) I do all development on a PC simulation of a web site, using NetBeans, free from Oracle, to manage the code and XAMPP to simulate the website. Only &hellip; <a href=\"https:\/\/ginclub.website\/home2\/gentsinnyon\/gin-club-home\/user-guide\/administrators-guide\/guide-to-the-program\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Guide to the program&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":490,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1293","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ginclub.website\/home2\/gentsinnyon\/wp-json\/wp\/v2\/pages\/1293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ginclub.website\/home2\/gentsinnyon\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ginclub.website\/home2\/gentsinnyon\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ginclub.website\/home2\/gentsinnyon\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ginclub.website\/home2\/gentsinnyon\/wp-json\/wp\/v2\/comments?post=1293"}],"version-history":[{"count":4,"href":"https:\/\/ginclub.website\/home2\/gentsinnyon\/wp-json\/wp\/v2\/pages\/1293\/revisions"}],"predecessor-version":[{"id":1710,"href":"https:\/\/ginclub.website\/home2\/gentsinnyon\/wp-json\/wp\/v2\/pages\/1293\/revisions\/1710"}],"up":[{"embeddable":true,"href":"https:\/\/ginclub.website\/home2\/gentsinnyon\/wp-json\/wp\/v2\/pages\/490"}],"wp:attachment":[{"href":"https:\/\/ginclub.website\/home2\/gentsinnyon\/wp-json\/wp\/v2\/media?parent=1293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}