Automatic Pm For Club Members

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

    Automatic Pm For Club Members

    How can i add a option for club owners to send automatic pm for his club members.
    if anyone know these codes plz put here(for lavalair script)

    =======

    #2
    How can i add a option for club owners to send automatic pm for his club members.
    if anyone know these codes plz put here(for lavalair script)

    =======[/b]
    buddy did u mean pm2 all club members?

    Comment


      #3
      buddy did u mean pm2 all club members?[/b]
      yeh bro

      Comment


        #4
        here bro


        @index.php



        <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>else if($action=="gocl")
        {
        $clid = $_GET["clid"];
        $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id=&#39;".$clid."&#39;"));
        addonline(getuid_sid($sid),"Viewing A Club","");
        $clnm = htmlspecialchars($clinfo[0]);
        echo "<card id=\"main\" title=\"$clnm\">";

        echo "<p align=\"center\">";
        echo "$clnm
        ";
        if(trim($clinfo[4])=="")
        {
        echo "<img src=\"images/logo.jpg\" alt=\"logo\"/>";
        }else{
        echo "<img src=\"$clinfo[4]\" alt=\"logo\"/>";
        }
        echo "</p>";
        echo "

        ";
        echo "Club ID: $clid
        ";
        $uid = getuid_sid($sid);
        $cango = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND uid=&#39;".$uid."&#39; AND accepted=&#39;1&#39;"));
        echo "Owner: <a href=\"index.php?action=viewuser&amp;who=$clinfo[1]&amp;sid=$sid\">".getnick_uid($clinfo[1])."</a>
        ";
        $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND accepted=&#39;1&#39;"));
        echo "Members: <a href=\"lists.php?action=clmem&amp;sid=$sid&amp;cli d=$clid\">$mems[0]</a>
        ";
        echo "Created On: ".date("d/m/y", $clinfo[6])."
        ";
        echo "Plusses credit: $clinfo[5]
        ";
        $fid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_forums WHERE clubid=&#39;".$clid."&#39;"));
        $rid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_rooms WHERE clubid=&#39;".$clid."&#39;"));
        $tps = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid=&#39;".$fid[0]."&#39;"));
        $pss = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts a INNER JOIN ibwf_topics b ON a.tid = b.id WHERE b.fid=&#39;".$fid[0]."&#39;"));
        if(getuid_sid($sid)==$clinfo[1])
        {
        echo "<a href=\"index.php?action=pmallmem&amp;sid=$sid&amp; clid=$clid\">PM to All Club Members</a>
        ";
        }
        if(($cango[0]>0)||isowner($uid))
        {
        if($clid==161) {
        echo "<a href=\"http://space.sihalawap.com/modcp.php?action=clubup;sid=$sid&amp;clid=$clid\"> Uploader</a>
        ";
        }
        if($clid==24 {
        echo "<a href=\"http://space.sihalawap.com/modcp.php?action=clubup2;sid=$sid&amp;clid=$clid\" >Uploader</a>
        ";
        }
        $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_announcements WHERE clid=&#39;".$clid."&#39;"));
        echo "
        <a href=\"lists.php?action=annc&amp;sid=$sid&amp;clid =$clid\"><img src=\"images/annc.gif\" alt=\"!\"/>Announcements($noa[0])</a>
        ";
        $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE rid=&#39;".$rid[0]."&#39;"));
        echo "<a href=\"chat.php?sid=$sid&amp;rid=$rid[0]\"><img src=\"images/chat.gif\" alt=\"*\"/>$clnm Chat($noa[0])</a>
        ";
        echo "<a href=\"index.php?action=viewfrm&amp;sid=$sid&amp;f id=$fid[0]\"><img src=\"images/1.gif\" alt=\"*\"/>$clnm Forum($tps[0]/$pss[0])</a>

        ";
        $ismem = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND uid=&#39;".getuid_sid($sid)."&#39;"));

        if($ismem[0]>0)
        {
        //unjoin
        if($clinfo[1]!=$uid)
        {
        echo "<a href=\"genproc.php?action=unjc&amp;sid=$sid&amp;cl id=$clid\">Unjoin Club</a>";
        }
        }else{
        echo "<a href=\"genproc.php?action=reqjc&amp;sid=$sid&amp;c lid=$clid\">Join Now!</a>";
        }
        if(isowner(getuid_sid($sid)))
        {
        echo "
        <a href=\"admincp.php?action=club&amp;sid=$sid&amp;cl id=$clid\">Admin Tools</a>";
        }
        if($clinfo[1]==$uid)
        {
        //club owner
        $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND accepted=&#39;0&#39;"));
        echo "
        <a href=\"lists.php?action=clreq&amp;sid=$sid&amp;cli d=$clid\">»Requests($mems[0])</a>
        ";
        }
        }else{
        echo "Topics: $tps[0], Posts: $pss[0]
        ";
        echo "Description:
        ";
        echo htmlspecialchars($clinfo[2]);
        echo "

        ";
        echo "Rules:
        ";
        echo htmlspecialchars($clinfo[3]);
        echo "

        ";
        echo "Seems Good? <a href=\"genproc.php?action=reqjc&amp;sid=$sid&amp;c lid=$clid\">Join Now!</a>";
        }
        echo "
        </p>";
        echo "<p align=\"center\">";
        echo "<a href=\"index.php?action=clubs&amp;sid=$sid\">";
        echo "Clubs list</a>
        ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p>";
        echo "</card>";
        }
        else if($action=="pmallmem")
        {
        $clid=$_GET["clid"];
        $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id=&#39;".$clid."&#39;"));
        addonline(getuid_sid($sid),"PMing Club Members","index.php?action=$action");
        echo "<card id=\"main\" title=\"sihalawap.com\">";
        echo "<p align=\"center\">";
        echo "PM All Members Of The $clinfo[0] Club

        ";
        echo "Please enter the message You Wish To Send To ALL Members Below
        ";
        echo "<input name=\"pmtext\" maxlength=\"500\"/>
        ";
        echo "<anchor>SEND<go href=\"index.php?action=sendclpm&amp;sid=$sid\" method=\"post\">";
        echo "<postfield name=\"clid\" value=\"$clid\"/>";
        echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>";
        echo "</go></anchor>
        </p>";
        echo "<p align=\"center\">";
        echo "<a href=\"index.php?action=clubs&amp;sid=$sid\">";
        echo "Clubs list</a>
        ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p>";
        echo "</card>";
        }
        else if($action=="sendclpm")
        {
        $clid=$_POST["clid"];
        $pmtext=$_POST["pmtext"];
        $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id=&#39;".$clid."&#39;"));
        $owner = $clinfo[1];
        addonline(getuid_sid($sid),"PMing Club Members","index.php?action=$action");
        echo "<card id=\"main\" title=\"sihalawap.com\">";
        echo "<p align=\"center\">";
        echo "PM All Members Of The $clinfo[0] Club

        ";
        $mems = mysql_query("SELECT uid FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND accepted=&#39;1&#39;");
        while($row=mysql_fetch_array($mems))
        {
        $tm = time();
        $res = mysql_query("INSERT INTO ibwf_private SET text=&#39;".$pmtext."&#39;, byuid=&#39;".$owner."&#39;, touid=&#39;".$row[0]."&#39;, timesent=&#39;".$tm."&#39;");
        }
        if($res)
        {

        echo "<img src=\"images/ok.gif\" alt=\"O\"/>";
        echo "PMs sent successfully

        ";
        echo parsepm($pmtext, $sid);
        }else{
        echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
        echo "Can&#39;t Send PM

        ";
        }
        echo "</p>";
        echo "<p align=\"center\">";
        echo "<a href=\"index.php?action=clubs&amp;sid=$sid\">";
        echo "Clubs list</a>
        ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p>";
        echo "</card>";
        }</div>

        Comment


          #5
          here bro
          @index.php
          <div class='codetop'>CODE
          <div class='codemain' style='height:200px;white-space:pre;overflow:auto'>else if($action=="gocl")
          {
          $clid = $_GET["clid"];
          $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id=&#39;".$clid."&#39;"));
          addonline(getuid_sid($sid),"Viewing A Club","");
          $clnm = htmlspecialchars($clinfo[0]);
          echo "<card id=\"main\" title=\"$clnm\">";

          echo "<p align=\"center\">";
          echo "$clnm
          ";
          if(trim($clinfo[4])=="")
          {
          echo "<img src=\"images/logo.jpg\" alt=\"logo\"/>";
          }else{
          echo "<img src=\"$clinfo[4]\" alt=\"logo\"/>";
          }
          echo "</p>";
          echo "

          ";
          echo "Club ID: $clid
          ";
          $uid = getuid_sid($sid);
          $cango = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND uid=&#39;".$uid."&#39; AND accepted=&#39;1&#39;"));
          echo "Owner: <a href=\"index.php?action=viewuser&who=$clinfo[1]&sid=$sid\">".getnick_uid($clinfo[1])."</a>
          ";
          $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND accepted=&#39;1&#39;"));
          echo "Members: <a href=\"lists.php?action=clmem&sid=$sid&clid=$clid\ ">$mems[0]</a>
          ";
          echo "Created On: ".date("d/m/y", $clinfo[6])."
          ";
          echo "Plusses credit: $clinfo[5]
          ";
          $fid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_forums WHERE clubid=&#39;".$clid."&#39;"));
          $rid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_rooms WHERE clubid=&#39;".$clid."&#39;"));
          $tps = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid=&#39;".$fid[0]."&#39;"));
          $pss = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts a INNER JOIN ibwf_topics b ON a.tid = b.id WHERE b.fid=&#39;".$fid[0]."&#39;"));
          if(getuid_sid($sid)==$clinfo[1])
          {
          echo "<a href=\"index.php?action=pmallmem&sid=$sid&clid=$cl id\">PM to All Club Members</a>
          ";
          }
          if(($cango[0]>0)||isowner($uid))
          {
          if($clid==161) {
          echo "<a href=\"http://space.sihalawap.com/modcp.php?action=clubup;sid=$sid&clid=$clid\">Uplo ader</a>
          ";
          }
          if($clid==24 {
          echo "<a href=\"http://space.sihalawap.com/modcp.php?action=clubup2;sid=$sid&clid=$clid\">Upl oader</a>
          ";
          }
          $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_announcements WHERE clid=&#39;".$clid."&#39;"));
          echo "
          <a href=\"lists.php?action=annc&sid=$sid&clid=$clid\" ><img src=\"images/annc.gif\" alt=\"!\"/>Announcements($noa[0])</a>
          ";
          $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE rid=&#39;".$rid[0]."&#39;"));
          echo "<a href=\"chat.php?sid=$sid&rid=$rid[0]\"><img src=\"images/chat.gif\" alt=\"*\"/>$clnm Chat($noa[0])</a>
          ";
          echo "<a href=\"index.php?action=viewfrm&sid=$sid&fid=$fid[0]\"><img src=\"images/1.gif\" alt=\"*\"/>$clnm Forum($tps[0]/$pss[0])</a>

          ";
          $ismem = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND uid=&#39;".getuid_sid($sid)."&#39;"));

          if($ismem[0]>0)
          {
          //unjoin
          if($clinfo[1]!=$uid)
          {
          echo "<a href=\"genproc.php?action=unjc&sid=$sid&clid=$clid \">Unjoin Club</a>";
          }
          }else{
          echo "<a href=\"genproc.php?action=reqjc&sid=$sid&clid=$cli d\">Join Now!</a>";
          }
          if(isowner(getuid_sid($sid)))
          {
          echo "
          <a href=\"admincp.php?action=club&sid=$sid&clid=$clid \">Admin Tools</a>";
          }
          if($clinfo[1]==$uid)
          {
          //club owner
          $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND accepted=&#39;0&#39;"));
          echo "
          <a href=\"lists.php?action=clreq&sid=$sid&clid=$clid\ ">»Requests($mems[0])</a>
          ";
          }
          }else{
          echo "Topics: $tps[0], Posts: $pss[0]
          ";
          echo "Description:
          ";
          echo htmlspecialchars($clinfo[2]);
          echo "

          ";
          echo "Rules:
          ";
          echo htmlspecialchars($clinfo[3]);
          echo "

          ";
          echo "Seems Good? <a href=\"genproc.php?action=reqjc&sid=$sid&clid=$cli d\">Join Now!</a>";
          }
          echo "
          </p>";
          echo "<p align=\"center\">";
          echo "<a href=\"index.php?action=clubs&sid=$sid\">";
          echo "Clubs list</a>
          ";
          echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
          echo "Home</a>";
          echo "</p>";
          echo "</card>";
          }
          else if($action=="pmallmem")
          {
          $clid=$_GET["clid"];
          $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id=&#39;".$clid."&#39;"));
          addonline(getuid_sid($sid),"PMing Club Members","index.php?action=$action");
          echo "<card id=\"main\" title=\"sihalawap.com\">";
          echo "<p align=\"center\">";
          echo "PM All Members Of The $clinfo[0] Club

          ";
          echo "Please enter the message You Wish To Send To ALL Members Below
          ";
          echo "<input name=\"pmtext\" maxlength=\"500\"/>
          ";
          echo "<anchor>SEND<go href=\"index.php?action=sendclpm&sid=$sid\" method=\"post\">";
          echo "<postfield name=\"clid\" value=\"$clid\"/>";
          echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>";
          echo "</go></anchor>
          </p>";
          echo "<p align=\"center\">";
          echo "<a href=\"index.php?action=clubs&sid=$sid\">";
          echo "Clubs list</a>
          ";
          echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
          echo "Home</a>";
          echo "</p>";
          echo "</card>";
          }
          else if($action=="sendclpm")
          {
          $clid=$_POST["clid"];
          $pmtext=$_POST["pmtext"];
          $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id=&#39;".$clid."&#39;"));
          $owner = $clinfo[1];
          addonline(getuid_sid($sid),"PMing Club Members","index.php?action=$action");
          echo "<card id=\"main\" title=\"sihalawap.com\">";
          echo "<p align=\"center\">";
          echo "PM All Members Of The $clinfo[0] Club

          ";
          $mems = mysql_query("SELECT uid FROM ibwf_clubmembers WHERE clid=&#39;".$clid."&#39; AND accepted=&#39;1&#39;");
          while($row=mysql_fetch_array($mems))
          {
          $tm = time();
          $res = mysql_query("INSERT INTO ibwf_private SET text=&#39;".$pmtext."&#39;, byuid=&#39;".$owner."&#39;, touid=&#39;".$row[0]."&#39;, timesent=&#39;".$tm."&#39;");
          }
          if($res)
          {

          echo "<img src=\"images/ok.gif\" alt=\"O\"/>";
          echo "PMs sent successfully

          ";
          echo parsepm($pmtext, $sid);
          }else{
          echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
          echo "Can&#39;t Send PM

          ";
          }
          echo "</p>";
          echo "<p align=\"center\">";
          echo "<a href=\"index.php?action=clubs&sid=$sid\">";
          echo "Clubs list</a>
          ";
          echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
          echo "Home</a>";
          echo "</p>";
          echo "</card>";
          }</div>[/b][/quote]
          Something wrong bro..owner can sent pm..pm was succesfully sent..but members didint receive da pm..

          Comment


            #6
            Something wrong bro..owner can sent pm..pm was succesfully sent..but members didint receive da pm..[/b]

            u again... LOL i tried and it works fine..... be careful how u use copy&paste lol
            sigpiceeeeerrr....

            Comment


              #7
              could anybody can give me in XHTML format...
              THANX in ADVANCE

              Comment


                #8
                i try convert it with xhtml and share this.. thanks for this topic.. nice idea..
                our lfe is simple words....
                http://mygenkz.net
                ewanz06@yahoo.com
                PHP Code:
                $output="i am NOoob....";
                $newfile="ewanz.txt";
                $file fopen ($newfile"w");
                fwrite($file$output);
                fclose ($file); 

                Comment

                Working...
                X