1 (edited by Michael aka Emilien 2006-09-30 10:08)

Topic: Page only for registered users, how to create?

I want to create the page (using Custom Pages mod), but only for registered users. Not registered must see the ACCESS DENIED message smile
HowTo?

And,.,...... how to create such thing NOT USING mod?

Michael aka Emilien @ My Opera Community: http://my.opera.com/michael_aka_emilien

Re: Page only for registered users, how to create?

You want to limit only certain custom pages to registered users?
Add an if statement to the code:

if ($id == id_num && $pun_user['is_guest'])
message($lang_common['No permission']);

Replace id_num with the page ID

As for not using a mod...
http://wiki.punres.org/Miniportal#New_page_template
And add an if statement to exclude guests wink

Re: Page only for registered users, how to create?

You're genious!:)))))))) Thanx

Michael aka Emilien @ My Opera Community: http://my.opera.com/michael_aka_emilien

Re: Page only for registered users, how to create?

All is done by the second example.
BUT!
Now my Attachment mod isn't working!

Michael aka Emilien @ My Opera Community: http://my.opera.com/michael_aka_emilien

Re: Page only for registered users, how to create?

ALERT!
I'm dumb))))))
It is only happen if you're not logged in smile)))))))))))))))))))))))))

Michael aka Emilien @ My Opera Community: http://my.opera.com/michael_aka_emilien