Lava Shout + Att Image *Centi*

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

    Lava Shout + 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 shout on your root folder
    3.Put shout_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_shouts

    `image` varchar(100) NOT NULL,

    5.Open core.php and Replace function getshoutbox with this

    PHP Code:
    //////////////////////////////
    function getshoutbox($sid)
    {
    $shbox = "";
    $lshout = mysql_query("SELECT shout, shouter, id, image FROM ibwf_shouts ORDER BY shtime DESC LIMIT 2");
    while ($shots = mysql_fetch_array($lshout))
    {
    $shnick = getnick_uid($shots[1]);
    if(isonline($shots[1])){
        $bulb="<img src=\"../images/onl.gif\" alt=\"\"/>";
    }
    else{
        $bulb="<img src=\"../images/ofl.gif\" alt=\"\"/>";
    }
    //////////////////////////////////////////////////////////////////// add sex to shouts code
    $nick = getnick_uid($sid);
    $who = $_GET['who'];
    $action = $_GET['action'];
    $uid = getuid_sid($sid);
    
    $usex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$uid."'"));
    if($usex[0]=='M'){
    $usex = "";
    }else if($usex[0]=='F'){
    $usex = "";
    }
    $image = ($shots[3]);
    if($image=="")
      {
      $shbox .= "$bulb  <i>$usex<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$shots[1]\">".$shnick."</a></i>: ";
      }else{
      $shbox .= "$bulb  <i>$usex<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$shots[1]\">".$shnick."</a></i>: <img src=\"$shots[3]\" width=\"40\" height=\"40\"/> ";
     
      }
    
    
    //$shbox .= "$bulb  <i>$usex<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$shots[1]\">".$shnick."</a></i>: ";
    $fshout = htmlspecialchars($shots[0]);
    
    
    
    $fshout = getsmilies($fshout);
    //$fshout = parsepm($fshout, $sid);
    $shbox .= $fshout;
    if (ismod(getuid_sid($sid))){
    $shbox .= " <a href=\"modproc.php?action=delsh&amp;sid=$sid&amp;shid=$shots[2]\">[x]</a>";
    }
    $shbox .= "<br/>";
    }
    if (isonline(getuid_sid($sid))){
        $shbox .= "<a href=\"index.php?action=shout&amp;sid=$sid\">Shout </a>";
      $shbox .= "|";
      $shbox .= "<a href=\"lists.php?action=shouts&amp;sid=$sid\"> More</a>";
      $shbox .= "|";
      $shbox .= "<a href=\"shout.php?action=shout&amp;sid=$sid\"> + image</a>";
    }else{
    $shbox .= "<a href=\"index.php?action=shout&amp;sid=$sid\">Shout</a>";
      $shbox .= "|";
      $shbox .= "<a href=\"lists.php?action=shouts&amp;sid=$sid\">More</a>";
      $shbox .= "|";
      $shbox .= "<a href=\"shout.php?action=shout&amp;sid=$sid\"> + image</a>";
    }
    $shbox .= "";
    return $shbox;
    }
    ////////////// 
    
    6.Open lists.php and find ($action=="shouts") page and replace with this

    PHP Code:
    //////////////////////////////////shouts
    else if($action=="shouts")
    
    
    {
    
    
        addonline(getuid_sid($sid),"Viewing Shouts","");
    
    
       echo "<head>";
    echo "<title>Space</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/space.css\">";
    echo "</head>";
    echo "<body>";
    echo "<p align=\"center\"><small>";
    print'<div class="header">Viewing Shouts</div>';
    
    
    
    echo "<p align=\"left\">";
    
    
    
        $who = $_GET["who"];
    
    
        //////ALL LISTS SCRIPT <<
    
    
    
    
    
        if($page=="" || $page<=0)$page=1;
    
    
        if($who=="")
    
    
        {
    
    
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts"));
    
    
        }else{
    
    
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts WHERE shouter='".$who."'"));
    
    
        }
    
    
        $num_items = $noi[0]; //changable
    
    
        $items_per_page= 10;
    
    
        $num_pages = ceil($num_items/$items_per_page);
    
    
        if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    
    
        $limit_start = ($page-1)*$items_per_page;
    
    
    
    
    
        //changable sql
    
    
        if($who =="")
    
    
        {
    
    
            $sql = "SELECT id, shout, shouter, shtime, image  FROM ibwf_shouts ORDER BY shtime DESC LIMIT $limit_start, $items_per_page";
    
    
    }else{
    
    
        $sql = "SELECT id, shout, shouter, shtime, image  FROM ibwf_shouts  WHERE shouter='".$who."'ORDER BY shtime DESC LIMIT $limit_start, $items_per_page";
    
    
    }
    
    
    
    
    
        echo "<p><small>";
    
    
        $items = mysql_query($sql);
    
    
        echo mysql_error();
    
    
        if(mysql_num_rows($items)>0)
    
    
        {
    
    
        while ($item = mysql_fetch_array($items))
    
    
        {
    
    
            $shnick = getnick_uid($item[2]);
    
    
            $sht2 = parsepm($item[1], $sid);
    
    
            $shdt = date("d m y-H:i", $item[3]);
    
        
    $image = ($item[4]);
    if($image=="")
      {
      
      
    $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$shnick</a>: $sht2<br/>$shdt";
    
      }else{
    
    $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$shnick</a>: <img src=\"$item[4]\" width=\"40\" height=\"40\"/> $sht2<br/>$shdt";
    
      
     
      }
    
          
    
    
          if(ismod(getuid_sid($sid)))
    
    
          {
    
    
          $dlsh = "<a href=\"modproc.php?action=delsh&amp;sid=$sid&amp;shid=$item[0]\">[x]</a>";
    
    
          }else{
    
    
            $dlsh = "";
    
    
          }
    
    
          echo "$lnk $dlsh<br/>";
    
    
        }
    
    
        }
    
    
        echo "</small></p>";
    
    
        echo "<p align=\"center\">";
    
    
        if($page>1)
    
    
        {
    
    
          $ppage = $page-1;
    
    
          echo "<a href=\"lists.php?action=shouts&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«PREV</a> ";
    
    
        }
    
    
        if($page<$num_pages)
    
    
        {
    
    
          $npage = $page+1;
    
    
          echo "<a href=\"lists.php?action=shouts&amp;page=$npage&amp;sid=$sid&amp;who=$who\">Next»</a>";
    
    
        }
    
    
        echo "<br/>$page/$num_pages<br/>";
    
    
        if($num_pages>2)
    
    
        {
    
    
            $rets = "<form action=\"lists.php\" method=\"get\">";
    
    
            $rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>";
    
    
            $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
    
    
            $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
    
    
            $rets .= "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
    
    
            $rets .= "<input type=\"submit\" value=\"Go To Page\"/>";
    
    
            $rets .= "</form>";
    
    
    
    
    
            echo $rets;
    
    
        }
    
    
        echo "</p>";
    
    
      ////// UNTILL HERE >>
    
    
       echo "<br/><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>© Space - ".date("Y")."</b><br/>";
    echo"</small></div>";
    echo"</div></small></p>";
    echo"</body>";
    }
    ////////////////////////////////////////// 
    
    Thats it Have Fun ;p
    Attached Files


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


    #2
    Thanx dear nice share
    LoveForum.BiZ

    Comment


      #3
      Where is shout.php with upload image code??????
      Last edited by bigboss; 16.02.11, 03:42.
      LoveForum.BiZ

      Comment


        #4
        cant u see the attached file


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

        Comment

        Working...
        X