Mijae
04-08-2003, 12:33 AM
So far, my gallery is for registered members only, which works with this simple code:
<?php
require("global.php");
// unregistered error message
if ($bbuserinfo[userid]==0) {
eval("standarderror(\"".gettemplate("galleryerror")."\");");
}
?>
What I want is only registered members who have activated their account to be able to view them, and those who registered but not activated their account will get a specific error telling them to activate (like galleryerror_activate)
Also, is possible I could use another method: my gallery currently has only 130 images (but most of my site's hits go there), so I would like the first 1-25 images accessible for all registered users who have activated their account, then 26-50 for users with >X posts, then 51-75 with >XX and so on. Would this be possible or it would depend on my gallery script? If this is too much to ask for, I'd be satisfied with the first request ;)
<?php
require("global.php");
// unregistered error message
if ($bbuserinfo[userid]==0) {
eval("standarderror(\"".gettemplate("galleryerror")."\");");
}
?>
What I want is only registered members who have activated their account to be able to view them, and those who registered but not activated their account will get a specific error telling them to activate (like galleryerror_activate)
Also, is possible I could use another method: my gallery currently has only 130 images (but most of my site's hits go there), so I would like the first 1-25 images accessible for all registered users who have activated their account, then 26-50 for users with >X posts, then 51-75 with >XX and so on. Would this be possible or it would depend on my gallery script? If this is too much to ask for, I'd be satisfied with the first request ;)