Share Plusses Script

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

    #16
    one more thing...i found that in this coding..user r able to share pluses to themself...this will make them get pluses easyly...huh?i need some solution...

    Comment


      #17
      if($uid !==$who)
      {
      //link to share pluses here
      }

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

      Comment


        #18
        if($uid !==$who)
        {
        //link to share pluses here
        }[/b]

        where must i put that code?

        Comment


          #19
          if($uid !==$who)
          {
          //link to share pluses here
          }[/b]
          the code would be
          if($uid !=$who)
          {
          //link to share pluses here
          }

          Comment


            #20
            one more thing...i found that in this coding..user r able to share pluses to themself...this will make them get pluses easyly...huh?i need some solution...[/b]
            i dont understand your ENGLISH,repharse it

            Comment


              #21
              i meant that i can share pluses to myself..so how to make user cant give pluses to themself?

              Comment


                #22
                i meant that i can share pluses to myself..so how to make user cant give pluses to themself?[/b]
                in index.php under the $action=="viewuser"
                Code:
                if($uid !=$who)
                {
                echo "<a href=\"index.php?action=givep&amp;who=$who&amp;sid=$sid\">Share Plusses</a>
                ";
                }

                Comment


                  #23
                  in index.php under the $action=="viewuser"
                  Code:
                  if($uid !=$who)
                  {
                  echo "<a href=\"index.php?action=givep&amp;who=$who&amp;sid=$sid\">Share Plusses</a>
                  ";
                  }
                  [/b]

                  ok..done..thanks friend..

                  Comment


                    #24
                    i have added the script
                    it works
                    but to which user i am giving plusses

                    Give GPs To
                    You have 709 GP&#39;s
                    plusses to give

                    Comment


                      #25
                      i have added the script
                      it works
                      but to which user i am giving plusses

                      Give GPs To
                      You have 709 GP&#39;s
                      plusses to give[/b]
                      how come?plusses will be added to the user whose profile you selected where you are getting the link Share plusses

                      Comment


                        #26
                        thanks 4replying
                        i have removed // sign from index page for share plusses
                        how can a user give plusses to diff users or minus diff users plus point
                        or is it possible to add minus or plus sign next to users name
                        in topic or posts
                        also i need to show plus points next to users names also in users online list

                        please help

                        <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

                        echo "<a href=\"lists.php?action=smilies&amp;sid=$sid\">Smi lies List</a>
                        ";
                        $downloads = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_uploads"));
                        echo "<a href=\"../uploaded/index.php?sid=$sid&amp;site=web\">Downloads($downl oads[0])</a>
                        ";
                        echo "<a href=\"index.php?action=funm&amp;sid=$sid\">Fun n Games</a>
                        ";
                        echo "<a href=\"index.php?action=givep&amp;who=$who&amp;sid =$sid\">Share Plusses</a>
                        ";
                        $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users"));

                        </div>

                        Comment


                          #27
                          thanks 4replying
                          i have removed // sign from index page for share plusses
                          how can a user give plusses to diff users or minus diff users plus point
                          or is it possible to add minus or plus sign next to users name
                          in topic or posts
                          also i need to show plus points next to users names also in users online list

                          please help

                          <div class='codetop'>CODE
                          <div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

                          echo "<a href=\"lists.php?action=smilies&amp;sid=$sid\">Smi lies List</a>
                          ";
                          $downloads = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_uploads"));
                          echo "<a href=\"../uploaded/index.php?sid=$sid&amp;site=web\">Downloads($downl oads[0])</a>
                          ";
                          echo "<a href=\"index.php?action=funm&amp;sid=$sid\">Fun n Games</a>
                          ";
                          echo "<a href=\"index.php?action=givep&amp;who=$who&amp;sid =$sid\">Share Plusses</a>
                          ";
                          $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users"));

                          </div>[/b][/quote]
                          1.
                          Code:
                          else if($action=="online")
                          {
                          
                            addonline(getuid_sid($sid),"Online List","index.php?action=online");
                              echo "<card id=\"main\" title=\"ONLINE\">";
                            //echo "<p align=\"center\"><img src=\"../images/onlinelist.gif\" alt=\"Online List\"/></p>";
                          
                              if($page=="" || $page<=0)$page=1;
                              $num_items = getnumonline(); //changable
                              $items_per_page= 10;
                              $num_pages = ceil($num_items/$items_per_page);
                              if($page>$num_pages)$page= $num_pages;
                              $limit_start = ($page-1)*$items_per_page;
                          
                              //changable sql
                              $sql = "SELECT
                                      a.name,a.plusses, b.place, b.userid FROM ibwf_users a
                                      INNER JOIN ibwf_online b ON a.id = b.userid
                                      GROUP BY 1,2
                                      LIMIT $limit_start, $items_per_page
                              ";
                            echo "<p align=\"center\">";
                              $items = mysql_query($sql);
                              echo mysql_error();
                              while ($item = mysql_fetch_array($items))
                              {
                                  
                          
                          $sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name=&#39;$item[0]&#39;"));
                          if($sex[0]=="M"){$usersex = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";}
                          if($sex[0]=="F"){$usersex = "<img src=\"../images/female.gif\" alt=\"(F)\"/>";}
                          if($sex[0]==""){$usersex = "";}
                          
                                $lnk = "$usersex<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$item[0]</a>";
                                echo " $lnk$ - $item[2] -> $item[1]
                          ";
                              }
                              echo "</p>";
                              echo "<p align=\"center\">";
                              if($page>1)
                              {
                                $ppage = $page-1;
                                echo "<a href=\"index.php?action=online&amp;page=$ppage&amp;sid=$sid\">«Prev</a> ";
                              }
                              if($page<$num_pages)
                              {
                                $npage = $page+1;
                                echo "<a href=\"index.php?action=online&amp;page=$npage&amp;sid=$sid\">Next»</a>";
                              }
                              echo "
                          $page/$num_pages
                          ";
                              if($num_pages>2)
                              {
                              echo getjumper($action, $sid,"index");
                              }
                              echo "</p>";
                            
                            echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                            echo "</p>";
                            echo "</card>";
                          }
                          to show plusses in online list
                          2.you can only use
                          Code:
                           echo "<a href=\"index.php?action=givep&amp;who=$who&amp;sid=$sid\">Share Plusses</a>
                          ";
                          under viewuser action in index.php
                          3.// is used to make a single line comment
                          4.rest of all you said i dont understand what you mean

                          Comment


                            #28
                            please if possible just give where to add
                            i mean
                            before code nd YOURCODE last code in index.php
                            btw its for wml not for xhtml anyways no problem
                            atleast ur helping
                            sorry if your not getting me

                            i have added the code but gettting this error

                            <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

                            XML parsing failed: syntax error (Line: 2, Character: 332)

                            Reparse document as HTML
                            Error:mismatched end-tag
                            Specification:http://www.w3.org/TR/REC-xml/
                            1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml>
                            2: <card id="main" title="ONLINE"><p align="center"> admin$ - Online List -> -383
                            </p><p align="center">
                            1/1
                            </p>[img]../images/home.gif[/img]Home</p></card></wml>

                            </div>

                            added the code as

                            <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

                            echo "Last Plusses Reason: $unol[0]
                            ";
                            }*/
                            }
                            echo "Username: $whonick
                            ";
                            echo "<a href=\"index.php?action=givep&amp;who=$who&amp;sid =$sid\">Share Plusses</a>
                            ";
                            echo "Status: ".getstatus($who)."
                            ";


                            </div>


                            and

                            <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

                            echo "Home</a>";
                            echo "</p>";
                            echo "</card>";
                            }


                            else if($action=="online")
                            {

                            addonline(getuid_sid($sid),"Online List","index.php?action=online");
                            echo "<card id=\"main\" title=\"ONLINE\">";
                            //echo "<p align=\"center\"><img src=\"../images/onlinelist.gif\" alt=\"Online List\"/></p>";

                            if($page=="" || $page<=0)$page=1;
                            $num_items = getnumonline(); //changable
                            $items_per_page= 10;
                            $num_pages = ceil($num_items/$items_per_page);
                            if($page>$num_pages)$page= $num_pages;
                            $limit_start = ($page-1)*$items_per_page;

                            //changable sql
                            $sql = "SELECT
                            a.name,a.plusses, b.place, b.userid FROM ibwf_users a
                            INNER JOIN ibwf_online b ON a.id = b.userid
                            GROUP BY 1,2
                            LIMIT $limit_start, $items_per_page
                            ";
                            echo "<p align=\"center\">";
                            $items = mysql_query($sql);
                            echo mysql_error();
                            while ($item = mysql_fetch_array($items))
                            {


                            $sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name=&#39;$item[0]&#39;"));
                            if($sex[0]=="M"){$usersex = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";}
                            if($sex[0]=="F"){$usersex = "<img src=\"../images/female.gif\" alt=\"(F)\"/>";}
                            if($sex[0]==""){$usersex = "";}

                            $lnk = "$usersex<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$item[0]</a>";
                            echo " $lnk$ - $item[2] -> $item[1]
                            ";
                            }
                            echo "</p>";
                            echo "<p align=\"center\">";
                            if($page>1)
                            {
                            $ppage = $page-1;
                            echo "<a href=\"index.php?action=online&amp;page=$ppage&amp ;sid=$sid\">«Prev</a> ";
                            }
                            if($page<$num_pages)
                            {
                            $npage = $page+1;
                            echo "<a href=\"index.php?action=online&amp;page=$npage&amp ;sid=$sid\">Next»</a>";
                            }
                            echo "
                            $page/$num_pages
                            ";
                            if($num_pages>2)
                            {
                            echo getjumper($action, $sid,"index");
                            }
                            echo "</p>";

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

                            else if($action=="viewpl")
                            {

                            </div>

                            Comment


                              #29
                              please if possible just give where to add
                              i mean
                              before code nd YOURCODE last code in index.php
                              btw its for wml not for xhtml anyways no problem
                              atleast ur helping
                              sorry if your not getting me

                              i have added the code but gettting this error

                              <div class='codetop'>CODE
                              <div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

                              XML parsing failed: syntax error (Line: 2, Character: 332)

                              Reparse document as HTML
                              Error:mismatched end-tag
                              Specification:http://www.w3.org/TR/REC-xml/
                              1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml>
                              2: <card id="main" title="ONLINE"><p align="center"> admin$ - Online List -> -383
                              </p><p align="center">
                              1/1
                              </p>[img]../images/home.gif[/img]Home</p></card></wml>

                              </div>

                              added the code as

                              <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

                              echo "Last Plusses Reason: $unol[0]
                              ";
                              }*/
                              }
                              echo "Username: $whonick
                              ";
                              echo "<a href=\"index.php?action=givep&amp;who=$who&amp;sid =$sid\">Share Plusses</a>
                              ";
                              echo "Status: ".getstatus($who)."
                              ";
                              </div>
                              and

                              <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

                              echo "Home</a>";
                              echo "</p>";
                              echo "</card>";
                              }
                              else if($action=="online")
                              {

                              addonline(getuid_sid($sid),"Online List","index.php?action=online");
                              echo "<card id=\"main\" title=\"ONLINE\">";
                              //echo "<p align=\"center\"><img src=\"../images/onlinelist.gif\" alt=\"Online List\"/></p>";

                              if($page=="" || $page<=0)$page=1;
                              $num_items = getnumonline(); //changable
                              $items_per_page= 10;
                              $num_pages = ceil($num_items/$items_per_page);
                              if($page>$num_pages)$page= $num_pages;
                              $limit_start = ($page-1)*$items_per_page;

                              //changable sql
                              $sql = "SELECT
                              a.name,a.plusses, b.place, b.userid FROM ibwf_users a
                              INNER JOIN ibwf_online b ON a.id = b.userid
                              GROUP BY 1,2
                              LIMIT $limit_start, $items_per_page
                              ";
                              echo "<p align=\"center\">";
                              $items = mysql_query($sql);
                              echo mysql_error();
                              while ($item = mysql_fetch_array($items))
                              {


                              $sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name=&#39;$item[0]&#39;"));
                              if($sex[0]=="M"){$usersex = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";}
                              if($sex[0]=="F"){$usersex = "<img src=\"../images/female.gif\" alt=\"(F)\"/>";}
                              if($sex[0]==""){$usersex = "";}

                              $lnk = "$usersex<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$item[0]</a>";
                              echo " $lnk$ - $item[2] -> $item[1]
                              ";
                              }
                              echo "</p>";
                              echo "<p align=\"center\">";
                              if($page>1)
                              {
                              $ppage = $page-1;
                              echo "<a href=\"index.php?action=online&amp;page=$ppage&amp ;sid=$sid\">«Prev</a> ";
                              }
                              if($page<$num_pages)
                              {
                              $npage = $page+1;
                              echo "<a href=\"index.php?action=online&amp;page=$npage&amp ;sid=$sid\">Next»</a>";
                              }
                              echo "
                              $page/$num_pages
                              ";
                              if($num_pages>2)
                              {
                              echo getjumper($action, $sid,"index");
                              }
                              echo "</p>";

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

                              else if($action=="viewpl")
                              {

                              </div>[/b][/quote]
                              copy and paste this in an xhtml page
                              Code:
                               
                              else if($action=="online")
                              {
                              
                                addonline(getuid_sid($sid),"Online List","index.php?action=online");
                                 echo "<head>";
                                    echo "<title>$sitename</title>";
                                    echo "</head>";
                                    echo "<body>";
                                echo "<p align=\"center\"><img src=\"../images/onlinelist.gif\" alt=\"Online List\"/></p>";
                              
                                  if($page=="" || $page<=0)$page=1;
                                  $num_items = getnumonline(); //changable
                                  $items_per_page= 10;
                                  $num_pages = ceil($num_items/$items_per_page);
                                  if($page>$num_pages)$page= $num_pages;
                                  $limit_start = ($page-1)*$items_per_page;
                              
                                  //changable sql
                                  $sql = "SELECT
                                          a.name,a.plusses, b.place, b.userid FROM ibwf_users a
                                          INNER JOIN ibwf_online b ON a.id = b.userid
                                          GROUP BY 1,2
                                          LIMIT $limit_start, $items_per_page
                                  ";
                                echo "<p align=\"center\">";
                                  $items = mysql_query($sql);
                                  echo mysql_error();
                                  while ($item = mysql_fetch_array($items))
                                  {
                                      
                              
                              $sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name=&#39;$item[0]&#39;"));
                              if($sex[0]=="M"){$usersex = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";}
                              if($sex[0]=="F"){$usersex = "<img src=\"../images/female.gif\" alt=\"(F)\"/>";}
                              if($sex[0]==""){$usersex = "";}
                              
                                    $lnk = "$usersex<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$item[0]</a>";
                                    echo " $lnk$ - $item[2] -> $item[1]
                              ";
                                  }
                                  echo "</p>";
                                  echo "<p align=\"center\">";
                                  if($page>1)
                                  {
                                    $ppage = $page-1;
                                    echo "<a href=\"index.php?action=online&amp;page=$ppage&amp;sid=$sid\">«Prev</a> ";
                                  }
                                  if($page<$num_pages)
                                  {
                                    $npage = $page+1;
                                    echo "<a href=\"index.php?action=online&amp;page=$npage&amp;sid=$sid\">Next»</a>";
                                  }
                                  echo "
                              $page/$num_pages
                              ";
                                  if($num_pages>2)
                                  {
                                  echo getjumper($action, $sid,"index");
                                  }
                                  echo "</p>";
                                
                                echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                                echo "</p>";
                                echo "</body>";
                              }

                              Comment


                                #30
                                thanks its working
                                after i click on online list

                                admin$ - Online List -> -383
                                test$ - Logging On -> 700

                                after i view users profile

                                Idle For: Online!
                                Browser:
                                Send Inbox
                                User Stats
                                Advanced Profile
                                Personal Wap Site
                                Guestbook(0)
                                Share Plusses


                                but when i click share plusses and give 20 plusses to test account
                                it says You don&#39;t have enough plusses to give

                                also only 2 digits possible

                                Comment

                                Working...
                                X