eng_asa Posted January 21, 2011 Share Posted January 21, 2011 Hello, I am using wordpress for my site & I succeed to do a not bad integration with WHMCS till now. I have a small problem in adding parts (login/register code) from whmcs header to my website header to be seen in all the site page. To be specified I am looking to add this part in header.php of wordpress {if $loggedin}{$LANG.welcomeback}, <strong>{$loggedinuser.firstname}</strong> <img src="templates/{$template}/images/icons/details.gif" alt="{$LANG.clientareanavdetails}" width="16" height="16" border="0" class="absmiddle" /> <a href="clientarea.php?action=details" title="{$LANG.clientareanavdetails}"><strong>{$LANG.clientareanavdetails}</strong></a> <img src="templates/{$template}/images/icons/logout.gif" alt="{$LANG.logouttitle}" width="16" height="16" border="0" class="absmiddle" /> <a href="logout.php" title="Logout"><strong>{$LANG.logouttitle}</strong></a>{else}{$LANG.please} <a href="clientarea.php" title="{$LANG.loginbutton}"> <strong>{$LANG.loginbutton}</strong></a> {$LANG.or} <a href="register.php" title="{$LANG.clientregistertitle}"><strong>{$LANG.clientregistertitle}</strong> </a>{/if} When I included it between PHP tags, the page completely disappeared! Also I am not sure how the whmcs variable will be understandable here! can someone show me how to do that correctly?! Thanks. 0 Quote Link to comment Share on other sites More sharing options...
eng_asa Posted January 23, 2011 Author Share Posted January 23, 2011 Hi Guys Any idea/help ? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 23, 2011 Share Posted January 23, 2011 Have a read here in the docs, especially down at the bottom: http://wiki.whmcs.com/Linking_to_WHMCS 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.