Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Edward

  1. Hartley San seems to be away is he on Holiday?
  2. Hartley San, what do you think of this Uploadifive for HTML5, do you feel this would be a good solution as opposed to the Flash SWFUpload? http://www.uploadify.com/download/ http://www.uploadify.com/documentation/
  3. Use the username string value instead of their id, which is of course shady. If you do that though you will have to edit your routes in your main/config.php, it can also be a pain as all your other user methods have to be listed there. So if someone has a user name the same as one of your controller method this function wouldn't run. But i guess you could just restrict those particular usernames on the user creation page.
  4. Glad you managed to get the problem worked out.
  5. I read all your comments, thanks for your informative post. Good luck with your work.
  6. You can't put the MANY_MANY relationship into Gii, you don't actually need to create a model for the intermediary table bookingrooms. All you are required to do is create a MANY_MANY relation in the Booking model(). You could also create the relation in the Room model if you have to. But here is what the relation will look like in your Booking model(): public function relations() { return array( 'bookingRoom'=>array(self::MANY_MANY,'Room','booking_rooms(booking_id,room_id)'), ); }
  7. Flash seems more secure than the regular file uploads methods, i have looked at the plugins and stuff. Implementing these could take 2 months or so for me to do alone, with all the testing and customizations and security. Ive also got this implemented not only for item listings but for user avatars aswell. Ive spend probably about 2 months working with that but i was probably slow because most of my JS and JQuery experience has been learnt through implementing that plugin. I have also cover every error that can happen with an upload so you are alerted if something goes wrong specifically.
  8. Would you recommend? http://blueimp.github.io/jQuery-File-Upload/
  9. Yeah i think after doing some more research you may be right. One way or another i will always figure it out but now I gotta move forward. Typing on my phone now darn this is slow but its not that bad i guess at least i am not typing out a 250 word item description, hehe. I think if you were on a mobile a non flash version would be useful at least for just trying the website out and listing one item. When you get home you could always list out a load more. Anyway i am all done. I will ask a question if its something i can't find online. Goodnight. Edward.
  10. Yes copying images into a div is easy my dog could probably do that just remember it wasn't my original question here. No i will NOT be dropping the SWFUpload plugin immediately there are quite a few sites still using the plugin its not affecting them. If i was to use an alternative i would use uploadify.com's version that works with Flash they also have the HTML version. Haha does that mean in a few years i should immediately drop Yii 1 because it is no longer maintained after i built my site, OMG. And tell me who loads up an inventory on their phone, its utterly ridiculous, its the w
  11. I would actually really rather not go into the full details, i am working with Flash SWFUpload Plugin it is used for loading in item images, say similar to the eBay item listings page where you wanted to load in your photos. I am working on a marketplace website it will works pretty much the same way as ebay does but it does have its differences. If you take a look at the core files on SWFUploads downloads page you will understand more about it. You can use one of their example scripts but in my case i had to build a custom one and set all my own JS handlers. http://code.google.com/p/swfup
  12. High Five Hartley San, everything is now working my image uploader is so smooth its perfect. Thanks very much for suggesting the image preloading with CSS it was definitely the best way to get that part done. I spent about a week on the images uploading so far. Now i need to write some script for users that don't have Flash and to show a division block instead of the upload button. Edward Update: Everything is done now working on localhost and server, very happy with this code, now i can finally move on.
  13. Now i know what the problem is with my JQuery when you use preloaded images with :before or :after CSS to add the content in. If you view the page source you can't find any of the change that has taken place meaning the image tag doesn't even show. I need to use my JQuery code to reference this particular image before it loads up the next image and because of this JQuery doesn't find it. Which means i have to do this in another way. Sorry yesterday i was only here in the Morning, i have all day on this now.
  14. I got it working but there are a lot of other CSS problems that have just come up now. This seems to be the best way to do it but i will need to write my code i have much more code than i have explaned to you in the thread it may take a bit of time.
  15. Yeah that CSS method using :after or :before i have seen some websites using this with content. That actually prevents you from downloading the image. Yeah and i found an other website using that on there image uploader. Okay im going to try and get this done quickly.
  16. I do like your answer but still i am left with the mystery to why the onload event doesn't always fire when using it in a for loop. Sometimes it will add the event to each image element while on other times it will only add it to the last one? I will be starting again on this tomorrow, i would like to try out some of your other solutions to see how they work. If i can get them to work and i feel they are better i will use them. I will update you on how they go. The flash uploader original javascript handlers script numerously uses the onload event on an img but that's only for one image at
  17. I am working on an flash image uploader for my item listing page. Images are selected say 10 for example then after dialog closes 10 image placeholders would be put up on the screen just like empty picture frames, each picture frame has a ajax spiral loader gif rotating. Now when the images are loaded the images will replace the ajax loader images. So what i am trying to do is attach an onload event to the 10 of these image loader gifs before they load up so they load up smoothly without showing the default image icon in the top left hand corner of the image. Here is the code i have no
  18. The code i suggest above seems to be a bit glitchy. What this code does is load up an ajax loader gif. You see if i show the gif image straight away on the server it will show an img icon then load then load it afterwards, it doesn't look smooth if you know what i mean. So i have to use the load event to change the opacity of the image gif file from 0 to 1. The problem now is that that if i load up many images sometimes it will not work and some of the ajax loader gif opacities are still at 0 which doesn't look to good on the page. The images upload well after this and all else is working
  19. Okay i understand what you are saying that makes sense actually. I will make the change.
  20. I got it to work by adding this to my load function. .each(function() { if(this.complete) { $(this).trigger('load'); } }); Yaahhoooo!!
  21. I am trying to put an onload event into a JS for loop to loop through and add an onload to each element but only the first element has the onload function attached. I could get the for loop to work when i added an alert message in the loop, i find this strange.
  22. Larry i am sorry about this but i have decided i am going to scrap this idea and just allow for the shipping to made on the item listing page only. This makes things easier for you and me as we don't have to deal with this database issue it also cuts out 60 % of the code which i have to do. Thanks for your help.
  23. Larry i am going to send you a picture to your email now of the shipping policy, you can enter the same details on the item listing page for shipping just like this. Once you see the picture you will understand what i am doing.
  24. I appreciate your long answer but its based mainly on the criteria of shipping a product. I have left out criteria from the question above and just quoted cost for local and international shipping because i do have extra criteria there to generally meet all in needs. Yes i am working on a market place but the criteria and shipping will be worked out by each seller individually, they could charge high or low for shipping gains or losses will fall on them. There are other websites now that have run for more than a decade with the most basic shipping options and have sold millions of dollars,
  25. Okay well if neither of these solutions are okay please suggest what you would recommend here. I know nothing can be perfect but I need the best solution for now. I thought about this and it seemed like i should ask you first before proceeding. May be someone at Stripe could even give recommendation whatever you think best. I'll don't donate something to you at the end of the year for the help you have given me this year. Thanks Edward.
  • Create New...