Allow Guests In...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


      #17
      Aha u mean advisitor function cn b used?
      sigpiceeeeerrr....

      Comment


        #18
        this easy 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
        Code:
        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
        Code:
        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&amp;tid=$tid&amp;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=&#39;".$info[0]."&#39;"));
        
        $nick = callnick_nid($info[0]);
        echo "$mood[1] <a href=\"index.php?ac=profile&amp;tid=$tid&amp;who=$info[0]\">$nick</a>( $mood[0])-$info[1]".$s."<a href=\"$info[2]$tid\">Go there</a>$s-$s";
        }
        }
        on my index
        Code:
        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&amp;tid=$tid&amp;who=$who\"> $nick</a> $s ---$s ";
        $item = mysql_fetch_array(mysql_query("SELECT value,nid FROM mc_general WHERE id=&#39;1&#39;"));
        
        
        echo "[u]Announcement:[/u]$s".htmlspecialchars($item[0])."$s By: <a href=\"index.php?ac=profile&amp;tid=$tid&amp;who=$item[1]\">".callnick_nid($item[1])."</a>$ss --$s";
        
        if(signin($tid))
        {
        echo call_shoutbox($tid);
        }
        i bet you dont understand me

        R.M.C
        ----------
        PHP Adovocate B)

        Comment


          #19
          Aha u mean advisitor function cn b used?[/b]
          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.

          Comment


            #20
            do u mean this

            http://htportal.net/forums.php

            Comment


              #21
              please help i need to allow my guests to view forum
              using lavalair xhtml ver

              Comment


                #22
                @hypetype.........yes this

                for my

                Comment


                  #23
                  Jys agter die tyd, lol my guest access is al amper klaar gecode lmao

                  Click here!!!

                  Comment


                    #24
                    how I can add this at chat page???
                    if like my post click:

                    http://coding-talk.com/images/totall...ost_thanks.gif

                    Comment


                      #25
                      my next guest access wont just be forums, will alow guests to view most of the script, and it would be so much better for google bots to.

                      Click here!!!

                      Comment

                      Working...
                      X