Allow Guests In...

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

24 replies · 2,587 views · started 19 years ago · 1 min read

TL;DR · summary of 24 replies
  • wizard suggested creating a new directory with a modified index.php that allows guests but checks if they should register or login.
  • amylee provided an example using which is likely related to the IrisBlaze WAP community.
  • Guest proposed copying and modifying areas of the original index.php to allow guest access while removing login restrictions.
  • Phoenix90 asked how to show the number of online guests on the site.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

11 participants
SpiderWap Lead · 622 posts #1

What i wana do, i wana allow guests to view my site (using the funmobile script)

But i dont want them to be able to do anything else, and if they should try do anything the site must tell them to register first.

Anyone can help me with that please?

I red threw the source code and tried to think, but not sure where to begin lol

Guest #5

what's funmobile script? err

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)

SpiderWap Lead · 622 posts #7

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

But thanx

SpiderWap Lead · 622 posts #8

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...

OPEN DIRECTORY PROJECT

Guest #11

thnk fast lmao.

phoenix90 Developer · 113 posts #13

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..

amylee Principal · 1,092 posts #14

lol why do ppl say IRISHblaze?

alesh Lead · 604 posts #15

lol why do ppl say IRISHblaze?

i 1st thought its irishblaze too, but since palestina is waaaay from ireland i saw the diference lol

btw how excatly 2 show online guest? not loged in users, but guests....?

eeeeerrr....

chatabox Senior · 361 posts #16

duplicate the online code/sql for the guest sections with a diff table name like onlineg or whatever....

alesh Lead · 604 posts #17

Aha u mean advisitor function cn b used?

eeeeerrr....

mcKeny Developer · 130 posts #18

this easy External image (may be gone) i allow guest in the forums,chat,F.A.Q and downloads on my script on every page if ac is not set dont check log

if(isset($ac))
{
if(!is_signin($nid))
{
echo trigger_error(signin);
}
}

in order not to set ac i do this http://siteurl.com/forum?view=main

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";
}
}

on my index

add_online($nid,"main menu","index.php?tid=");

$nick = callnick_tid($tid);

echo align(left);

if(!signin($tid))
{
echo align(center);
echo "Welcome guest$s";
echo "Please sign in are sign up $s";

echo "( <a href=\"mem.php?ac=signin\">Sign in</a> |";

echo " <a href=\"mem.php?ac=signup\">Sign up</a> )$s";
echo align(left);

}
else
{
echo align(center);
$who = callnid_tid($tid);
echo "sign in as "."<a href=\"?ac=profile&tid=$tid&who=$who\"> $nick</a> $s ---$s ";
$item = mysql_fetch_array(mysql_query("SELECT value,nid FROM mc_general WHERE id='1'"));

echo "[u]Announcement:[/u]$s".htmlspecialchars($item[0])."$s By: <a href=\"index.php?ac=profile&tid=$tid&who=$item[1]\">".callnick_nid($item[1])."</a>$ss --$s";

if(signin($tid))
{
echo call_shoutbox($tid);
}

i bet you dont understand me External image (may be gone)

R.M.C

PHP Adovocate B)

chatabox Senior · 361 posts #19

Aha u mean advisitor function cn b used?

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.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close