Jump to content

help with configuring my WHMCS


Recommended Posts

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

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