Frankc Posted August 24, 2016 Share Posted August 24, 2016 What I am trying to do is to add a hook where variables are send to an external page for processing via get or post. The page is on other domain and involves creating directories so te hook itself won't be able to do that. hook = get variables (userid, domain) and send to an external page. (Same server, other domain. The database can be updated from either side so it's no problem) Do anybody have some ideas please? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 24, 2016 Share Posted August 24, 2016 perhaps a data feed - you could use that to pull info from the WHMCS database and display the results on an external site... except perhaps in your case, you don't display it, you assign it to a variable(s) needed for your directory creation instead? http://docs.whmcs.com/Data_Feeds 0 Quote Link to comment Share on other sites More sharing options...
Frankc Posted August 24, 2016 Author Share Posted August 24, 2016 Thanks Brian but I don't think it will work as it require manual action. I build a website builder system and offer a free trial where the necessary folders and files are automatic created. But hmmm ..... can perhaps do it with a workaround if nobody have any other idea. (Store variables in a table. If user login, check to see if there is userid match, if yes, use that to create the folders etc. Not ideal but will work) (I am by the way deaf and learnt as per my slogan, doing and very seldom asking hehehe) 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 25, 2016 Share Posted August 25, 2016 Brian suggestion might work if you change the output of DataFeed file to Plain Text or better JSON format. but if you need to use ActionHook the internal function cURL can be used to pass any variables to remote Website/URL 0 Quote Link to comment Share on other sites More sharing options...
Frankc Posted August 25, 2016 Author Share Posted August 25, 2016 Thanks but I already implemented a workaround. Add the database entries via hook with additional "created" field value as NO and if client login, my system create the folders and files and set the created value to Yes. A bit extra database queries but I will try the datafeed suggestion later thanks. 0 Quote Link to comment Share on other sites More sharing options...
Onlinelove79 Posted August 26, 2016 Share Posted August 26, 2016 can perhaps do it with a workaround if nobody have any other idea. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.