Datemill.com
March 11, 2010, 02:09:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Del.icio.us FURL FaceBook Stumble Upon Google Bookmarks

Pages: [1]
  Print  
Author

Can you see what's wrong?

 (Read 260 times)
treehugger
Active Member
**

Karma: 0
Posts: 49


Can you see what's wrong?

« on: December 13, 2009, 07:28:29 AM »

Been fiddling again - but this time I DID take a back up. I added the text re the max file size but then I got the code showing under the upload button so I put the backup back in and the code is still showing. Here's the old file:

Code:
<form action="{tplvars.relative_url}processors/photos_upload.php" method="post" enctype="multipart/form-data" id="photos_upload_form" class="edit_form"> <fieldset> <legend>Find the image(s) you want on your computer</legend> <p>{output.photos_remaining}</p> <ul> <li><input type="file" name="file1" id="file1" /></li> <li><input type="file" name="file2" id="file2" /></li> <li><input type="file" name="file3" id="file3" /></li> <li><input type="file" name="file4" id="file4" /></li> <li><input type="file" name="file5" id="file5" /></li> <li><input type="file" name="file6" id="file6" /></li> </ul> </fieldset> <fieldset id="privacy"> <legend>Choose the privacy settings</legend> <p><input type="checkbox" name="is_private" id="is_private" value="1" /> <label for="is_private">Private photo?</label></p> </fieldset> <fieldset class="controls"> <input type="submit" id="btn-upload" class="button medium" value="Upload" /> </fieldset> </form> <script type="text/javascript"> var lang=new Array('{output.lang_257}'); </script> <script type="text/javascript" src="{tplvars.relative_url}js/photos_upload.js?v={tplvars.js_lib_v}"></script>

and this is what we're now seeing:



I added Image max. 100kb and 600x600 pixels after Find the image(s) you want on your computer.
Logged
maverick
Active Member
**

Karma: 60
Posts: 504


Re: Can you see what's wrong?

« Reply #1 on: December 13, 2009, 02:19:20 PM »

Since the old (backup) file that you put back in place doesn't include the max image size, I'd guess that your probably still viewing a cached version that includes the max image text. Try clearing your browser cache and try viewing the page again. If that doesn't work double check that the old backup version did indeed get uploaded properly.
Logged
treehugger
Active Member
**

Karma: 0
Posts: 49


Re: Can you see what's wrong?

« Reply #2 on: December 13, 2009, 04:01:13 PM »

I had put the backup back in Maverick - then when I saw it also showed the var lang+new Array stuff I decided that if we were going to be left with that showing regardless of which one I used, I might as well put the info in that I needed to tell people.
Logged
maverick
Active Member
**

Karma: 60
Posts: 504


Re: Can you see what's wrong?

« Reply #3 on: December 13, 2009, 07:26:02 PM »

What editor are you using to edit your files? The reason I'm asking is seeing your code all strung into a single line like that. It should be formatted and organized like the code below. Just a guess, but maybe your editor is somehow messing up the code. Since it's just an html file in theory what you have should work ok, but who knows, hard to tell unless I could see the actual file. Try copying and pasting the code below and save the file as "photos_upload.html" and upload it again.

I've mentioned this before, never use WordPad or regular NotePad to edit code. It's also not a good idea using a live FTP editor or edit files via the site manager. http://forum.datemill.com/index.php/topic,2457.0.html

Code:
<form action="{tplvars.relative_url}processors/photos_upload.php" method="post" enctype="multipart/form-data" id="photos_upload_form" class="edit_form">
<fieldset>
<legend>Find the image(s) you want on your computer</legend>
<p>{output.photos_remaining}</p>
<ul>
<li><input type="file" name="file1" id="file1" /></li>
<li><input type="file" name="file2" id="file2" /></li>
<li><input type="file" name="file3" id="file3" /></li>
<li><input type="file" name="file4" id="file4" /></li>
<li><input type="file" name="file5" id="file5" /></li>
<li><input type="file" name="file6" id="file6" /></li>
</ul>
</fieldset>
<fieldset id="privacy">
<legend>Choose the privacy settings</legend>
<p><input type="checkbox" name="is_private" id="is_private" value="1" /> <label for="is_private">Private photo?</label></p>
</fieldset>
<fieldset class="controls">
<input type="submit" id="btn-upload" class="button medium" value="Upload" />
</fieldset>
</form>

<script type="text/javascript">
var lang=new Array('{output.lang_257}');
</script>
<script type="text/javascript" src="{tplvars.relative_url}js/photos_upload.js?v={tplvars.js_lib_v}"></script>
Logged
treehugger
Active Member
**

Karma: 0
Posts: 49


Re: Can you see what's wrong?

« Reply #4 on: January 03, 2010, 06:52:40 AM »

Thank you Maverick - I've been using Christmas as an excuse to put off trying it but have just done it and it works perfectly.
Logged
Pages: [1]
  Print  

 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!