Jump to content

Iframe + whmcs URL


Zeon

Recommended Posts

Hey everyone,

I have integrated my whmcs install into my template by using an iframe (Joomla Wrapper). I have changed the system URL in WHMCS general settings to the link of my iframe page:

http://web-2u.co.nz/index.php/Management.html

 

It's fine when WHMCS only sends out a link linking to that page ie in the welcome email however in the invoice created email it adds it's own code onto the URL to show the invoice e.g:

http://web-2u.co.nz/index.php/Management.html/viewinvoice.php?id=565

 

Which doesn't work. Any ideas on how to overcome this?

Link to comment
Share on other sites

  • 5 weeks later...

<?php

$iframeurl = "../whmcs/viewticket.php?";

$iframeurl .= "tid=";
$iframeurl .= $_GET[tid];
$iframeurl .= "&c=";
$iframeurl .= $_GET[c];
//$iframeurl then holds the same vars as the current page.
echo $iframeurl;
?> 

<iframe width="653" height="900px" align frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<?php echo $iframeurl; ?>"> <div align="left"></div> </iframe> 

Here's how you can pass the GET variables to the iframe. Not sure how I could modify the whmcs email variables to support this however....

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