Lava Forum Post + Att Image *Centi*

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

    Lava Forum Post + Att Image *Centi*

    Im finally done with Lava.... Every one Shoud Have these Codings,,, im sharing caus that matter
    some wap owners thinks this is big deal codings... simple stuff only thing u have to do is try try try
    do exactly what i say... this is perfectly working 100% codings!!!!

    Only for Wapdesire Old Ver! Make your own Modifications thats all
    *****Uploadrs Are Safe*****
    If You Have Any Problems Installing Jus Tell I Will Help Personally



    1.Download The Zip File
    2.Make a Folder Name forum on your root folder
    3.Put post_image.php and class.uplaod.php on your wap folder or what ever u called it
    4.Go to phpmyadmin and add these one row under ibwf_posts

    `image` varchar(100) NOT NULL,

    5.Open index.php and add this after post reply link

    PHP Code:
    echo "<a href=\"index.php?action=postimage&amp;sid=$sid&amp;tid=$tid\">+ Image</a><br/>"
    6.and under index.php

    PHP Code:
    //////////////////////////////////////////Post reply with image
    else if($action=="postimage")
    {
    $whoimage $_GET["whoimage"];
    $tid $_GET["tid"];
    $tfid mysql_fetch_array(mysql_query("SELECT fid FROM ibwf_topics WHERE id='".$tid."'"));
    $fid $tfid[0];
    if(!
    canaccess(getuid_sid($sid), $fid))
        {
    echo 
    "<head>";
    echo 
    "<title>Post Reply</title>";
    echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo 
    "</head>";
    echo 
    "<body>";
     echo 
    "<p align=\"center\">";
    echo 
    "You Don't Have A Permission To View The Contents Of This Forum<br/><br/>";
    echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo 
    "</p>";
     echo 
    "</body>";
    echo 
    "</html>";
    exit();
    }
        
    addonline(getuid_sid($sid),"Posting reply + image","");
       echo 
    "<head>";
      echo 
    "<title>Space</title>";
      echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/stylesheet.css\">";
      echo 
    "</head>";
      echo 
    "<body>";
      echo 
    "<p align=\"center\"><small>";
      print
    '<div class="header">Post reply with Image</div>';
        
    $qut $_GET["qut"];
        echo 
    "<p>";
        echo 
    "<br/><b>Pick a Photo to upload</b>";
        echo 
    "<form enctype=\"multipart/form-data\" method=\"post\" action=\"post_image.php?action=upload&amp;sid=$sid\">";
        echo 
    "<input type=\"file\" name=\"f1\" size=\"15\"><br/>";
        echo 
    "<b>Reply Text</b><br/> <input name=\"descript\" value=\"Hello\" maxlength=\"500\" size=\"20\"/>";
        echo 
    "<input type=\"hidden\" name=\"action\" value=\"image\" /><br/>";
        echo 
    "<input type=\"hidden\" name=\"tid\" value=\"$tid\"/>";
        echo 
    "<input type=\"hidden\" name=\"qut\" value=\"$qut\"/>";
        echo 
    "<INPUT TYPE=\"submit\" name=\"upl\" VALUE=\"Post\"></form>";   
      echo 
    "<br/><small>Note:<br/>";   
          echo 
    "* File size limit 512kb. If your upload does not work, try a smaller Photo.<br/>";
          echo 
    "* Allowed formats: <b>.jpg, .gif, .bmp, .png</b><br/>";
          
      echo 
    "</center></small></p>"
        
      
        
    $fid getfid($tid);
        
    $fname getfname($fid);
        echo 
    "<br/><a href=\"index.php?action=viewtpc&amp;sid=$sid&amp;tid=$tid\">Back to topic</a>";
        echo 
    "<br/><a href=\"index.php?action=viewfrm&amp;sid=$sid&amp;fid=$fid\">$fname</a><br/>";
      echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
       
    /////////////////////////////footer
    echo"<br/><div class=\"logo\">";
    echo
    "<b>© Centi - ".date("Y")."</b><br/>";
    echo
    "</small></div>";
    echo
    "<div class=\"center\">";
    //echo'<center><a href="http://top.slhitz.com/in.php?sid=1"><img src="http://top.slhitz.com/cou.php?sid=1" alt="SM" /></a><center>';
    echo"</div></small></p>";
    echo
    "</body>";
    }
    //////////////////////// 
    7.find ($action=="viewtpc") under index.php

    PHP Code:
    $sql "SELECT id, text, uid, dtpost, quote FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start$posts_per_page"
    replace to

    PHP Code:
    $sql "SELECT id, text, uid, dtpost, quote, image FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start$posts_per_page"
    find

    PHP Code:
    $usl "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$post[2]\">$iml$unick</a>";
    $pst parsemsg($post[1], $sid); 
    add after

    PHP Code:
    $image = ($post[5]);
    if(
    $image=="")
      {
    $topt "<a href=\"index.php?action=pstopt&amp;sid=$sid&amp;pid=$post[0]&amp;page=$page&amp;fid=$tinfo[5]\">*</a>";
    }else{
    $topt "<a href=\"index.php?action=pstopt&amp;sid=$sid&amp;pid=$post[0]&amp;page=$page&amp;fid=$tinfo[5]\">*</a> | <a href=\"$post[5]\">Att</a><br/><img src=\"$post[5]\" width=\"40\" height=\"40\"/>";

    thats all people enjoy
    Attached Files


    ....................................
    http://photomag.lk/
    ....................................


    #2
    Nice share mate
    LoveForum.BiZ

    Comment


      #3
      dear make code for free sms servic via free sms site for lava. . We need dis ,u

      Comment


        #4
        ok i will when i have time


        ....................................
        http://photomag.lk/
        ....................................

        Comment


          #5
          Ya, Dear we need free sms service plz help us. @centi
          LoveForum.BiZ

          Comment


            #6
            ive successfully coded forum attachments easy to do
            this will be avail when i release the new mobilezonez script









            Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
            Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

            Comment


              #7
              just retired from coding for a short time...


              I'm Proud to be a Sri Lankan!

              Comment


                #8
                Originally posted by centi View Post
                Im finally done with Lava.... Every one Shoud Have these Codings,,, im sharing caus that matter
                some wap owners thinks this is big deal codings... simple stuff only thing u have to do is try try try
                do exactly what i say... this is perfectly working 100% codings!!!!

                Only for Wapdesire Old Ver! Make your own Modifications thats all
                *****Uploadrs Are Safe*****
                If You Have Any Problems Installing Jus Tell I Will Help Personally



                1.Download The Zip File
                2.Make a Folder Name forum on your root folder
                3.Put post_image.php and class.uplaod.php on your wap folder or what ever u called it
                4.Go to phpmyadmin and add these one row under ibwf_posts

                `image` varchar(100) NOT NULL,

                5.Open index.php and add this after post reply link

                PHP Code:
                echo "<a href=\"index.php?action=postimage&amp;sid=$sid&amp;tid=$tid\">+ Image</a><br/>"
                6.and under index.php

                PHP Code:
                //////////////////////////////////////////Post reply with image
                else if($action=="postimage")
                {
                $whoimage $_GET["whoimage"];
                $tid $_GET["tid"];
                $tfid mysql_fetch_array(mysql_query("SELECT fid FROM ibwf_topics WHERE id='".$tid."'"));
                $fid $tfid[0];
                if(!
                canaccess(getuid_sid($sid), $fid))
                    {
                echo 
                "<head>";
                echo 
                "<title>Post Reply</title>";
                echo 
                "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                echo 
                "</head>";
                echo 
                "<body>";
                 echo 
                "<p align=\"center\">";
                echo 
                "You Don't Have A Permission To View The Contents Of This Forum<br/><br/>";
                echo 
                "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
                echo 
                "</p>";
                 echo 
                "</body>";
                echo 
                "</html>";
                exit();
                }
                    
                addonline(getuid_sid($sid),"Posting reply + image","");
                   echo 
                "<head>";
                  echo 
                "<title>Space</title>";
                  echo 
                "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/stylesheet.css\">";
                  echo 
                "</head>";
                  echo 
                "<body>";
                  echo 
                "<p align=\"center\"><small>";
                  print
                '<div class="header">Post reply with Image</div>';
                    
                $qut $_GET["qut"];
                    echo 
                "<p>";
                    echo 
                "<br/><b>Pick a Photo to upload</b>";
                    echo 
                "<form enctype=\"multipart/form-data\" method=\"post\" action=\"post_image.php?action=upload&amp;sid=$sid\">";
                    echo 
                "<input type=\"file\" name=\"f1\" size=\"15\"><br/>";
                    echo 
                "<b>Reply Text</b><br/> <input name=\"descript\" value=\"Hello\" maxlength=\"500\" size=\"20\"/>";
                    echo 
                "<input type=\"hidden\" name=\"action\" value=\"image\" /><br/>";
                    echo 
                "<input type=\"hidden\" name=\"tid\" value=\"$tid\"/>";
                    echo 
                "<input type=\"hidden\" name=\"qut\" value=\"$qut\"/>";
                    echo 
                "<INPUT TYPE=\"submit\" name=\"upl\" VALUE=\"Post\"></form>";   
                  echo 
                "<br/><small>Note:<br/>";   
                      echo 
                "* File size limit 512kb. If your upload does not work, try a smaller Photo.<br/>";
                      echo 
                "* Allowed formats: <b>.jpg, .gif, .bmp, .png</b><br/>";
                      
                  echo 
                "</center></small></p>"
                    
                  
                    
                $fid getfid($tid);
                    
                $fname getfname($fid);
                    echo 
                "<br/><a href=\"index.php?action=viewtpc&amp;sid=$sid&amp;tid=$tid\">Back to topic</a>";
                    echo 
                "<br/><a href=\"index.php?action=viewfrm&amp;sid=$sid&amp;fid=$fid\">$fname</a><br/>";
                  echo 
                "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                   
                /////////////////////////////footer
                echo"<br/><div class=\"logo\">";
                echo
                "<b>© Centi - ".date("Y")."</b><br/>";
                echo
                "</small></div>";
                echo
                "<div class=\"center\">";
                //echo'<center><a href="http://top.slhitz.com/in.php?sid=1"><img src="http://top.slhitz.com/cou.php?sid=1" alt="SM" /></a><center>';
                echo"</div></small></p>";
                echo
                "</body>";
                }
                //////////////////////// 
                7.find ($action=="viewtpc") under index.php

                PHP Code:
                $sql "SELECT id, text, uid, dtpost, quote FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start$posts_per_page"
                replace to

                PHP Code:
                $sql "SELECT id, text, uid, dtpost, quote, image FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start$posts_per_page"
                find

                PHP Code:
                $usl "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$post[2]\">$iml$unick</a>";
                $pst parsemsg($post[1], $sid); 
                add after

                PHP Code:
                $image = ($post[5]);
                if(
                $image=="")
                  {
                $topt "<a href=\"index.php?action=pstopt&amp;sid=$sid&amp;pid=$post[0]&amp;page=$page&amp;fid=$tinfo[5]\">*</a>";
                }else{
                $topt "<a href=\"index.php?action=pstopt&amp;sid=$sid&amp;pid=$post[0]&amp;page=$page&amp;fid=$tinfo[5]\">*</a> | <a href=\"$post[5]\">Att</a><br/><img src=\"$post[5]\" width=\"40\" height=\"40\"/>";

                thats all people enjoy
                alls working well but the images not showing in forums only blank showing any one pls help

                Comment


                  #9
                  rep

                  Have u run the sql?? Chk by uploading a image... is the information abt image is inserted in the row 'images' of ibwf_posts ???
                  ImPoSsIbLe iS nOthInG aS ImPoSsible ItSelF SaYs "I M POSSIBLE"

                  Comment


                    #10
                    Originally posted by wap-ruler View Post
                    Have u run the sql?? Chk by uploading a image... is the information abt image is inserted in the row 'images' of ibwf_posts ???
                    not working bro i m getting other errors now like u dnt hve permission to access this ,forums

                    Comment

                    Working...
                    X