View Single Post
  #1  
Old 02-11-2010, 04:28 AM
Skillz is offline Skillz
Registered User

Join Date: Feb 2010
Posts: 3

Made some edits to the phUploader

I hope that you do not mind.

Just some minor edits. I wanted the image to display when you uploaded it, not just the name. I also wanted forum code (bbcode) to show up after the upload as well, so users can easily copy/paste it.

Here is the code edit, around line 246.

Code:
If(move_uploaded_file($_FILES['file']['tmp_name'][$i],$folder.$file_name[$i].".".$file_ext[$i])) {
						
						$success.="<b>SUCCESS:</b> <img src=$full_url$file_name[$i]".".$file_ext[$i]><br />";
						$success.="<b>URL:</b> <a href=\"".$full_url.$file_name[$i].".".$file_ext[$i]."\" target=\"_blank\">".$full_url.$file_name[$i].".".$file_ext[$i]."</a><br />";
						$success.="<b>BBCODE:</b> [IMG]$full_url$file_name[$i]".".$file_ext[$i][/IMG]<br /><br />";
I wonder how hard would it be to display this data on a different page.

I demo of the work I've done can be found here:

http://hosting.ut-files.com

**Please note. All images that are not related to any of the Unreal games will be removed.**

Last edited by Skillz; 02-11-2010 at 05:10 AM.
Reply With Quote