kulsari@yahoo.com Posted March 19, 2010 Share Posted March 19, 2010 Dear All, I have customized the Header.tpl to ... Problem: 1. this piece of code {if $systemurl}<base href="{$systemurl}" />{/if} 2. because of this piece, all the href is prefixed by the WHMCS directory. Requirement: 1.When one click on Company name in WHMCS panel, it should redirect to original website. ----Refer below------- <head> <meta http-equiv="content-type" content="text/html; charset={$charset}" /> <title>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</title> {if $systemurl}<base href="{$systemurl}" />{/if} <link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" /> <script type="text/javascript" src="includes/jscript/jquery.js"></script> </head> <body> <div id="top_container"> <div id="top"> <div id="h1"> <a href="www.mydomain.com" title="{$companyname}">{$companyname}</a></div> <div id="welcome_box">{if $loggedin}{$LANG.welcomeback}, <strong> --------------Code end-------- Now, problem is when one click on $companyname , now appearing in the website header..it redirect to WHMCS directory first and then add the href link "www.mydomain.com/WHMCS/www.mydomain.com" obviously, no page exists with this. if i use, <a href="home" title="{$companyname}">{$companyname}</a></div> redirect to WHMCS directory first and then add the href link "www.mydomain.com/WHMCS/home" but my intention is to redirect to only http://www.mydomain.com/home I understand it is because of prefix, but how to remove prefix only for the companylogo. So , can someone help me how to do this. Appreciate it. 0 Quote Link to comment Share on other sites More sharing options...
Wiredremix Posted March 19, 2010 Share Posted March 19, 2010 you need to add http:// in front for it to work. Just having the www. doesnt make it look for a external source. For example: <a href="http://www.mydomain.com" title="{$companyname}">{$companyname}</a></div> 0 Quote Link to comment Share on other sites More sharing options...
kulsari@yahoo.com Posted March 19, 2010 Author Share Posted March 19, 2010 awsm...I am new to WHMCS...and enjoying it.... By d way, I spent four hours for the solution...this will help me a lot.... 0 Quote Link to comment Share on other sites More sharing options...
Wiredremix Posted March 20, 2010 Share Posted March 20, 2010 No problem, you will soon pickup things as you work through 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.