![]() |
Hey thanks for the hack!
I got a complete newbish question though... I'm rather new at this. What's the code for the form itself? What do I place here exactly? (in html) Quote:
http://www.++++hollywood.be (damn censoring :) ... it's "f u c k hollywood.be") Thanks |
Quote:
You just need to place PHP Code:
|
Quote:
|
Does this work in 3.6.1? hmmm
|
Quote:
It works in all 3.5.x and 3.6.x releases to date. |
I need to hide a html page until users are logged in. You start with making the page php, but HTML content is still visible. The HTML also contains some Javascript and it would be nice if this could be shielded permanently. Wrapping the whole HTML content inside <?php tags make it invisible, but also stops it from working.
How do I block the whole page until the user is logged in, also when viewing sourcecode? |
Quote:
However, you must do it correctly else it wont work. They must be put either in PRINT or ECHO statements. Example: PHP Code:
See If you use quotes within PHP code you MUST escape them with \ else it will give you an error. For example I had quotes in my enclosed HTML above so I did this HTML Code:
<div class=\"content\"> No need to read on from here, but there is another way which you may prefer. You could always just add the html as an include when required. For example. PHP Code:
It has no body, title, header tags etc, just straight HTML content. |
Is there any way to get around the chdir( ) requirement in the file that you are trying to place the logon form on? I'm trying to integrate this into our website, however we use a lot of include_once( ) to include various pieces of custom code to create the overall look and feel of the site. Consequently, this chdir really mucks things up.
Otherwise if I just put it on a static page it works great. :) Thoughts? |
Try this.
It should change you back to the origional directory. PHP Code:
PS, if this works and you use this hack please click instal :) |
ah ok that seems to have worked. Although there is an error in the piece of code I just downloaded:
The code is: Code:
// If logged in display logout link |
All times are GMT. The time now is 06:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|