Help me guys

Started on the old forum in November 2009 · view the original in the archive · old links redirect here

9 replies · 631 views · started 17 years ago · 1 min read

4 participants
slowy Senior · 357 posts #1

Hi guys, i want to display attachment($file) link in textarea where visitor can copy link 4 dwnld mngr. Heres code echo ""; $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 "External image (may be gone) "; } echo substr($file,strrpos($file,'/')+1)." (".format_size(filesize($file)).") "; echo"<a class="vb" href="".$file."" onclick="openwin()">Download NOW</a>

subzero Super moderator Fellow · 3,954 posts #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... _______…

subzero Super moderator Fellow · 3,954 posts #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... _______…

Anshul Senior · 296 posts #8

slowy wrote: Thanx Bro.but $file is giving only xyz/a.3gp. I want whole file address.

<input type =\"text\" name=\"www.abc.com/".$file."\" value=\"http://yoursite.com/".$file."\">

or use $_SERVER["HTTP_HOST"]

slowy Senior · 357 posts #9

Anshul wrote:

<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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close