chomick Posted November 21, 2007 Share Posted November 21, 2007 Hello, How do I require clients to login to view the server status page? Thank you in advance, Chris 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted November 21, 2007 Share Posted November 21, 2007 It all hinges around your ability to use the forum search feature ... 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted November 21, 2007 Share Posted November 21, 2007 Hello, How do I require clients to login to view the server status page? Thank you in advance, Chris Open serverstatus.tpl and put the following code at the top of the file: {if $loggedin} Then at the bottom of the file add this: {else} <p>Please <a href="clientarea.php">login to your account</a> to use this function.</p> {/if} You should be good to go. 0 Quote Link to comment Share on other sites More sharing options...
chomick Posted November 21, 2007 Author Share Posted November 21, 2007 Hello uberhost, I can't thank you enough for your help. I ended doing the following-- I opened serverstatus.tpl and added the following code at the top of the file: {if $loggedin} Then at the bottom of the file I added this: {else} You must login to access this page. These login details differ from your websites control panel username and password.</p> <form action="dologin.php?goto=serverstatus" method="post"> <table align="center"> <tr><td align="right">Email Address:</td><td><input type="text" name="username" size="40" value="" /></td></tr> <tr><td align="right">Password:</td><td><input type="password" name="password" size="25" value="" /></td></tr> </table> <p align="center"><input type="submit" value="Login" /><br /><input type="checkbox" name="rememberme" /> Remember Me</p> </form> <p><strong>Forgotten your password?</strong> <a href="passwordreminder.php">Request a Password Reminder by clicking here</a>.</p><br /> {/if} Works like a charm! Thank you again, Chris 0 Quote Link to comment Share on other sites More sharing options...
dutchnet Posted November 22, 2007 Share Posted November 22, 2007 Hi, I changed your last coding part to support the language files {else} <p>{$LANG.loginintrotext}</p> <form action="dologin.php?goto=serverstatus" method="post"> <table align="center"> <tr><td align="right">{$LANG.loginemail}:</td><td><input type="text" name="username" size="40" value="{$username}"></td></tr> <tr><td align="right">{$LANG.loginpassword}:</td><td><input type="password" name="password" size="25" value="{$password}"></td></tr> </table> <p align="center"><input type="submit" value="{$LANG.loginbutton}"><br><input type="checkbox" name="rememberme"{$rememberme}> {$LANG.loginrememberme}</p> </form> <p><b>{$LANG.loginforgotten}</B> <a href="passwordreminder.php">{$LANG.loginforgotteninstructions}</a>.</p> {/if} 0 Quote Link to comment Share on other sites More sharing options...
chomick Posted November 22, 2007 Author Share Posted November 22, 2007 Great! Even better! Thank you! 0 Quote Link to comment Share on other sites More sharing options...
dutchnet Posted November 22, 2007 Share Posted November 22, 2007 we aim to please 0 Quote Link to comment Share on other sites More sharing options...
ddh Posted December 11, 2007 Share Posted December 11, 2007 How do you display the server status for the server the client is on, rather than all of the servers? Cheers. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted December 14, 2007 Share Posted December 14, 2007 How do you display the server status for the server the client is on, rather than all of the servers See Post#2 in this thread 0 Quote Link to comment Share on other sites More sharing options...
BionHostStan Posted December 21, 2007 Share Posted December 21, 2007 in this thread? where? 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.