Results 1 to 9 of 9

Thread: Pages keeps being "hidden" for users not logged in.

  1. #1
    Join Date
    Jun 2009
    Posts
    74

    Default Pages keeps being "hidden" for users not logged in.

    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.

  2. #2
    Join Date
    Jun 2009
    Posts
    74

    Default

    the code in my php file looks like this.

    Code:
    <?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);
    ?>

  3. #3
    Join Date
    Jun 2009
    Posts
    74

    Default

    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.

  4. #4
    Join Date
    Jun 2009
    Posts
    74

    Default

    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.

  5. #5
    Join Date
    Jun 2009
    Posts
    74

    Default

    SOLVED !!!

    helps just writing about it, it seems

    My problem was cause by this code:
    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.

  6. #6
    Join Date
    Feb 2010
    Location
    United Kingdom
    Posts
    608

    Default

    thats simple,

    in the css file..

    This is whats in mine.
    Code:
    .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
    Code:
    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
    Last edited by disgruntled; 06-16-12 at 04:23 PM.

  7. #7
    Join Date
    Jun 2009
    Posts
    74

    Default

    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

  8. #8
    Join Date
    Feb 2010
    Location
    United Kingdom
    Posts
    608

    Default

    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

  9. #9
    Join Date
    Jun 2009
    Posts
    74

    Default

    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

Similar Threads

  1. Limiting pages to logged in users
    By Sitecenter in forum Customisation & Integration Questions
    Replies: 3
    Last Post: 10-05-07, 07:29 AM