Results 1 to 5 of 5

Thread: help black list in guestbook

  1. #1
    Member LadyEnigma's Avatar
    Join Date
    Apr 2009
    Posts
    71
    Thanks
    31
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default help black list in guestbook

    hi at all, in my lavalai if a user puts blacklist another user can continue to write in the guestbook, I would make sure that a user can not more black writing in the guestbook of the person who added to the blacklist, can anyone help me? Thanks in advance

  2. #2
    Senior Member i0nutzxp's Avatar
    Join Date
    Apr 2009
    Location
    Romania , Galati
    Posts
    153
    Thanks
    7
    Thanked 48 Times in 31 Posts
    Rep Power
    5

    Default

    PHP Code:
    if (isignored($uid$who)) // isignored(int posterid, int gbownerid);
    {
       echo 
    'Your are blacklisted<br />';
    }
    else
    {
     
    // post in gb code

    <?php unlink('World/Europe/Romania.country'); ?>

  3. The Following User Says Thank You to i0nutzxp For This Useful Post:

    LadyEnigma (01-08-11)

  4. #3
    Member LadyEnigma's Avatar
    Join Date
    Apr 2009
    Posts
    71
    Thanks
    31
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    Quote Originally Posted by i0nutzxp [Only registered and activated users can see links. Click Here To Register...]
    PHP Code:
    if (isignored($uid$who)) // isignored(int posterid, int gbownerid);
    {
       echo 
    'Your are blacklisted<br />';
    }
    else
    {
     
    // post in gb code

    in index? where? in this part of code?
    PHP Code:
    //////////////////////////////////////////signblogcomment

    else if($action=="signblogcomment")
    {
    $who=$_GET["who"];
    addonline(getuid_sid($sid),"commenta un blog","");
    if(!
    cansigngb(getuid_sid($sid), $who))
        {
        echo 
    "<head>";
        echo 
    "<title>Firmablog</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
          echo 
    "<p align=\"center\">";
          echo 
    "Puoi firmare questo blog<br/><br/>";
          echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
        }
        

        echo 
    "<head>";
        echo 
    "<title>Firma blog</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<form action=\"genproc.php?action=signblogcomment&amp;sid=$sid\" method=\"post\">";
        echo 
    "<input type=\"hidden\" name=\"who\" Value=\"$who\">";
        echo 
    "Testo:<input name=\"msgtxt\" maxlength=\"500\"/><br/>";
        echo 
    "<input type=\"Submit\" name=\"Add\" Value=\"Add\"></form>";
        echo 
    "<a href=\"lists.php?action=allbl&amp;sid=$sid\">Indietro a Blogs</a><br/>";
      echo 
    "<br/><br/><b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
        echo 
    "</p>";
        echo 
    "</body>";


  5. #4
    Senior Member i0nutzxp's Avatar
    Join Date
    Apr 2009
    Location
    Romania , Galati
    Posts
    153
    Thanks
    7
    Thanked 48 Times in 31 Posts
    Rep Power
    5

    Default

    after if(!cansigngb(getuid_sid($sid), $who))

    if(isignored($uid, $who))
    {
    echo "<head>";
    echo "<title>Firmablog</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "Ignored<br/><br/>";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }

    and in genproc....and try to use your brain ....
    <?php unlink('World/Europe/Romania.country'); ?>

  6. #5
    Member LadyEnigma's Avatar
    Join Date
    Apr 2009
    Posts
    71
    Thanks
    31
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    if I had not had any problems I would not have asked for help ... this code works and I also put after the function stops working bank, do not understand what mistake: (

    Added after 31 minutes:

    i have resolved! thanx
    Last edited by LadyEnigma; 01-08-11 at 10:31.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Help] Windows 7 Black Screen of Death
    By kiLLeR-eyEd_14 in forum General Discussion
    Replies: 1
    Last Post: 04-05-11, 12:00
  2. Guestbook Service -> Get Your Guestbook
    By Malka1 in forum Sites / Links
    Replies: 8
    Last Post: 08-07-10, 22:41
  3. To Black List Users On Your Site
    By subzero in forum Coding Forum
    Replies: 8
    Last Post: 07-03-09, 19:53
  4. Black List 4 Wapdesire
    By sweetangel in forum Coding Forum
    Replies: 3
    Last Post: 14-05-08, 23:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19