
09-24-2008, 08:57 PM
|
 |
|
|
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by soundbarrierpro
I have 45 pages created this way and they all work. However, I can not get them to recognize permsission. I don't want unregistered users to have access, but everything I've tried to manipulate the code doesn't work. It seems unregistered users can still browse to these pages no matter what I do.
I created my php file and called it 'test' and configured according to the hack specs.
I went to ACP>Style & Templates>Style Manager>Clicked drop down on my style>Selected Add New template.
I added the code the hack specified and named the new template custom_test
The page is now accessible with this link http://www.yourdomain.com/misc.php?d...&template=test
as is all my other pages I created the same exact way
http://www.yourdomain.com/misc.php?d...template=test1
http://www.yourdomain.com/misc.php?d...template=test2
and so on and so on.
Again, all the pages work fine. I just need to know how to make them permission based to block unregistered users from being able to browse to them.
|
Have you tried just wrapping the content of the template in an if conditional? Maybe do the same for links to the page?
|