Author Topic: Two upload forms  (Read 4877 times)

0 Members and 1 Guest are viewing this topic.

Offline Jenn

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Two upload forms
« on: June 16, 2007, 01:34:44 PM »
Is it possible to have two upload forms?

I thought I could just add
Code: [Select]
}
  $content = $site_template->parse_template("member_uploadform1");
}

to the member.php but im getting an error.

I need a seperate form for a certain type of image that will require different upload information then the other images.

Thanks a bunch
Jen

Offline bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Re: Two member_uploadform.html files
« Reply #1 on: January 11, 2009, 11:34:47 AM »
is this already possible?

Edit: I just searched a little bit more... I think this might be the answer: http://www.4homepages.de/forum/index.php?topic=13025.0 - Am I right?
steps to do:
copying member_uploadform.html and rename to member_uploadform_1.html
then adapting the relevant line in member.php so that the relevant categories use the other upload-form like kurt described here:

Hi,

in member.php

search -- suche:
Code: [Select]
$content = $site_template->parse_template("member_uploadform");
}

Insert above-- davor einfügen:
Code: [Select]
//----Verschiedene Uploads je Kategorie
//-------------------------------------
  if (file_exists(TEMPLATE_PATH."/member_uploadform_".$cat_id.".html")) {
$content = $site_template->parse_template("member_uploadform_".$cat_id);
}
else
//-----Ende Verschiedene Uploads je Kategorie
//-------------------------------------------


For category 1 => member_uploadform_1.html
Für Kategorie 2 => member_uploadform_2.html

cu
Kurt

is this right?
« Last Edit: January 11, 2009, 12:15:15 PM by bergblume »

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Two upload forms
« Reply #2 on: January 11, 2009, 11:46:41 AM »
Hi

Quote
is this right?

Yes  :wink:


Kurt

Offline bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Re: Two upload forms
« Reply #3 on: January 11, 2009, 12:14:51 PM »
perfect! thank you, kurt!  :D