Writers Hosting Posted January 7, 2012 Share Posted January 7, 2012 Is it possible to show WHMCS pages on the main site. For example, I have a WordPress site as my main site and then WHMCS as a folder: Main Website http://www.moonworks.co.uk WHMCS http://www.moonworks.co.uk/members Can I call pages into the WordPress site using the codse below? <?php define("CLIENTAREA",true); require("whmcs/dbconnect.php"); require("whmcs/includes/functions.php"); require("whmcs/includes/clientareafunctions.php"); // My code here ?> This is code I found elsewhere, and just thought that this would solve many problems as, although I have both site & WHMCS looking the same, it would be good to have the user stick to just the main site as often as possible, mainly to make things easier for them. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
Sitepearl Posted January 7, 2012 Share Posted January 7, 2012 I'm a Joomla fan, so I haven't messed around much with Wordpress and can't give you a definite answer... but I will say that so long as your page above can execute PHP code and you include the whmcs db/function files correctly, you should be able to pull back any data you want. Not sure if any red flags will fly up if you try to include the files outside of your license directory, though. Tom 0 Quote Link to comment Share on other sites More sharing options...
Writers Hosting Posted January 7, 2012 Author Share Posted January 7, 2012 ok thanks. I'll give it a go in the morning and share on here if it works. If it works with WordPress, there's no reason it wouldn't work with Joomla 0 Quote Link to comment Share on other sites More sharing options...
Sitepearl Posted January 7, 2012 Share Posted January 7, 2012 I build my entire site around WHMCS I was just saying I didn't know if you were going to use a completely custom page or if Wordpress had some type of built-in inclusion functionality. Best of luck 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.