Jump to content

Showing WHMCS pages on main site


Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated