rbro Posted January 2, 2008 Share Posted January 2, 2008 I'd like to have my affiliates agree to a separate TOS before signing up. I suppose I can include the necessary language in my main TOS for existing hosting customers, but for affiliate-only signups, is there some type of workaround for "forcing" an "affiliates-only" TOS to be agreed to? 0 Quote Link to comment Share on other sites More sharing options...
internetbrother Posted January 3, 2008 Share Posted January 3, 2008 what do you mean by affiliate-only signups! is there a different signups for affilates? 0 Quote Link to comment Share on other sites More sharing options...
Si Posted January 3, 2008 Share Posted January 3, 2008 what do you mean by affiliate-only signups! is there a different signups for affilates? Yea, if you allow client registration without purchasing products or services in the CONFIGURATION >> General Configuration >> Other tab (first option). ie, affiliate signups. Si 0 Quote Link to comment Share on other sites More sharing options...
internetbrother Posted January 3, 2008 Share Posted January 3, 2008 thanks I have already done that but I do not see any different sign up all users are required to register when they are registered only then they can go to reseller section and activate it but not a different sign up. I see the sign up is the same for all 0 Quote Link to comment Share on other sites More sharing options...
Si Posted January 3, 2008 Share Posted January 3, 2008 thanks I have already done that but I do not see any different sign up all users are required to register when they are registered only then they can go to reseller section and activate it but not a different sign up. I see the sign up is the same for all You're right. I don't allow clients who aren't customers to sign up, so I just went in and activated it, clicked to register on my site and you are shown the exact same TOS as is shown to all customers. Don't see the need for a separate affilates TOS rbro. Si 0 Quote Link to comment Share on other sites More sharing options...
rbro Posted January 3, 2008 Author Share Posted January 3, 2008 Well it would be nice as most of the TOS deals with hosting related matters. But I suppose I can just include the affiliates agreement as part of the main TOS and include some language that specifies what pertains to hosting customers and what pertains to only affiliates. I haven't tested it out yet, so I'm not even sure what it looks like from a customer point of view. 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 3, 2008 Share Posted January 3, 2008 What you can do is in the affiliatessignup.tpl just under <p>{$LANG.affiliatesfootertext}</p> <br /> You can put <p>I have read and agree to the <a href="/link/tos.html">Affiliate TOS</a></p> You can get more fancy with check boxes, iframes with the TOS, required fields, but that will at least point you in the right direction. 0 Quote Link to comment Share on other sites More sharing options...
rbro Posted January 3, 2008 Author Share Posted January 3, 2008 Oh cool. I'll have to check that out. Is that template used for existing clients as well as new affiliate-only signups? 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 3, 2008 Share Posted January 3, 2008 The client will first have to register at yourdomains.tld/WHMCS/register.php and once they are registered they can go to affiliates.php and sign-up. 0 Quote Link to comment Share on other sites More sharing options...
internetbrother Posted January 3, 2008 Share Posted January 3, 2008 keep this in my book mark man again I need to edit templates 0 Quote Link to comment Share on other sites More sharing options...
rbro Posted January 3, 2008 Author Share Posted January 3, 2008 The client will first have to register at yourdomains.tld/WHMCS/register.php and once they are registered they can go to affiliates.php and sign-up. What about when an existing client goes to activate himself as an affiliate? In the future, I can add an affiliates section to the main TOS, so that all new signups have to agree to it as part of the order process. But I'd like to get existing clients to have to agree to it before activating themselves as affiliates. 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 3, 2008 Share Posted January 3, 2008 Right, and with the solutions that was provided on page 1, they will have to agree with the TOS. What you are editing it the sign-up form. So anyone who goes to affiliates.php that is not currently an affiliate will have to agree before they are activated. Does that make sense? Brett 0 Quote Link to comment Share on other sites More sharing options...
rbro Posted January 3, 2008 Author Share Posted January 3, 2008 Well if I'm logged in as a client and I click on affiliates, then "activate affiliate", it looks like it just gets automatically activated. is there a setting somewhere to force the client to go to affiliates.php? 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 3, 2008 Share Posted January 3, 2008 Are you wanting to force the user to accept the TOS on the affiliates.php page? 0 Quote Link to comment Share on other sites More sharing options...
rbro Posted January 11, 2008 Author Share Posted January 11, 2008 I need a little help here. I'm trying to modify affiliatessignup.tpl so that I can have a second affiliates-specific TOS that must be agreed to before anyone can signup as an affiliate. Here's what I've got so far: {if $affiliatesystemenabled} <p>{$LANG.affiliatesintrotext}</p> <ul> <li>{$LANG.affiliatesbullet1} {$bonusdeposit}</li> <li>{$LANG.affiliatesearn} <strong>{$payoutpercentage}</strong> {$LANG.affiliatesbullet2}</li> </ul> <p>{$LANG.affiliatesfootertext}</p> <br /> <p><input type="checkbox" name="accepttos" id="accepttos"> <label for=accepttos>{$LANG.ordertosagreement} <a href="/affiliatetos.html"}" target="_blank">{$LANG.affiliatetos}</a></label>.<p> <p align="center"><input type="button" value="{$LANG.affiliatesactivate}" onclick="window.location='affiliates.php?activate=true'" /></p> {else} <p>{$LANG.affiliatesdisabled}</p> {/if} This gets me everything I need except "forcing" the client to agree to the TOS before activating themselves as an affiliate. How can I make that happen? 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted January 11, 2008 Share Posted January 11, 2008 I think you'll need some javascript to make the field required, and to check that the little box has been ticked. 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 11, 2008 Share Posted January 11, 2008 This gets me everything I need except "forcing" the client to agree to the TOS before activating themselves as an affiliate. How can I make that happen? Change: <p><input type="checkbox" name="accepttos" id="accepttos"> <label for=accepttos>{$LANG.ordertosagreement} <a href="/affiliatetos.html"}" target="_blank">{$LANG.affiliatetos}</a></label>.<p> <p align="center"><input type="button" value="{$LANG.affiliatesactivate}" onclick="window.location='affiliates.php?activate=true'" /></p> To: <p><input type="checkbox" name="accepttos" id="accepttos"> <label for=accepttos>{$LANG.ordertosagreement} <a href="/affiliatetos.html"}" target="_blank">{$LANG.affiliatetos}</a></label>.<p> <p align="center"><input type="button" onClick="check_agree(this.form);" value="{$LANG.affiliatesactivate}" onclick="window.location='affiliates.php?activate=true'" /></p> {literal} <script language="javascript"> function check_agree (form) { if (form.agree.checked) { form.submitButton.disabled = true; form.submit(); } else { alert('If you don\'t agree, you can\'t continue.'); } } {/literal} I have not tested it, but I think it will work. 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 11, 2008 Share Posted January 11, 2008 Actually I don't know how that would work with two onClick's there. Also try: <p><input type="checkbox" name="accepttos" id="accepttos"> <label for=accepttos>{$LANG.ordertosagreement} <a href="/affiliatetos.html"}" target="_blank">{$LANG.affiliatetos}</a></label>.<p> <p align="center"><input type="button" value="{$LANG.affiliatesactivate}" onclick="check_agree(this.form);window.location='affiliates.php?activate=true'" /></p> {literal} <script language="javascript"> function check_agree (form) { if (form.agree.checked) { form.submitButton.disabled = true; form.submit(); } else { alert('If you don\'t agree, you can\'t continue.'); } } {/literal} 0 Quote Link to comment Share on other sites More sharing options...
rbro Posted January 11, 2008 Author Share Posted January 11, 2008 Thanks for your help, but neither of these seem to work. If I change the code, then the "activate affiliate" button does nothing. There is also no alert that I can see if the box is unchecked. 0 Quote Link to comment Share on other sites More sharing options...
Tech Entrance Posted January 15, 2008 Share Posted January 15, 2008 What you can do is in the affiliatessignup.tpl just under <p>{$LANG.affiliatesfootertext}</p> <br /> You can put <p>I have read and agree to the <a href="/link/tos.html">Affiliate TOS</a></p> You can get more fancy with check boxes, iframes with the TOS, required fields, but that will at least point you in the right direction. I was just about to say this 0 Quote Link to comment Share on other sites More sharing options...
rbro Posted January 15, 2008 Author Share Posted January 15, 2008 I just need to get the javascript bits to work, so it "forces" the user to check the box. Perhaps I can pilfer a bit from elsewhere as Brett's code doesn't seem to work for me. 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 15, 2008 Share Posted January 15, 2008 Give me a bit and I will see what I can do. 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 15, 2008 Share Posted January 15, 2008 This one was a bit difficult! Here is the whole affiliates.tpl {if $affiliatesystemenabled} <p>{$LANG.affiliatesintrotext}</p> <ul> <li>{$LANG.affiliatesbullet1} {$bonusdeposit}</li> <li>{$LANG.affiliatesearn} <strong>{$payoutpercentage}</strong> {$LANG.affiliatesbullet2}</li> </ul> <p>{$LANG.affiliatesfootertext}</p> <br /> <form action="affiliates.php" action="affiliates.php" onSubmit="return false;"> <input type ="checkbox" name="activate" value="true"> <label for=accepttos>{$LANG.ordertosagreement} <a href="/affiliatetos.html"}" target="_blank">{$LANG.affiliatetos}</a></label>. <input type="submit" name="submitButton" onClick="check_activate(this.form);" value="{$LANG.affiliatesactivate}"> {literal} <script language="javascript"> function check_activate (form) { if (form.activate.checked) { form.submitButton.disabled = true; form.submit(); } else { alert('If you don\'t agree, you can\'t continue.'); } } </script> {/literal} {else} <p>{$LANG.affiliatesdisabled}</p> {/if} 100% sure this time that it works. 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted January 16, 2008 Share Posted January 16, 2008 rbro, Did this work for you? 0 Quote Link to comment Share on other sites More sharing options...
rbro Posted January 17, 2008 Author Share Posted January 17, 2008 Yes! Thank you so much. Sorry it took me so long to respond. I feel much better having a separate user agreement for the Affiliates program. 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.