Jump to content

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


Recommended Posts



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.

Link to comment
Share on other sites

the code in my php file looks like this.


$pagetitle = "Hosting";
$breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
$breadcrumbnav .= ' > <a href="hosting.php">Hosting</a>';

$templatefile = "hosting";

Link to comment
Share on other sites

SOLVED !!! :)


helps just writing about it, it seems :)


My problem was cause by this code:

<script type="text/javascript">
$("div:contains(Logged in as Administrator):last").hide();


that i placed in there, trying to remove that blue bar saying admin was logged in. :) it just annoyed me, being there.

Link to comment
Share on other sites

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



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 by disgruntled
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated