vinbase Posted December 28, 2008 Share Posted December 28, 2008 Hello, The code show here http://wiki.whmcs.com/Creating_Pages didn't work for me. initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav); is the problem I guess. I'm using v3.7.2 Any suggestions. Thank you. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 28, 2008 Share Posted December 28, 2008 That code is for V3.8.1 Try this example <?phpdefine("CLIENTAREA",true); require("dbconnect.php"); require("includes/functions.php"); $pagetitle = "Test Page"; $pageicon = "images/support/clientarea.gif"; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a> > <a href="test.php">Test Page</a>'; require("init.php"); # Define the template filename to be used without the .tpl extension $templatefile = "test"; require("display.php"); ?> 0 Quote Link to comment Share on other sites More sharing options...
vinbase Posted December 29, 2008 Author Share Posted December 29, 2008 Sparky, Thank you very much. It works!. 0 Quote Link to comment Share on other sites More sharing options...
hostwes Posted December 29, 2008 Share Posted December 29, 2008 Hey Sparky.. I have 3.8.1.. Running files with 'http://wiki.whmcs.com/Creating_Pages' They work fine.. But when accessed by SSL they return not secure.. How can I fix this? Please let know. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
hostwes Posted December 29, 2008 Share Posted December 29, 2008 Quick links... https://www.hostwes.com/hosting.php http://www.hostwes.com/hosting.php 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted December 29, 2008 Share Posted December 29, 2008 Seem you have it working now! 0 Quote Link to comment Share on other sites More sharing options...
hostwes Posted December 29, 2008 Share Posted December 29, 2008 Mine not working. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted December 29, 2008 Share Posted December 29, 2008 Are you getting an error? 0 Quote Link to comment Share on other sites More sharing options...
hostwes Posted December 30, 2008 Share Posted December 30, 2008 Yea, "Do you want to display non secure blah blah" Im using IE, Let me check in Firefox and Chrome. 0 Quote Link to comment Share on other sites More sharing options...
hostwes Posted December 30, 2008 Share Posted December 30, 2008 Firefox and Chrome both show ssl errors. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted December 30, 2008 Share Posted December 30, 2008 (edited) I don't have any errors in FF or Chrome. Edited December 30, 2008 by BAJI26 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 30, 2008 Share Posted December 30, 2008 Hey Sparky.. I have 3.8.1.. Running files with 'http://wiki.whmcs.com/Creating_Pages' They work fine.. But when accessed by SSL they return not secure.. How can I fix this? Please let know. Thanks. On your https page it is getting a base href with only http:// <base href="http://www.hostwes.com/" />In your admin Config => General Settings and check that you have the correct https:// entry in "WHMCS SSL System URL" 0 Quote Link to comment Share on other sites More sharing options...
hostwes Posted December 30, 2008 Share Posted December 30, 2008 Settings are correct.. The added pages are not normally SSL pages.. No need for them to be. Only if a client is logged in on a SSL page, then goes to an added page. It stays on Secure, instead of switching back to http like it would if going back to index.php. Am I making sense? How can I get around this. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
hostwes Posted December 30, 2008 Share Posted December 30, 2008 It seems that there is some way this can be done in the PHP file part of added page. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 30, 2008 Share Posted December 30, 2008 go through your header and footer tpl files and check to see if you have the full path/url to the images etc.. if you do remove them like the examples below eg.. one is in the head section <link rel="shortcut icon" href="http://www.hostwes.com/images/favicon.ico" />should be<link rel="shortcut icon" href="/images/favicon.ico" />another is (although this wont cause that much grief)<form method="post" action="http://www.hostwes.com/dologin.php?goto=clientarea">should be<form method="post" action="dologin.php?goto=clientarea"> Just to rule it out, your code in the template for the base href shoud be {if $systemurl}<base href="{$systemurl}" />{/if} 0 Quote Link to comment Share on other sites More sharing options...
hostwes Posted December 30, 2008 Share Posted December 30, 2008 Thanks, will try them out. Will let you know. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 30, 2008 Share Posted December 30, 2008 Thanks, will try them out. Will let you know. Can you PM me your hosting.php file. It only seems to happen on the custom pages. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted January 2, 2009 Share Posted January 2, 2009 (edited) I managed to duplicate your problem while I was doing a template for someone. The base href is only required for the knowledgebase, announcements, and downloads In your header.tpl change to line {if $systemurl}<base href="{$systemurl}" />{/if} to {if $systemurl} {if $smarty.server.PHP_SELF == '/knowledgebase.php' || $smarty.server.PHP_SELF == '/announcements.php' || $smarty.server.PHP_SELF == '/downloads.php'} <base href="{$systemurl}" /> {/if} {/if} If your whmcs is in a subdirectory put the directory name in front of the 3 filenames eg.. '/whmcs/knowledgebase.php' Edited January 2, 2009 by sparky 0 Quote Link to comment Share on other sites More sharing options...
ctgray Posted March 6, 2009 Share Posted March 6, 2009 Thanks, sparky ... your fix corrected the problem I was having as well. -C 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.