Jump to content

Zipp425

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Zipp425's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Im trying to make a PHP backend for this tool Using Ajax, I pass resize2.php?resize=true&src=http://localhost/imageEditor/me.jpg&w=400&h=200&s=1&x=0&y=100 Heres what I currently have in the php file, but it says that Im not using a valid image resource if($_GET['resize'] = true){ $filedir = '../images/'; // the directory for the original image $prefix = date('mdy_His_'); // the prefix to be added to the original name $maxfile = '2000000'; $uploadDir = $filedir.$prefix.'upload.jpg'; $srcImg = imagecreatefromjpeg($_GET['src']); imagecopyresampled($uploadDir,imagecreatefromjpeg($_GET['src']),0,0,$_GET['x'],$_GET['y'],$_GET['w'],$_GET['h'],400,400); } Any help on this subject would be great. also, let me know if you have any questions.
  2. haha. Thanks for letting me know your opinion about the fisheye list, Ill ditch it in the next version for something similar to the templates menu probably.... As for the ajax thing... I put it in there just because I know its a buzz word, and it makes me feel good about myself. haha. Thanks for clarifying its definition
  3. Alright, Thanks tom, that actually helps alot. I didnt know there was a micro time function... haha.
  4. Great thanks for the feedback guys. I think the next release will be a lot more user friendly. I will be adding a helper box to guide users through the process, along with a color picker for those who dont know hex colors. As for load time, I dont see a way to cut it down much unless I ditch the widget menu at top with the fisheye effect (should i do it?). I can probably add some effect to entertain users while it loads, like flickr.
  5. I just finished creating it. It utilizes, Javascript, CSS, HTML, XML, PHP, and AJAX. Since it is still in early stages of development, this version is targeted at the Myspace crowd. I'm hoping to get some hype so I can have a little support in the future. [URL=http://2.0ize.justinmaier.com/index.php]Myspace 2.0ize[/URL] How is the design? Does it take to long to load? Does it seem easy to use? Any suggestions/ complaints? [b]edit[/b] by neylitalo: Fixed broken link [b]edit[/b] by zipp425: thanks!
  6. Ive spent the last few hours trying to figure out how I could edit the attributes of an XML node. If anyone knows how please share...
  7. Does anyone know why this [code] foreach($xml->$parentNode->$childSelector->attributes() as $aname => $avalue){ if ($aname == 'height' || 'width'){ $dimensions .= '<div><input type="text" id="'.$childSelector.$aname.'" value="'.$avalue.'" /><label>'.$aname.'</label></div>'; } } [/code] is capturing all the $aname and $avalues, and not just the "height" or "width" $aname and $avalue? When I do it without the OR operator, it works fine, and only captures the $aname and $avalue I want. Is there a different operator I should use?
  8. Beautiful. Thank you very much. Now, do you know if there is a way to make it so it will only create the new file once, and later just edit the created file? I would like to have one standard XML file that is then editted by user select and saved to a different XML file according to their userid IE [code] standard.xml --User Changes default settings ---new attributes saved as userid.xml ----User changes more settings -----edit attributes in userid.xml [/code] Nevermind, unless im wrong it looks like you can specify a file to write to with asXML() Thanks for your help.
  9. Ive been working on a way to edit an xml file, I have been using fopen and just specifying a specific line to replace, but that wasnt working very well, because sometimes lines seemed to be off, or users would give data that would cause line breaks. I just recently learned about SimpleXML in PHP5, and I was wondering if someone could explain to me how I could use PHP to open a XML file, and select a specific tag name and replace a specific attribute, or a array of attributes. I would be using xmlHttpRequest to pass data to the PHP file that would then open and edit the XML file. Thanks for your help in advance
  10. Nevermind I got it all figured out. Thank you so much for your help.
  11. Ive made it so the same data will always be on the same line. I just need to figure out how to replace that specific line. here is the xml file that is generated [pre] <?xml version='1.0' encoding='iso-8859-1'?> <data> <widgets> <profile height='600px' width='800px' borderSize='2px' borderStyle='solid' borderColor='#000000' font='Arial, Helvetica, sans-serif' fontColor='#000000' fontSize='100%' backgroundColor='#ffffff' backgroundURL='' backgroundImgAlign='' backgroundImgRepeat='' misc=''/> <textBox height='auto' width='300px' borderSize='1px' borderStyle='solid' borderColor='#000000' font='Arial, Helvetica, sans-serif' fontColor='#000000' fontSize='100%'  backgroundColor='#efefef' backgroundURL='' backgroundImgAlign='' backgroundImgRepeat='' misc='' /> <friendArea height='auto' width='400px' borderSize='1px' borderStyle='solid' borderColor='#000000' font='Arial, Helvetica, sans-serif' fontColor='#000000' fontSize='100%' backgroundColor='#efefef' backgroundURL='' backgroundImgAlign='' backgroundImgRepeat='' misc='' /> </widgets> </data> [/pre] so basically what i need is to select the textBox line and replace it when a user changes the values.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.