Guest thomash131 Posted August 16, 2013 Share Posted August 16, 2013 Is it possible to use an <if> statement to display a piece of HTML if my IPB forum has been turned offline by an admin? Thanks Link to comment Share on other sites More sharing options...
0 Lock Down Posted August 16, 2013 Share Posted August 16, 2013 (edited) Yes everywhere but it says it when trying to access site.. So what are you really trying to do???????? Edited August 16, 2013 by Lock Down Link to comment Share on other sites More sharing options...
0 Guest thomash131 Posted August 17, 2013 Share Posted August 17, 2013 It's really complicated. I've got a IP.Content block that pulls the latest news on a blank page of my forums. I then use javascript to pull the div and display it on the homepage, external to the forums. Problem is, if the forum is offline, the javascript just constantly loads. Instead, I want the news to be replaced by an error using an if statement that checks if the board is offline before displaying it. Link to comment Share on other sites More sharing options...
0 Lock Down Posted August 17, 2013 Share Posted August 17, 2013 That makes it easier and was not so hard to explain. You should be able to use ipsRegistry::$settings['board_offline']==0 to see if it is online... Link to comment Share on other sites More sharing options...
0 Chris Posted August 18, 2013 Share Posted August 18, 2013 The question(s) in this support topic have been answered and the owner has been able to solve the problem. Because of this, the support topic has been closed and moved.If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
Question
Guest thomash131
Is it possible to use an <if> statement to display a piece of HTML if my IPB forum has been turned offline by an admin?
Thanks
Link to comment
Share on other sites
4 answers to this question
Recommended Posts