All-For-Kompa.RU

Сегодня:
Карта сайта форум Главная
Скрыть рекламный блок
  • Страница 1 из 1
  • 1
Модератор форума: Vladislavik-36  
Форум » Движки » uCoz » Загрузка файлов для форма!
Загрузка файлов для форма!
leonP4Дата: Суббота, 31.01.2009, 00:54 | Сообщение # 1
.:хакер:.
Группа: Администратор
Сообщений: 664
Награды: 11
Статус: Offline
Данный модуль предназначен для загрузки файлов: архивов, фотографий и т.п. на распространённые файловые архивы с последующей публикацией готовых ссылок в комментарии к новостям или для форма.
Загрузка производится в следующие файловые хранилища:

0.1b Sendspace.com Rapidshare.com iFolder.ru Cocoshare.cc Slil.ru Zshare.net FunkyIMG.com Радикал-Фото Imageshack.us Paintedover.c om 0.2b LetItBit.net Fotki.com TinyPic.com 0.2.1b ii4.ru Немного исправлен код 0.2.2b Все вставлено в таблицу теперь Почищен HTML код Кнопка загрузить теперь при втором клике закрывает окно таблицы.

1. Заходим в шаблон (Форум - Форма добавления сообщения) и в нужное для вас место и добавляем КНОПКУ
Кусочек кода:

Code
<input type="button" onclick="return load_module('clickMe_load')" value="Загрузить файл" />

2. Этот скрипт ставим в шаблоне (Форум - Общий вид страниц форума) после
Кусочек кода:

Code
<head> </head>

Кусочек кода:

Code
<?if($PAGE_ID$="threadpage" or $PAGE_ID$="addreply" or $PAGE_ID$="postedit" or $PAGE_ID$="addthread" or $PAGE_ID$="addpoll")?>     
<script type='text/javascript'>     
function load_module(a){     
var e=document.getElementById(a);     
if(!e)return true;     
if(e.style.display=="none"){     
e.style.display="block"     
} else {     
e.style.display="none"     
}     
return true;     
}     
</script>     
<?endif?>

3. А этот код ставим в шаблоне (Форум - Общий вид страниц форума) после $BODY$!
Кусочек кода:

Code
<?if($PAGE_ID$="threadpage" or $PAGE_ID$="addreply" or $PAGE_ID$="postedit" or $PAGE_ID$="addthread" or $PAGE_ID$="addpoll")?>     
<table width="700" align="center" border="0" id="clickMe_load" style="display:none">     
       <tr>     
       <td width="700" colspan="2" align="center"><h3>Загрузка файлов и изображений</h3></td>     
       </tr>     
       <tr>     
       <td width="350" align="center"><h5>Загрузка изображений</h3></td>     
       <td width="350" align="center"><h5>Загрузка файлов</h3></td>     
       </tr>     
       <tr>     
       <td>     
       <a href="http://funkyimg.com/" title="(jpg, jpeg, gif, png, bmp, tif, tiff, swf < 2Mb)" target="_blank">FunkyIMG.com</a>     
       <br>       
       <form action="http://funkyimg.com/up.php" target="_blank" method="post" enctype="multipart/form-data">     
       <input type="file" name="file" />     
       <input type="submit" name="upload" value="Загрузить" />     
       </form>     
       </td>     
       <td>     
       <a href="http://www.sendspace.com/" title="(300Mb)" target="_blank">Sendspace.com</a>     
       <br>     
       <form method="post" action="http://fs02u.sendspace.com/processupload.html" target="_blank" enctype="multipart/form-data">     
       <input type="file" name="file_0" />     
       <input type="submit" value="Загрузить" />     
       </form>     
       </td>     
       </tr>     
       <tr>     
       <td>     
       <a href="http://foto.radikal.ru" title="(?????)" target="_blank">Радикал-Фото</a>     
       <br>     
       <form action="http://foto.radikal.ru/action.aspx" target="_blank" method="post" enctype="multipart/form-data">     
       <input type="hidden" id="upload_hidd" name="upload" value="yes" />     
       <input type="file" name="F" />     
       <input type="submit" value="Загрузить" name="Submit" />     
       </form>     
       </td>     
       <td>     
       <a href="http://rapidshare.com/" title="(100Mb)" target="_blank">Rapidshare.com</a>     
       <br>     
       <form method="post" action="http://rs162l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=" enctype="multipart/form-data" target="_blank">       
       <input type="file" name="filecontent" />     
       <input type="submit" value="Загрузить" />     
       </form>     
       </td>     
       </tr>     
       <tr>     
       <td>     
       <a href="http://www.imageshack.us" title="(jpg, jpeg, png, gif, bmp, tif, tiff, swf < 1.5Mb)" target="_blank">Imageshack.us</a>     
       <br>     
       <form action="http://www.imageshack.us/index.php" method="post" target="_blank" enctype="multipart/form-data">     
       <input type="file" name="fileupload" />     
       <input name="submit" type="submit" value="Загрузить" />     
       </form>     
       </td>     
       <td>     
       <a href="http://ifolder.ru/" title="(100Mb)" target="_blank">iFolder.ru</a>     
       <br>       
       <form method="post" enctype="multipart/form-data" target="_blank" action="http://upl.stg166.ifolder.ru/?serial=a2a11c3044b95fec1335e0df73202384">     
       <input type="file" name="filename" value="fasdfadf" />     
       <input type="submit" value="Загрузить" />     
       <input type="hidden" name="upload_params" value="bf0af357f9f471d86046f0d3246e84da5a32197f43e6c5d8b1dd4e3e93bd736869ab8e37c3b392c3fd8f08753b5b89fde209681ffe4b9ab7" />        
       <input type="hidden" name="clone" value="ifolder.ru" />     
       <input type="hidden" name="upload_host" value="stg166.ifolder.ru" />     
       </form>     
       </td>     
       </tr>     
       <tr>     
       <td>     
       <a href="http://www.paintedover.com" title="(png, jpeg, jpg, gif, bmp < 1.5Mb)" target="_blank">Paintedover.com</a>     
       <br>     
       <form action="http://www.paintedover.com/upload.php" method="post" enctype="multipart/form-data" target="_blank">     
       <input type="hidden" value="1936000" name="max_f_size" />     
       <input type="file" name="userfile[1]" />     
       <input type="submit" name="Upload" value="Загрузить" />     
       </form>     
       </td>     
       <td>     
       <a href="http://cocoshare.cc" title="(100Mb)" target="_blank">Cocoshare.cc</a>     
       <br>     
       <form method="post" enctype="multipart/form-data" action="http://cocoshare.cc/" target="_blank">       
       <input type="file" name="file" id="upnpt" />     
       <input type="submit" id="upbtn" value="Загрузить" />     
       <input type="hidden" name="upload" value="." />     
       </form>     
       </td>     
       </tr>     
       <tr>     
       <td>     
       <a href="http://fotki.com/" title="(jpg, gif, png, jpeg, bmp, tif, psd, pcx < No Limit)" target="_blank">Fotki.com</a>     
       <br>     
       <form id="hotuploadform" action="http://hotimg1.fotki.com" enctype="multipart/form-data" method="post" target="_blank">     
       <input id="hotlinkphoto" name="hotphoto" type="file" />     
       <input id="uploadBtn" value="Загрузить" type="submit" />     
       </form>     
       </td>     
       <td>     
       <a href="http://slil.ru" title="(50Mb)" target="_blank">Slil.ru</a>     
       <br>     
       <form action="http://zalil.ru/upload/" enctype="multipart/form-data" method="post" id="sendform" target="_blank">     
       <input type="file" name="file" />     
       <input type="submit" name="submit" value="Загрузить" id="submit" />     
       </form>     
       </td>     
       </tr>     
       <tr>     
       <td>     
       <a href="http://tinypic.com" title="(?????)" target="_blank">TinyPic.com</a>     
       <br>     
       <form action="http://s1.tinypic.com/upload.php" method="post" enctype="multipart/form-data" target="_blank" id="uploadForm">     
       <input name="domain_lang" value="en" type="hidden" />     
       <input name="action" value="upload" type="hidden" />     
       <input name="the_file" type="file" />     
       <input name="submit" value="Загрузить" type="submit" />     
       </form>     
       </td>     
       <td>     
       <a href="http://zshare.net/" title="(100Mb)" target="_blank">Zshare.net</a>     
       <br>     
       <form method="post" action="http://xi.zshare.net/upload.php" enctype="multipart/form-data" target="_blank">     
       <input name="file" type="file" />       
       <input name="submit" value="Загрузить" type="submit" />     
       </form>     
       </td>     
       </tr>     
       <tr>     
       <td>     
       <a href="http://www.ii4.ru/" title="(?????)" target="_blank">ii4.ru</a>     
       <br>     
       <form method="post" enctype="multipart/form-data" action="http://www.ii4.ru/basic.php" target="_blank">     
       <input name="userfile" type="file" />     
       <input name="upload" type="submit" value="Загрузить" />     
       </form>     
       </td>     
       <td>     
       <a href="http://letitbit.net/" title="(2Gb+)" target="_blank">LetItBit.net</a>     
       <br>     
       <form enctype="multipart/form-data" action="http://r12.letitbit.net/cgi-bin/home3r/upload.cgi?upload_id=" method="post" target="_blank">     
       <input id="myfile" name="myfile" type="file" />     
       <input id="upload_a" name="upload_a" type="submit" value="Загрузить" />     
       </form>     
       </td>     
       </tr>     
       <tr>     
       <td width="700" colspan="2" align="center"><a href="javascript://" onClick="document.all.clickMe_load.style.display='none'"><b>Закрыть окно</b></a></td>     
       </tr>     
</table>     
<?endif?>


Админ - Первый источник флуда на форуме =)
 
Форум » Движки » uCoz » Загрузка файлов для форма!
  • Страница 1 из 1
  • 1
Поиск:
Реклама