Jump to content

closed accounts still logging in....


jackgordon

Recommended Posts

Here is a variation on this subject...

 

If someone signs up, but does not complete the payment, they are still granted access to the client area. Is there a way to prevent that, or at least restrict their access to the invoice for payment?

Link to comment
Share on other sites

Here is a variation on this subject...

 

If someone signs up, but does not complete the payment, they are still granted access to the client area. Is there a way to prevent that, or at least restrict their access to the invoice for payment?

 

Why would you want that?

There's not a lot of harm they can do within the client area, because if you setup your WHMCS correct it won't create the "hosting" account and/or domain.

Link to comment
Share on other sites

If someone signs up, but does not complete the payment, they are still granted access to the client area

 

They have to be able to login to pay :D

But you can add an {if} to your .tpl that if they have an o/s balance then take them to the only page you want them to see - the invoices page ...

Link to comment
Share on other sites

Perfect! Can anyone point me to where that coding is explained?

 

Something along the lines of this:

 

if ($_SESSION['uid']) {
 # User is Logged In - put any code you like here
$query = "SELECT * FROM tblhosting WHERE userid='".$_SESSION["uid"]."' AND domainstatus='Active'";
$result = mysql_query($query);
$num_rows = mysql_num_rows($result);
  if ( $num_rows > 0 ) {
// do stuff
$templatefile = "restrictedstuff"; 
    }
   else
   { 
   //send them to some restricted page
   $templatefile = "restrictedblock"; 
    }
} 

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