FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Add several browser to load several images
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Add several browser to load several images [message #25679 is a reply to message #24974] Fri, 17 June 2005 08:53 Go to previous messageGo to previous message
Treolorn is currently offline  Treolorn   Russian Federation
Messages: 14
Registered: June 2005
Karma:
Junior Member
Can i help? Wink

aircool51
1. find file: www/theme/<themename>/post.php
2. find: (this is with a my language, you need to find with your)
/* newly uploaded files */
	if (isset($_FILES['attach_control']) && $_FILES['attach_control']['size']) {
		if ($_FILES['attach_control']['size'] > $MAX_F_SIZE) {
			$attach_control_error = '<font class="ErrorText">Файл слишком велик (превышает установленный предел в '.$MAX_F_SIZE.' байт)</font><br>';
		} else {
			if (!($MOD && $frm->forum_opt & 32) && filter_ext($_FILES['attach_control']['name'])) {
				$attach_control_error = '<font class="ErrorText">Загружаемый файл не принадлежит к одному из допустимых типов.</font><br>';
			} else {
				if (($attach_count+1) <= $frm->max_file_attachments) {
					$val = attach_add($_FILES['attach_control'], _uid);
					$attach_list[$val] = $val;
					$attach_count++;
					} else {
					$attach_control_error = '<font class="ErrorText">Вы пытаетесь загрузить большее допустимого количество файлов.</font><br>';
				}
			}
		}
	}

and replace with
	for( $i = 0; $i < 3; $i++ )
	{
		$name = 'attach_control'.$i;
	if (isset($_FILES[$name]) && $_FILES[$name]['size']) {
		if ($_FILES[$name]['size'] > $MAX_F_SIZE) {
			$attach_control_error = '<font class="ErrorText">Файл слишком велик (превышает установленный предел в '.$MAX_F_SIZE.' байт)</font><br>';
		} else {
			if (!($MOD && $frm->forum_opt & 32) && filter_ext($_FILES[$name]['name'])) {
				$attach_control_error = '<font class="ErrorText">Загружаемый файл не принадлежит к одному из допустимых типов.</font><br>';
			} else {
				if (($attach_count+1) <= $frm->max_file_attachments) {
					$val = attach_add($_FILES[$name], _uid);
					$attach_list[$val] = $val;
					$attach_count++;
					} else {
				$attach_control_error = '<font class="ErrorText">Вы пытаетесь загрузить большее допустимого количество файлов.</font><br>';
				}
			}
		}
	}
	}

3. find
<input type="file" name="attach_control">

and replace with
<input type="file" name="attach_control0"><br />
<input type="file" name="attach_control1"><br />
<input type="file" name="attach_control2">

you have a 3 inputs for files...
if you want to more inputs, add <input type..> and for( .. $i< <your number>..)

all done Smile

[Updated on: Fri, 17 June 2005 09:00]

Report message to a moderator

[Message index]
 
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Moderator/UserManager selection
Next Topic: Group Editor Selection for Group Manager
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 17:12:21 GMT 2024

Total time taken to generate the page: 0.05077 seconds