Help me guys

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

    Help me guys

    Hi guys,
    i want to display attachment($file) link in textarea where visitor can copy link 4 dwnld mngr. Heres code
    echo "<div class='fileList'>";
    $thumb = str_replace(substr($file,strrpos($file,'/')+1),'thumb-'.substr($file,strrpos($file,'/')+1),$file);
    $thumb = substr($thumb,0,strrpos($thumb,'.')).'.jpg';
    if(is_file($thumb)){
    echo "<img src='$thumb' /><br/>";
    }
    echo substr($file,strrpos($file,'/')+1)." (".format_size(filesize($file)).")<br/>";
    echo"<a class=\"vb\" href=\"".$file."\" onclick=\"openwin()\">Download NOW</a><br/>

    http://WapTops.com- Get Real High Traffic
    http://WapFun.info-Fun 4 Wap

    #2
    Help me guys. Where r u?

    http://WapTops.com- Get Real High Traffic
    http://WapFun.info-Fun 4 Wap

    Comment


      #3
      <input type =\"text\" name=\"".$file."\" value=\"".$file."\">

      place this anywhere in the code ok
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        I putted
        echo"<input type =\"text\" name=\"".$file."\" value=\"".$file."\">";

        It display dis in text area
        xyz/a.3gp
        but i want whole link like
        Last edited by slowy; 03.11.09, 09:08.

        http://WapTops.com- Get Real High Traffic
        http://WapFun.info-Fun 4 Wap

        Comment


          #5
          <textarea name=\"".$file."\" id=\"".$file."\" rows=\"5\" cols=\"20\">".$file."</textarea>
          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
          Visit: WapMasterz Coming Back Soon!
          _______
          SCRIPTS FOR SALE BY SUBZERO
          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            Thanx Bro.but $file is giving only xyz/a.3gp.
            I want whole file address.

            http://WapTops.com- Get Real High Traffic
            http://WapFun.info-Fun 4 Wap

            Comment


              #7
              Originally posted by subzero View Post
              <input type =\"text\" name=\"www.abc.com/".$file."\" value=\"".$file."\">

              place this anywhere in the code ok
              manualy add the your link so its infront of the variable
              Creator of
              Epix.Mobi

              Keep an Eye on us Big things coming soon!!!!
              Need something for your site hit me up here

              http://coding-talk.com/forum/main-fo...r-your-wapsite

              Comment


                #8
                Originally posted by slowy View Post
                Thanx Bro.but $file is giving only xyz/a.3gp.
                I want whole file address.
                PHP Code:
                <input type =\"text\" name=\"www.abc.com/".$file."\" value=\"http://yoursite.com/".$file."\"> 
                or use $_SERVER["HTTP_HOST"]

                Comment


                  #9
                  Originally posted by Anshul View Post
                  PHP Code:
                  <input type =\"text\" name=\"www.abc.com/".$file."\" value=\"http://yoursite.com/".$file."\"> 
                  or use $_SERVER["HTTP_HOST"]
                  thanx mate its working f9. Really happy now.
                  Only 1 thing needed. File name has spaces between words like www.abc.com/3gp/awesome video.3gp
                  so download manager doesnt support spaces. How can i put %20 in place of spaces in textarea
                  Last edited by slowy; 04.11.09, 03:08.

                  http://WapTops.com- Get Real High Traffic
                  http://WapFun.info-Fun 4 Wap

                  Comment


                    #10
                    u could try to strip spaces from the variable by adding [code]$newstring = str_replace(" ", NULL, $oldstring);
                    Creator of
                    Epix.Mobi

                    Keep an Eye on us Big things coming soon!!!!
                    Need something for your site hit me up here

                    http://coding-talk.com/forum/main-fo...r-your-wapsite

                    Comment

                    Working...
                    X