ev5unleash Posted May 28, 2008 Share Posted May 28, 2008 What I want is so A user could pick one of there pictures or bgs from there computer then be able to put it as the webpages background then and there. Quote Link to comment Share on other sites More sharing options...
haku Posted May 29, 2008 Share Posted May 29, 2008 So do you have a question? What have you got so far? Quote Link to comment Share on other sites More sharing options...
ev5unleash Posted May 29, 2008 Author Share Posted May 29, 2008 How do you create a file dialog that allows a user to pick one of there own pictures from there computer then when they click ok it gets applied to the background of the page right then and there. Quote Link to comment Share on other sites More sharing options...
haku Posted May 29, 2008 Share Posted May 29, 2008 1) create an upload script 2) save a reference to the file name in the database 3) Use a server-side scripting language to add the background style to the body tag using CSS Quote Link to comment Share on other sites More sharing options...
ev5unleash Posted June 4, 2008 Author Share Posted June 4, 2008 I'm not a really good coder. Can you give me a script example? Quote Link to comment Share on other sites More sharing options...
haku Posted June 5, 2008 Share Posted June 5, 2008 Sorry, I'm here to help people with theory on how to write scripts, or to assist with scripts they are having troubles with. But writing scripts is how I make my bread and butter, so I generally don't do it for free! Â If you start to put something together and having troubles, then come back here and show it to us, I'll be more than happy to point you at where you are going wrong, and give you ideas on how to go right! Â Start with step 1 that I gave you - figure out how to write a file upload script. There are a number of tutorials on it (google is your friend) that can help you out with this. Quote Link to comment Share on other sites More sharing options...
ev5unleash Posted June 8, 2008 Author Share Posted June 8, 2008 I don't really want the image to upload to the server, I want it so they can put an image on there local machine as the BG of the page Quote Link to comment Share on other sites More sharing options...
haku Posted June 9, 2008 Share Posted June 9, 2008 That's not impossible, but close enough to be pretty much impossible. Quote Link to comment Share on other sites More sharing options...
ev5unleash Posted June 10, 2008 Author Share Posted June 10, 2008 Well what i was thinking is there is some sort of locater script where the user locates the picture and then uses the filepath and applys that as the wall paper. That impossible? Quote Link to comment Share on other sites More sharing options...
haku Posted June 10, 2008 Share Posted June 10, 2008 Not impossible, but not easy to implement at all. It's basically what some viruses do. Got any virus writing experience? Quote Link to comment Share on other sites More sharing options...
ev5unleash Posted June 10, 2008 Author Share Posted June 10, 2008 This is HTML that will be in an exe file if it has to be. I know that you can view webpages from your computer. So why not something like this if it were basically coming from the computer? Quote Link to comment Share on other sites More sharing options...
haku Posted June 10, 2008 Share Posted June 10, 2008 Are you talking about a non-web based html form? If so, then it's possible to have the background image on the persons machine. If the image and the files are on the same machine, then the files can access the image. But if they are on different machines, you can't do it (or at least not easily). Quote Link to comment Share on other sites More sharing options...
ev5unleash Posted June 10, 2008 Author Share Posted June 10, 2008 Yeah, That's what i'm talking about. Any ideas on how to start it up. Quote Link to comment Share on other sites More sharing options...
haku Posted June 10, 2008 Share Posted June 10, 2008 create a form with a browse button on it so that the person can browse to a local image for their background. Use PHP to take the text contents of the input (the path to the image), and save that in a database. Then, when the page is loading, check to see if there is a path in the database, and if there is, load it, if there's not, then load a default. Quote Link to comment Share on other sites More sharing options...
GameYin Posted June 10, 2008 Share Posted June 10, 2008 Hmm, he could set the background image via javascript, save the file location of the image in a cookie, and reference each time he comes back. Although that's just all theory... Quote Link to comment Share on other sites More sharing options...
ev5unleash Posted June 11, 2008 Author Share Posted June 11, 2008 Hmmm, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.