I want to have a login page for my site which is based on wordpress. Users are not suppose to see anything on the site unless they are logged on. So,[/*:m]
I put all the code inside my header file and inside the IF condition I have put the form just like in your demo. All users must be logged on to see the site. See snippet below…[/*:m]
My ELSE part will be my entire page. The contents of the header file – menus and the whatnot, everything inside the wrapper and footer. I close the ELSE brace at the end of the footer[/*:m][/list:u]. Problem: I am getting an error when I close the brace for the ELSE part of the IF statement.
Here is a small snippet:
///form goes here
//rest of the header file
//wrapper opens here and closes at the end of the index file
} // this is done at the end of the footer. But i get an error.
Yes, it is possible to close the code block in a different file. Are you sure you don’t have an extra closing } in one of your files? That may cause the error, which means that what you think is the closing } on the if statement is actually unnecessary.