4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Alain on June 22, 2002, 05:20:42 PM
-
I tried discussion solutions at http://www.4homepages.de/forum/viewtopic.php?t=321&highlight=auth but they don't seem to work for me. It is returning an array but with nothing in.
I would like to know how to block people from viewing pictures if they are not registered (I know that it may be possible at the setup process but I can't remember and maybe that it would kill my current config.) ?
Finally, you may have already answered to this question, but how to add a link just below the LogOut button for members? I would like to add a link only for members and if they are already logged in.
Danke gut!!
-
Hi,
try this for version 1.5 (be sure to add this code at the top of your file before any HTML output):
<?php
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
?>
Then use:
if ($user_info['user_level'] > USER_AWAITING) {
// put your link here
}
Greets Jan