Author Topic: Add upload link to user menu  (Read 7803 times)

0 Members and 1 Guest are viewing this topic.

Offline johnsmith

  • Pre-Newbie
  • Posts: 2
    • View Profile
Add upload link to user menu
« on: January 24, 2008, 05:10:09 AM »
How do I add a link to the user menu to upload photos?

I have searched and can only find this thread, http://www.4homepages.de/forum/index.php?topic=12831.0, I can't find the one it refers to from the previous day with the answer.

Thanks


Offline Lesik

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Add upload link to user menu
« Reply #1 on: December 10, 2008, 08:06:44 PM »
may be, in file user_logininfo.html
add string  <a href="member.php?action=uploadform">Upload</a>

Offline nuzecast

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Add upload link to user menu
« Reply #2 on: March 28, 2009, 05:30:52 PM »
Hopefully someone can help me.
I'm not sure what I've done wrong

I put this link in user_logininfo.html
 <a href="member.php?action=uploadform">Upload</a>

After filling in appropriate upload fields I get a message "Please fill out the Category field!" even though a category has been selected.
However if I go to the upload form using the usual/normal link from within a category, then the category selection is pre-filled out and the upload proceeds fine.

Below is the contents of my member_uploadform.html
Note: I have commented out some of the fields I don't use but I don't think that is the issue as it works when you use the "usual" method as stated above.

Thanks in advance.
Nuzecast

Code: [Select]
<form method="post" action="{url_member}" enctype="multipart/form-data" onsubmit="uploadbutton.disabled=true;">
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td valign="top" class="head1">
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="head1">{lang_user_upload}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_category}</b></td>
            <td class="row1">{cat_name}</td>
          </tr>
          <tr>
            <td class="row2" valign="top">
  <b>{lang_media_file}</b><br />
  <span class="smalltext">
  {lang_max_filesize}<b>{max_media_filsize}</b><br />
  {lang_max_imagewidth}<b>{max_media_imagewidth}</b><br />
  {lang_max_imageheight}<b>{max_media_imageheight}</b><br />
  </span>
</td>
            <td class="row2">
              <b>Upload:</b><br />
  <input type="file" name="media_file" class="input" /><br />
  <b>URL:</b><br />
  <input type="text" name="remote_media_file"  size="30" value="{remote_file}" class="input" /><br />
  <span class="smalltext"><b>{lang_allowed_file_types}</b> {allowed_media_types}</span>
            </td>
          </tr>
          <tr>
            <!--<td class="row1" valign="top">
  <b>{lang_thumb_file}</b><br />
  <span class="smalltext">
  {lang_max_filesize}<b>{max_thumb_filsize}</b><br />
  {lang_max_imagewidth}<b>{max_thumb_imagewidth}</b><br />
  {lang_max_imageheight}<b>{max_thumb_imageheight}</b><br />
  </span>
</td>
            <td class="row1">
              <b>Upload:</b><br />
  <input type="file" name="thumb_file" class="input" /><br />
  <b>URL:</b><br />
  <input type="text" name="remote_thumb_file"  size="30" value="{remote_thumb_file}" class="input" /><br />
  <span class="smalltext"><b>{lang_allowed_file_types}</b> {allowed_thumb_types}</span>
            </td>-->
          </tr>
          <tr>
            <td class="row1"><b>{lang_image_name}</b></td>
            <td class="row1">
              <input type="text" name="image_name"  size="30" value="{image_name}" class="input" />
            </td>
          </tr>
          <tr>
            <td class="row2" valign="top"><b>{lang_description}&nbsp;(Optional)</b></td>
            <td class="row2">
              <textarea name="image_description" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
            </td>
          </tr>
          <tr>
            <td class="row1" valign="top"><b>{lang_keywords}&nbsp;(Optional)</b></td>
            <td class="row1">
              <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords">{image_keywords}</textarea>
            </td>
          </tr>
{if captcha_upload}
          <tr>
            <td class="row1" valign="top"><b>{lang_captcha}</b></td>
            <td class="row1">
              <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
              <input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
              <br />
              {lang_captcha_desc}
            </td>
          </tr>
          {endif captcha_upload}
        </table>
      </td>
    </tr>
  </table>
  <input type="hidden" name="action" value="uploadimage" />
  <input type="hidden" name="cat_id" value="{cat_id}" />
  <p align="center">
    <input type="submit" name="uploadbutton" value="{lang_submit}" class="button" />
    <input type="reset" value="{lang_reset}" class="button" />
  </p>
</form>

Offline nuzecast

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Add upload link to user menu
« Reply #3 on: March 31, 2009, 07:02:16 PM »
Found this after searching more thoroughly  :oops:

http://www.4homepages.de/forum/index.php?topic=5935.0

Thanks again