Jump to content

WHCMS back to Joomla iframe


wildorchid

Recommended Posts

I use Joomla iframe wrapper to display WHMCS.

 

In the email invoices the link to login to WHCMS goes directly to WHMCS. I'd like to add a back to frame Javascipt which opens my Joomla page and the corresponding WHMCS URL inside the iframe wrapper.

 

Anybody has done this or knows how to do this.

 

Else is it possible to change the link in the invoice emails to display a link opening Joomla with the corresponding WHCS page in the wrapper?

 

Thanks

Link to comment
Share on other sites

you need to add some code to your page that you want displayed within the wrapper by using JS to.

 

With JS, you can test if the page (self.location) is the top.location, and if not, load it into the url it's supposed to be in by using top.location.href.

 

Depending on the extent that you want to achieve, you may also have to make a small modification to Joomla's wrapper, such as adding a page variable that needs to display in the iframe (joomla's wrapper).

 

There are plenty of examples on how to achieve this on the web... simply search for "force a page into an iframe" or similar.

 

Hope this helps. :)

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