anyway if you mean irisblaze wap community, it's hard with that script, the easier way is to copy and paste the the areas you want guests to access from the index.php and put them into new file and remove the login check, in the new script (ravenous wap portal) , the index page does the checking for the login, and it checks if guests are allowed to see that page or not, it's much easier to allow guest access to whatever area i want External image (may be gone)
Thanx,,, think i got an idea what todo, so what your telling me, create a new directory, with new index page, copy paste everything that i want guests to see, let out my restrictions, but as soon as they want to do anything it'll ask them to login or register,,, if i change that part in the origonal index page to be like that? I hope you know what i ment by this lol
And thanx stranger,,,, that is what i ment, why i wana do it is because,,, well,,, people are very curious, and it could help getting more people to register....?? Oh yes, and come submit your sites, i got the ngeo open project script to work on my surver stugled a bit cause its encoded,,, that open directory project script of his,,, thanx for the help guys and thanx in advance...
I've got it right to allow guests in with irishblaze's mentioned way.. But how will I be able to show HOW many guests are online?
Any hel will be appreciated..
not allow guest area
http://siteurl.com/forum?ac=main
so if the view variable is set the check log wont trigger unless the ac variable is set
.... if user didn't
sign in they will still be added to the online list there id will be 0
on my on line list i got
echo "Viewing member that has been active for the last 5 minutes $s";
echo align(left);
$mem = mysql_query("SELECT nick,place,url FROM mc_online");
while($info = mysql_fetch_array($mem))
{
if($info[0]==0 || $info[0]=="")
{
echo " <a href=\"index.php?ac=profile&tid=$tid&who=$info[0]\">Guest</a>-$info[1]"."-$s <a href=\"$info[2]$tid\">Go there</a>$s-$s";
}
else
{
$mood = mysql_fetch_array(mysql_query("SELECT mood,gender FROM mc_users WHERE id='".$info[0]."'"));
$nick = callnick_nid($info[0]);
echo "$mood[1] <a href=\"index.php?ac=profile&tid=$tid&who=$info[0]\">$nick</a>( $mood[0])-$info[1]".$s."<a href=\"$info[2]$tid\">Go there</a>$s-$s";
}
}
yes but copy it and rename edit it so function is like addguest and the table points to a new guest_online table in sql... quite simple if you think about it, all the code you need is already in the script.
PS: mckeny, i understand what you mean. There are a few methods to do it. I like how the forum permissions work in the original unrealx script, you can allow guests, registered only, or special members.