The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Using Form Tools across multiple sites - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Using Form Tools across multiple sites (/showthread.php?tid=4537) |
Using Form Tools across multiple sites - johna1954 - Jul 29th, 2014 Hi, I manage a handful of sites including my own which uses Form Tools ok. I have been asked to add forms to one of the other sites (on the same server) Can this be done, I would be using the API? I only have access to the website files not full access to the server. Would I need a separate instance of Form Tools for each site? Many Thanks John RE: Using Form Tools across multiple sites - Joe - Jul 29th, 2014 Hi John, If all the sites are on the same server you should be okay to use the API. It'll be easier using the POST method. You only need a single instance of Form Tools. Cheers, Joe RE: Using Form Tools across multiple sites - johna1954 - Jul 30th, 2014 Hi Joe, thank you for your reply. I am using the POST method but repeated attempts to get 2nd site working failed every time with a blank page. I am presuming that the path is incorrect to api.php. The path used was: /var/www/vhosts/scotlandsartists.com/httpdocs/formtools/global/api/api.php If I put this path into the original website instead of: ../formtools/global/api/api.php it works fine so I assume the path is correct. Both sites are definitely on the same server. Severe scratching of the head going on! Appreciate any further thoughts you might have. Thanks John RE: Using Form Tools across multiple sites - johna1954 - Aug 11th, 2014 Just a follow up and solution. After further head scratching and no success with the paths I uploaded the complete 'formtools' folder from the original site to the second site and changed the details in config.php and 'library.php' to the second site. The database details remained the same. On the form page 'Require Once' was set to the 'api.php' on the second site (require_once("formtools/global/api/api.php") ![]() Regards John |