Nicholas Posted August 28, 2010 Share Posted August 28, 2010 hi, im wondering is there another way to end a page without using exit; $h->endpage; echo("blah"); as i cant use $h->endpage; in register,php or login.php some reason... even when i put $h in correct spot for example global $_config, $h; and if i use exit; or the other one this is what happens to my layout. normal page http://img713.imageshack.us/i/45313025.png/ page with exit; or other way http://img52.imageshack.us/i/52768617.png/ as you can see without the ending page function with exit; the page is fine but with the endpage function exit; it ruins my layout little, by pushing it to the right abit, which you can probably see... is there another way to end the page on sertain line without my layout going like that? if there is can you tell me please? thanks Nicholas Quote Link to comment Share on other sites More sharing options...
Wazam Posted August 28, 2010 Share Posted August 28, 2010 Were have you put this exactly? Eixt; $h->endpage(); return; All I can think of. =/ Quote Link to comment Share on other sites More sharing options...
Dominion Posted August 28, 2010 Share Posted August 28, 2010 you can't use exit($h->endpage()); i assume as the header.php is the ingame layout and register and the login are outside the game (so header.php would not be included) exit and die are php functions and would still work to kill the page Quote Link to comment Share on other sites More sharing options...
Nicholas Posted August 28, 2010 Author Share Posted August 28, 2010 yeh kinda figured thats was the reason for $h->endpage; function as the endpage function is at end of header.php also this is a line for what i mean in register.php for example if(file_exists('ipbans/'.$ip)) { echo "<font color=red size=-1><center>Your IP has been banned. There is no way around this.</center></font>"; exit; } the exit; bit pushing my layout out of its correct slot. also return; doesnt end a page does it? guess illl just have to put up with it i guess... Quote Link to comment Share on other sites More sharing options...
Dave Posted August 28, 2010 Share Posted August 28, 2010 Use else? Soo... if(IpBAN) { IP BAN TEXT } else { Register form } Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted August 28, 2010 Share Posted August 28, 2010 Is this occuring in all browsers? Personally id avoid having any css in the files. Put it in an external css file and link to that. Much easier to then troubleshoot. Also you should update your code. Align and postion by css rather than html center tags which is depreciated. Quote Link to comment Share on other sites More sharing options...
Dominion Posted August 28, 2010 Share Posted August 28, 2010 once again something i have not messed with but exit is a function would if(file_exists('ipbans/'.$ip)) { exit("<font color=red size=-1><center>Your IP has been banned. There is no way around this.</center></font>"); } not work ? and i would also stop using depreciated tags :) Quote Link to comment Share on other sites More sharing options...
Nicholas Posted August 28, 2010 Author Share Posted August 28, 2010 sorted thanks to guy on messages called Mattrew he said something about last 7 lines of the file and i just remembered something. its all fixed now. Quote Link to comment Share on other sites More sharing options...
Matthew Posted August 28, 2010 Share Posted August 28, 2010 lol glad to know you got it fixed bud!:) Quote Link to comment Share on other sites More sharing options...
Nicholas Posted August 28, 2010 Author Share Posted August 28, 2010 lol cheers, i remembered awhile back when i helped someone on their game and they had few the same lines which was at the bottom of the register page under the parts like them lines i posted if you know what i mean lol Quote Link to comment Share on other sites More sharing options...
Matthew Posted August 28, 2010 Share Posted August 28, 2010 lol yah well you got it all good now and all it took was " can i see the last 7 lines" lmfao well have fun!:P 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.