Photo Gallery

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

    #31
    your professional coder
    you know better than me

    anyways if it doesnt work just replace max.php
    but for me this works

    Comment


      #32
      your professional coder
      you know better than me

      anyways if it doesnt work just replace max.php
      but for me this works[/b]
      and the last version not work
      if like my post click:

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

      Comment


        #33
        try replacing max file
        if it doesnt work
        than theirs problem with your server
        coz myself was also facing the same problem earlier

        if still not working
        post your error
        so that other coders can help you

        Comment


          #34
          my error...not view photo...only nopic images open 4 all
          if like my post click:

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

          Comment


            #35
            problem my server???how I can fix this problem?? help
            if like my post click:

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

            Comment


              #36
              when i click on add photo i got this error
              Code:
              I don't know how did you get into here, but there's nothing to show
              
              0 Home
              else if($action=="useav") { $gid = $_GET["gid"]; addonline(getuid_sid($sid),"Updating Avatar",""); echo ""; echo ""; echo ""; echo ""; echo ""; echo "
              
              "; $getimg = mysql_fetch_array(mysql_query("SELECT itemurl FROM ibwf_gallery WHERE id='".$gid."'")); $avatar = $getimg[0]; $uid = getuid_sid($sid); $res = mysql_query("Update ibwf_users SET avatar='".$avatar."' WHERE id='".$uid."'"); if($res) { echo "Avatar was successfully updated
              "; }else{ echo "Database Error!
              "; } echo "
              "; echo ""; echo "Home"; echo "
              "; echo ""; } else if($action=="delgal") { $gid = $_GET["gid"]; addonline(getuid_sid($sid),"Deleting Gallery Photo",""); echo ""; echo ""; echo ""; echo ""; echo ""; echo "
              
              "; $itemowner = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_gallery WHERE id='".$gid."'")); if(ismod(getuid_sid($sid))||getuid_sid($sid)==$itemowner[0]) { $res = mysql_query("DELETE FROM ibwf_gallery WHERE id='".$gid."'"); $res2 = mysql_query("DELETE FROM ibwf_galcomments WHERE pid='".$gid."'"); $res3 = mysql_query("DELETE FROM ibwf_prate WHERE pid='".$gid."'"); if($res||res2||res3) { echo "Photo Deleted From Gallery
              "; }else{ echo "Database Error!
              "; } }else{ echo "You can't delete this Photo"; } echo "
              
              "; echo ""; echo "Home"; echo "
              "; echo ""; } else if($action=="addgal") { $itemurl = $_POST["itemurl"]; $uid = getuid_sid($sid); $nopl = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$uid."'")); if($nopl[0]=='M') { $usex = "M"; }else if($nopl[0]=='F'){ $usex = "F"; }else{ $usex = "M"; } echo ""; echo ""; echo ""; echo ""; echo ""; echo "
              
              "; $res = mysql_query("INSERT INTO ibwf_gallery SET uid='".$uid."', itemurl='".$itemurl."', sex='".$usex."'"); if($res) { echo "User Photo Added
              "; }else{ echo "Database Error
              "; } echo "User Gallery
              "; echo ""; echo "Home"; echo "
              "; echo ""; }else if($action=="commentadd") { $text = $_POST["text"]; $prate = $_POST["prate"]; $gid = $_GET["gid"]; addonline(getuid_sid($sid),"Adding Photo Comment",""); echo ""; echo ""; echo ""; echo ""; echo ""; echo "
              
              "; $crdate = time(); $uid = getuid_sid($sid); $res = false; if(trim($text)!="") { $res = mysql_query("INSERT INTO ibwf_galcomments SET text='".$text."', byuser='".$uid."', time='".$crdate."', pid='".$gid."'"); } if($res) { echo "Comment Added Successfully
              "; }else{ echo "Error Adding Comment"; } if($prate!="") { $res2 = mysql_query("INSERT INTO ibwf_prate SET uid='".$uid."', pid='".$gid."', prate='".$prate."'"); if($res2) { echo "Photo rated successfully
              "; }else{ echo "Database Error!
              "; } } echo "
              
              "; echo ""; echo "Home"; echo "
              "; echo ""; }
              sigpic

              Comment


                #37
                this version is 4 wapdesire...I think u use wizard version...
                if like my post click:

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

                Comment


                  #38
                  i try to add upload option

                  its uploading picture in correct place but it dont show photo?

                  echo "<form method=\"post\" enctype=\"multipart/form-data\" action=\"genproc.php?action=addgal&amp;sid=$sid\"> ";
                  echo "<input type=\"file\" name=\"itemurl\">
                  ";
                  echo "<input type=\"Submit\" name=\"uploadform\" value=\"Upload\">";
                  echo "</form>";

                  why????????????????????
                  guide me plssss
                  sigpic

                  Comment


                    #39
                    i have also problem with my upload...
                    on my site i can upload by computer and everything doing fine
                    but on mobile don`t have upload...
                    something like hidden...
                    i have just back to gallery but don`t have upload

                    Comment


                      #40
                      at free host not work ;)
                      if like my post click:

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

                      Comment


                        #41
                        No Sweetangel ;)
                        I have my own host wich i pay....not freehost

                        Comment


                          #42
                          ask to setting safe mode off
                          if like my post click:

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

                          Comment


                            #43
                            this is my code:
                            Code:
                             echo " <form name=\"form2\" enctype=\"multipart/form-data\" method=\"post\" action=\"upload.php?action=upload&amp;sid=$sid\" />";
                                        echo "<input type=\"file\" size=\"32\" name=\"my_field\" value=\"\" />";
                                        echo "<input type=\"hidden\" name=\"action\" value=\"image\" />
                            ";
                                        echo "<input type=\"submit\" name=\"Submit\" value=\"upload\" />";
                                        echo "</form>";

                            With computer everything working fine and corectly
                            but users with mobile cant view upload(like hidden)
                            just back to the gallery and home ;)

                            Comment


                              #44
                              whit this code only SE mobile phones can upload photos:

                              Code:
                              <?php
                              /*
                              IrisBlaze wap forum
                              by Ra&#39;ed Shabana
                              */
                              //>> »
                              //<< «
                              include("config.php");
                              include("core.php");
                              include("xhtmlfunctions.php");
                              ?>
                              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                              <html>
                              <head>
                              <meta http-equiv="Content-Type" content="text/html"/>
                              <meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
                              <title>Modus foto upload</title></head>
                              <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080">
                              <?php
                              
                              $action = $_GET["action"];
                              $sid = $_GET["sid"];
                              $whoimage = $_GET["whoimage"];
                              $bcon = connectdb();
                                  if(islogged($sid)==false)
                                  {
                                    $pstyle = gettheme($sid);
                                    echo xhtmlhead("ModuS",$pstyle);
                                    echo "<p align=\"center\">";
                                    echo "Niste Ulogovani
                              ";
                                    echo "ili vam je isteklo login vreme!
                              
                              ";
                                    echo "<a href=\"index.php\">Udji Ponovo;)</a>";
                                    echo "</p>";
                                    exit();
                                  }
                              $uid = getuid_sid($sid);
                              if(isbanned($uid))
                                  {
                                    $pstyle = gettheme($sid);
                                    echo xhtmlhead("ModuS",$pstyle);
                                    echo "<p align=\"center\">";
                                    echo "<img src=\"images/notok.gif\" alt=\"x\"/>
                              ";
                                    echo "Vi ste [b]Banovani ! ! ![/b]
                              ";
                                    $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_metpenaltiespl WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
                                    $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                              
                                    $remain = $banto[0]- (time() - $timeadjust);
                                    $rmsg = gettimemsg($remain);
                                    echo "Vreme Do isteka Ban Kazne je : $rmsg
                              
                              ";
                                    echo "Razlog Bana je : $banres[0]";
                                    //echo "<a href=\"index.php\">Login</a>";
                                    echo "</p>";
                                    exit();
                                  }
                              
                              
                              if($action=="upload")
                              {
                                 addonline(getuid_sid($sid),"Upload-uje Sliku","");
                                 $rate = $_POST["rate"];
                                 $comment = $_POST["comment"];
                                set_time_limit(0);
                                 echo "
                              
                              [size="1"]";
                              
                                         echo "<form method=\"post\" enctype=\"multipart/form-data\" action=\"upload.php?action=upload&amp;sid=$sid\" />";
                               ?>
                              [b]Izaberite sliku:[/b]
                              
                              <input align="center" type="file" name="superdat">
                              <input align="center" type="hidden" name="action" value="image"/>
                              <INPUT align="center" TYPE=SUBMIT NAME="submit" VALUE="Upload">
                              
                              [/size]
                              </FORM>
                              <?php
                              
                                  echo "</small></p>";
                                ////// UNTILL HERE >>
                                  echo "<p align=\"center\">";
                                 echo "
                              
                              <a href=\"gallery.php?action=main&amp;sid=$sid\">«Nazad u Galeriju</a>
                              ";
                                  echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                              echo "ModuS</a>";
                                echo "</p>";
                              }else
                              
                              {
                                addonline(getuid_sid($sid),"Izgubljen u Galeriji !","");
                                $pstyle = gettheme($sid);
                                echo xhtmlhead("Gallery",$pstyle);
                                echo "<p align=\"center\">";
                                echo "Ovde nema nichega,proverite adresu koju ste uneli;)
                              
                              ";
                                echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                                echo "ModuS</a>";
                                echo "</p>";
                              }
                              
                              ?>
                              </body>
                              </html>
                              with this anyone mobile phones can`t upload photos:

                              Code:
                              <?php
                              /*
                              IrisBlaze wap forum
                              by Ra&#39;ed Shabana
                              */
                              //>> »
                              //<< «
                              include("config.php");
                              include("core.php");
                              include("xhtmlfunctions.php");
                              header("Content-type: text/html; charset=ISO-8859-1");
                              echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
                              echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
                              ?>
                              
                              <?php
                              
                              if($action=="upload")
                              {
                                 addonline(getuid_sid($sid),"Uploading a Photo","");
                                 $rate = $_POST["rate"];
                                 $comment = $_POST["comment"];
                                 $pstyle = gettheme($sid);
                                echo xhtmlhead("Uploading",$pstyle);
                                set_time_limit(0);
                                 echo "
                              
                              [size="1"]";
                                 
                               
                                          echo "
                              Izaberi sliku:
                              ";
                                          echo " <form name=\"form2\" enctype=\"multipart/form-data\" method=\"post\" action=\"upload.php?action=upload&amp;sid=$sid\" />";
                                          echo "<input type=\"file\" size=\"32\" name=\"my_field\" value=\"\" />";
                                          echo "<input type=\"hidden\" name=\"action\" value=\"image\" />
                              ";
                                          echo "<input type=\"submit\" name=\"Submit\" value=\"upload\" />";
                                          echo "</form>";
                                 
                                  echo "[/size]</p>"; 
                                ////// UNTILL HERE >> 
                                  echo "<p align=\"center\">";
                                 echo "
                              
                              <a href=\"usergallery.php?action=main&amp;sid=$sid\">«Back to Gallery</a>
                              ";
                                  echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                              echo "Home</a>";
                                echo "</p>";
                                echo xhtmlfoot();
                              }
                              
                              ?>
                              Where is the problem?how to set that all type of mobile phones can upload photos?

                              Comment


                                #45
                                whit this code only SE mobile phones can upload photos:

                                Code:
                                <?php
                                /*
                                IrisBlaze wap forum
                                by Ra&#39;ed Shabana
                                */
                                //>> »
                                //<< «
                                include("config.php");
                                include("core.php");
                                include("xhtmlfunctions.php");
                                ?>
                                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                                <html>
                                <head>
                                <meta http-equiv="Content-Type" content="text/html"/>
                                <meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
                                <title>Modus foto upload</title></head>
                                <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080">
                                <?php
                                
                                $action = $_GET["action"];
                                $sid = $_GET["sid"];
                                $whoimage = $_GET["whoimage"];
                                $bcon = connectdb();
                                    if(islogged($sid)==false)
                                    {
                                      $pstyle = gettheme($sid);
                                      echo xhtmlhead("ModuS",$pstyle);
                                      echo "<p align=\"center\">";
                                      echo "Niste Ulogovani
                                ";
                                      echo "ili vam je isteklo login vreme!
                                
                                ";
                                      echo "<a href=\"index.php\">Udji Ponovo;)</a>";
                                      echo "</p>";
                                      exit();
                                    }
                                $uid = getuid_sid($sid);
                                if(isbanned($uid))
                                    {
                                      $pstyle = gettheme($sid);
                                      echo xhtmlhead("ModuS",$pstyle);
                                      echo "<p align=\"center\">";
                                      echo "<img src=\"images/notok.gif\" alt=\"x\"/>
                                ";
                                      echo "Vi ste [b]Banovani ! ! ![/b]
                                ";
                                      $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_metpenaltiespl WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
                                      $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                                
                                      $remain = $banto[0]- (time() - $timeadjust);
                                      $rmsg = gettimemsg($remain);
                                      echo "Vreme Do isteka Ban Kazne je : $rmsg
                                
                                ";
                                      echo "Razlog Bana je : $banres[0]";
                                      //echo "<a href=\"index.php\">Login</a>";
                                      echo "</p>";
                                      exit();
                                    }
                                if($action=="upload")
                                {
                                   addonline(getuid_sid($sid),"Upload-uje Sliku","");
                                   $rate = $_POST["rate"];
                                   $comment = $_POST["comment"];
                                  set_time_limit(0);
                                   echo "
                                
                                [size="1"]";
                                
                                           echo "<form method=\"post\" enctype=\"multipart/form-data\" action=\"upload.php?action=upload&amp;sid=$sid\" />";
                                 ?>
                                [b]Izaberite sliku:[/b]
                                
                                <input align="center" type="file" name="superdat">
                                <input align="center" type="hidden" name="action" value="image"/>
                                <INPUT align="center" TYPE=SUBMIT NAME="submit" VALUE="Upload">
                                
                                [/size]
                                </FORM>
                                <?php
                                
                                    echo "</small></p>";
                                  ////// UNTILL HERE >>
                                    echo "<p align=\"center\">";
                                   echo "
                                
                                <a href=\"gallery.php?action=main&amp;sid=$sid\">«Nazad u Galeriju</a>
                                ";
                                    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                                echo "ModuS</a>";
                                  echo "</p>";
                                }else
                                
                                {
                                  addonline(getuid_sid($sid),"Izgubljen u Galeriji !","");
                                  $pstyle = gettheme($sid);
                                  echo xhtmlhead("Gallery",$pstyle);
                                  echo "<p align=\"center\">";
                                  echo "Ovde nema nichega,proverite adresu koju ste uneli;)
                                
                                ";
                                  echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                                  echo "ModuS</a>";
                                  echo "</p>";
                                }
                                
                                ?>
                                </body>
                                </html>
                                with this anyone mobile phones can`t upload photos:

                                Code:
                                <?php
                                /*
                                IrisBlaze wap forum
                                by Ra&#39;ed Shabana
                                */
                                //>> »
                                //<< «
                                include("config.php");
                                include("core.php");
                                include("xhtmlfunctions.php");
                                header("Content-type: text/html; charset=ISO-8859-1");
                                echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
                                echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
                                ?>
                                
                                <?php
                                
                                if($action=="upload")
                                {
                                   addonline(getuid_sid($sid),"Uploading a Photo","");
                                   $rate = $_POST["rate"];
                                   $comment = $_POST["comment"];
                                   $pstyle = gettheme($sid);
                                  echo xhtmlhead("Uploading",$pstyle);
                                  set_time_limit(0);
                                   echo "
                                
                                [size="1"]";
                                   
                                 
                                            echo "
                                Izaberi sliku:
                                ";
                                            echo " <form name=\"form2\" enctype=\"multipart/form-data\" method=\"post\" action=\"upload.php?action=upload&amp;sid=$sid\" />";
                                            echo "<input type=\"file\" size=\"32\" name=\"my_field\" value=\"\" />";
                                            echo "<input type=\"hidden\" name=\"action\" value=\"image\" />
                                ";
                                            echo "<input type=\"submit\" name=\"Submit\" value=\"upload\" />";
                                            echo "</form>";
                                   
                                    echo "[/size]</p>"; 
                                  ////// UNTILL HERE >> 
                                    echo "<p align=\"center\">";
                                   echo "
                                
                                <a href=\"usergallery.php?action=main&amp;sid=$sid\">«Back to Gallery</a>
                                ";
                                    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                                echo "Home</a>";
                                  echo "</p>";
                                  echo xhtmlfoot();
                                }
                                
                                ?>
                                Where is the problem?how to set that all type of mobile phones can upload photos?[/b]
                                try to put php.ini code or glabal on lol

                                Comment

                                Working...
                                X