uche40 Posted August 24, 2012 Share Posted August 24, 2012 I would really appreciate the code to achieve this for me. This is my first time with WHMCS but I am willing to pay for support if need be. 1. I have a flash app embedded in an index.php page and i want only WHMCS active product holders to have access to the page. I have created a videocustomizer.php and videocustomizer.tpl page . Its sole task is to check if the user is logged in and has an active status product id of 1, 2 or 3 and redirect to http://mypancho.com/videotemplates/online/videocustomizer/index.php. and pass the userid and password variable to the index.php file (The embedded flash app in the page needs this to recorgnise and do stuff for the user). Index.php is attached for determining how it needs the userid and password variable sent to it via http. I figured something like this below would work . # Check login status if ($_SESSION['uid']) { # User is logged in - put any code you like here to check if the user is logged in and has an active status product id of 1, 2 or 3 and redirect to http://mypancho.com/videotemplates/online/videocustomizer/index.php. # Also pass the username and password variable to the /index.php file in a way it expects it. Code goes here } else { # User is not logged in Display " Please, Sign up first" } 2. Where or which line precisly in the header.tpl or WHMCS.css or bootstrap.css can i change the width of the default template is have looked for hours with no luck. I am trying to reduce the page width to make it fit within my site as an iframe, but the edge bleeds out causing the scrool bar to appear. (widening the site iframe is not an option.) see here click sign up: http://videojac.com/basic-package-sign-up/ I have reviewed the info published at http://docs.whmcs.com/Client_Area_Template_Files http://docs.whmcs.com/Customising_WHMCS but that is not an option, and neither is the portal template. I really need to simply reduce the width. I am using a copy of the default template renamed to "defaultpanchotemplate" index.zip 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.