denully Posted June 16, 2012 Share Posted June 16, 2012 Hey, I'm trying to make some new pages in whmcs, by making the new php and tpl files The pages are working just fine, the only problem i have is that all the pages i make, can only be seen by users who is logged in. I'm not sure how to make it visible for users not logged in. an example would be https://eco.kazi-networks.com/hosting.php its not showing anything for users not logged in. 0 Quote Link to comment Share on other sites More sharing options...
denully Posted June 16, 2012 Author Share Posted June 16, 2012 the code in my php file looks like this. <?php define("CLIENTAREA",true); define("FORCESSL",true); require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); $pagetitle = "Hosting"; $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>'; $breadcrumbnav .= ' > <a href="hosting.php">Hosting</a>'; initialiseClientArea($pagetitle,'',$breadcrumbnav); $templatefile = "hosting"; outputClientArea($templatefile); ?> 0 Quote Link to comment Share on other sites More sharing options...
denully Posted June 16, 2012 Author Share Posted June 16, 2012 it seems its a bigger problem i have. Not only new pages, i have missed something some where hehe. my http://eco.kazi-networks.com/index.php is blank as well unless your logged in. 0 Quote Link to comment Share on other sites More sharing options...
denully Posted June 16, 2012 Author Share Posted June 16, 2012 ok Scratch everything i said above. I was a bit fast on the trigger here. It seems at some point i have lost all content on pages for viewers not loggeg in. ( https://eco.kazi-networks.com ) that goes for normal whmcs pages and those i created my self. 0 Quote Link to comment Share on other sites More sharing options...
denully Posted June 16, 2012 Author Share Posted June 16, 2012 SOLVED !!! helps just writing about it, it seems My problem was cause by this code: {literal} <script type="text/javascript"> $("div:contains(Logged in as Administrator):last").hide(); </script> {/literal} that i placed in there, trying to remove that blue bar saying admin was logged in. it just annoyed me, being there. 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted June 16, 2012 Share Posted June 16, 2012 (edited) thats simple, in the css file.. This is whats in mine. .adminreturndiv {position:absolute;top:0 !important;right:0 !important;padding:5px 10px !important;background-color:#B4B4B4 !important;font-family:Tahoma !important;font-size:11px !important;color:#000 !important;z-index:5000;} now... the simplest solution but remember this only shows to a logged in admin, and can be used to serve as a reminder to log out. if you choose you just done want it. add the following to the adminreturndiv css class display:none; i thought there was an option to hover and show it, but not without some javascript, or a some other element to make it show from the css, that would be silly Edited June 16, 2012 by disgruntled 0 Quote Link to comment Share on other sites More sharing options...
denully Posted June 16, 2012 Author Share Posted June 16, 2012 Ah thanks. I didnt have that in my theme css file. But added it now and finally i could move it further out in the side, where it wasnt covering menu's and such. Thanks 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted June 16, 2012 Share Posted June 16, 2012 no worries, i cant remember is i edited anything in that css, probably the z-index but aside from that i think its the default across all themes so normally the return div is up in the right hand corner 0 Quote Link to comment Share on other sites More sharing options...
denully Posted June 16, 2012 Author Share Posted June 16, 2012 I have edited so much in this theme by now, so i might just have removed it by mistake at some point hehe. Mine keep hanging in the right side, but down in the middle of everything hehe 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.