Advanced Search  :  Site Statistics  :  Directory  :  Web Resources  :  Forum  
    Plugins for Geeklog Geeklog Plugins    
 Welcome to Plugins for Geeklog
 Saturday, May 17 2008 @ 07:12 AM EDT

Accessed refused? Why not?

   
Static Pages

I provided a few static sides with me.Now only certain people are to access certain sides, which functions. But if someone does not call the side an authorization has gets it only head and foot of the side to see.



To look at one can do itself that HERE.

Couldn't one solve that in such a way a system message comes, how with other closed ranges in the Geeklog?

Thanks Drake

 

What's Related

Story Options

Accessed refused? Why not? | 5 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Accessed refused? Why not?
Authored by: tomw on Monday, December 16 2002 @ 06:05 PM EST
Yes you can direct users to a different page. That is not the way static pages was made but there are at lease three different ways you could do it, depending on your php expertise.

Way 1) Only show links to pages user can see -- this can be done with my menu plugin.

Way 2) Make the static page a php page and use a little php to check permissions and display a message if the user does not have access. You could use SEC_hasAccess to do this.

Way 3) Modify index.php in the staticpages folder under public_html to check access and display a message if they do not have access.

If you want to try 2 or 3 tell me and I can offer some more specific advise.

Tom
Accessed refused? Why not?
Authored by: anonymous on Tuesday, December 17 2002 @ 11:37 AM EST

Thanks for the fast and very great help. index.php works well.However it was not whole which i searched, therefore had i, owing to the good preliminary work, the code further amended.It looks now in such a way:

} else {
    $retval = COM_siteHeader('menu');
	$retval .= COM_startBlock($LANG_LOGIN[1]);
    $login = new Template($_CONF['path_layout'] . 'submit');
    $login->set_file (array ('login'=>'submitloginrequired.thtml'));
    $login->set_var ('login_message', $LANG_LOGIN[2]);
    $login->set_var ('site_url', $_CONF['site_url']);
    $login->set_var ('lang_login', $LANG_LOGIN[3]);
    $login->set_var ('lang_newuser', $LANG_LOGIN[4]);
    $login->parse ('output', 'login');
    $retval .= $login->finish ($login->get_var('output'));
    $retval .= COM_endBlock();
    $retval .= COM_siteFooter();
}

echo $retval;

Works fine and i am lucky.Without the assistance it would not have been possible.

I look forward to new so great Plugins of you.

Drake

 Copyright © 2008 Plugins for Geeklog
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.17 seconds