• [MOD] multiupload 5 0 5 1
Currently:  

Author Topic: [MOD] multiupload  (Read 264841 times)

0 Members and 1 Guest are viewing this topic.

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [MOD] multiupload
« Reply #210 on: February 26, 2008, 09:43:31 PM »
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline axtro

  • Pre-Newbie
  • Posts: 3
    • View Profile

Offline nanzi

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] multiupload
« Reply #212 on: March 16, 2008, 08:52:31 AM »
thinks every one!

Offline kaya

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD] multiupload
« Reply #213 on: June 18, 2008, 05:45:14 AM »

HOw do i increase the 5 uploads to say 10 uploads?
Thanks

Offline eXtremer

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] multiupload
« Reply #214 on: June 24, 2008, 10:06:19 AM »
Hi all.
I use [BETA] for 1.7.6 Multiupload Vers. 2.0, by ivan.
It works fine except a thing:

I'm using the blue template, when I enter the site I see the blue template but when I enter a Categorie, the template switches to the default template, why ?!

Index page (good):



A categorie page (not good) should use the blue template as index page:



Ivan doesn't know english so he cannot help me, could smb else ?!
I think I have to change the code in categories.php but I don't know what.

Offline LunaPark

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD] multiupload
« Reply #215 on: July 12, 2008, 12:50:18 PM »
Hi I just followed the text to install this mod...

But I need the file :  "member_multiuploadform.html"
and the image to the button.

Can anyone help me ?

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: [MOD] multiupload
« Reply #216 on: July 12, 2008, 08:50:23 PM »
Hi I just followed the text to install this mod...

But I need the file :  "member_multiuploadform.html"
and the image to the button.

Can anyone help me ?

Hi;
look at here: [BETA] for 1.7.6 Multiupload Vers. 2.0.
You can find there all filles in attachment, if using 4images 1.7.6.

Offline artmedia

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Fotos de chicas
Re: [MOD] multiupload
« Reply #217 on: November 19, 2008, 06:13:58 PM »

- download the file from below and copy it to your template folder (of course rename to member_multiuploadform.html)


Sorry, from where? where is the link with the attachments?

Offline piczilla

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] multiupload
« Reply #218 on: July 07, 2010, 05:43:01 PM »
Nothing like bring up an old topic  :D

I just followed this to get the multiple uploads to work. I also installed the thing to get different names, descriptions, and keywords.

The only problem is when I click "submit" it makes me to the members.php page and it says I have lost my password.

Can anyone help?

Thanks,
Coultonß

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] multiupload
« Reply #219 on: July 07, 2010, 08:32:03 PM »
Welcome to 4images forum.

Please post contents of your member_multiuploadform.html template

And check steps for members.php
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline piczilla

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] multiupload
« Reply #220 on: July 07, 2010, 09:00:14 PM »
Welcome to 4images forum.

Please post contents of your member_multiuploadform.html template

And check steps for members.php

Thanks for the help.

member_multiuploadform.html
Code: [Select]
<style type="text/css">
<!--
.style12 {color: #666666}
.style14 {color: #666666; font-size: 14px; }
.style15 {font-size: 14px}

-->
</style>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="47"><img src="http://www.insanestream.com/piczilla/templates/default_960px/images/divide_12_title.png" width="200" height="47" /> </td>
          </tr>
</table></td>
      </tr>
    </table></td>
  </tr>
</table>



<table width="960" border="0" align="center" cellpadding="1" cellspacing="0">
  <tr>
    <td valign="top" class="head1">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" class="head1">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" class="head1"><form method="post" action="{url_member}" enctype="multipart/form-data" onSubmit="uploadbutton.disabled=true;">
      <span class="row1 style12"><b>You are uploading these pictures to {cat_name}</b>.</span>
      <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 width="38%" valign="top" class="row2"><span class="smalltext"><br />
              </span> </td>
            <td width="34%" class="row2">&nbsp;</td>
            <td width="28%" class="row2">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top" class="row1"><table border="0" cellpadding="15" cellspacing="0" style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/1.png); border:1px solid #dcdbdb;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                      <b>
                      <input name="media_file" type="file" class="input" />
                      </b></nobr><br>
                      <br>
                      <span class="style14"><b>{lang_image_name}</b></span><span class="row2"><b><br>
                                            </b>
                      <input type="text" name="image_name"  size="30" value="{image_name}" class="input" />
                      <br>
                      <br>
                      <b class="style14">{lang_description}</b> <br>
                      <textarea name="image_description" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                                            </span><br>
                      <br>
                      <span class="style14"><b>{lang_keywords}</b></span><span class="row2"><b><br>
                      </b>
                      <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords">{image_keywords}</textarea>
                                            </span><br>
                </b></td>
              </tr>
            </table>             
              <br></td>
            <td valign="top" class="row1"><table border="0" cellspacing="0" cellpadding="15" style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/2.png);  border: 1px solid #d5d3d3;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                        <b>
                        <input name="media_file2" type="file" class="input" id="media_file2" />
                        </b></nobr><br>
                        <br>
                        <span class="style14"><b>{lang_image_name}</b></span><span class="row2"><b><br>
                                                </b>
                        <input type="text" name="image_name2"  size="30" value="{image_name}" class="input" />
                        <br>
                        <br>
                        <b class="style14">{lang_description}</b> <br>
                        <textarea name="image_description2" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                                                </span><br>
                        <br>
                        <span class="style14"><b>{lang_keywords}</b></span><span class="row2"><b><br>
                                                </b>
                        <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords2">{image_keywords}</textarea>
                                                </span><br>
                </b></td>
              </tr>
            </table>
              <br></td>
            <td valign="top" class="row1"><table border="0" cellspacing="0" cellpadding="15"  style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/1.png); border:1px solid #dcdbdb;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                        <b>
                        <input name="media_file3" type="file" class="input" id="media_file3" />
                        </b></nobr><br>
                        <br>
                        <span class="style14"><b>{lang_image_name}</b></span><span class="row2"><b><br>
                                                </b>
                        <input type="text" name="image_name3"  size="30" value="{image_name}" class="input" />
                        <br>
                        <br>
                        <b class="style14">{lang_description}</b> <br>
                        <textarea name="image_description3" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                                                </span><br>
                        <br>
                        <span class="style14"><b>{lang_keywords}</b></span><span class="row2"><b><br>
                                                </b>
                        <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords3">{image_keywords}</textarea>
                                                </span><br>
                </b></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="35" valign="top" class="row2">&nbsp;</td>
            <td class="row2">&nbsp;</td>
            <td class="row2">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top" class="row2"><table border="0" cellspacing="0" cellpadding="15" style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/2.png);  border: 1px solid #d5d3d3;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                        <b>
                        <input name="media_file4" type="file" class="input" />
                        </b></nobr><br>
                        <br>
                        <span class="style14"><b>{lang_image_name}</b></span><b><br>
                        </b>
                        <input type="text" name="image_name4"  size="30" value="{image_name}" class="input" />
                        <br>
                        <br>
                        <b class="style14">{lang_description}</b> <br>
                        <textarea name="image_description4" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                        <br>
                        <br>
                        <span class="style14"><b>{lang_keywords}</b></span><b><br>
                        </b>
                        <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords4">{image_keywords}</textarea>
                        <br>
                </b></td>
              </tr>
            </table></td>
            <td class="row2"><table border="0" cellspacing="0" cellpadding="15" style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/1.png); border:1px solid #dcdbdb;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                        <b>
                        <input name="media_file15" type="file" class="input" />
                        </b></nobr><br>
                        <br>
                        <span class="style14"><b>{lang_image_name}</b></span><b><br>
                        </b>
                        <input type="text" name="image_name5"  size="30" value="{image_name}" class="input" />
                        <br>
                        <br>
                        <b class="style14">{lang_description}</b> <br>
                        <textarea name="image_description5" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                        <br>
                        <br>
                        <span class="style14"><b>{lang_keywords}</b></span><b><br>
                        </b>
                        <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords5">{image_keywords}</textarea>
                        <br>
                </b></td>
              </tr>
            </table></td>
            <td class="row2"><table border="0" cellspacing="0" cellpadding="15" style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/2.png);  border: 1px solid #d5d3d3;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                        <b>
                        <input name="media_file16" type="file" class="input" />
                        </b></nobr><br>
                        <br>
                        <span class="style14"><b>{lang_image_name}</b></span><b><br>
                        </b>
                        <input type="text" name="image_name6"  size="30" value="{image_name}" class="input" />
                        <br>
                        <br>
                        <b class="style14">{lang_description}</b> <br>
                        <textarea name="image_description6" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                        <br>
                        <br>
                        <span class="style14"><b>{lang_keywords}</b></span><b><br>
                        </b>
                        <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords6">{image_keywords}</textarea>
                        <br>
                </b></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="35" valign="top" class="row2">&nbsp;</td>
            <td class="row2">&nbsp;</td>
            <td class="row2">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top" class="row2"><table border="0" cellspacing="0" cellpadding="15" style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/1.png); border:1px solid #dcdbdb;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                        <b>
                        <input name="media_file7" type="file" class="input" />
                        </b></nobr><br>
                        <br>
                        <span class="style14"><b>{lang_image_name}</b></span><b><br>
                        </b>
                        <input type="text" name="image_name7"  size="30" value="{image_name}" class="input" />
                        <br>
                        <br>
                        <b class="style14">{lang_description}</b> <br>
                        <textarea name="image_description7" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                        <br>
                        <br>
                        <span class="style14"><b>{lang_keywords}</b></span><b><br>
                        </b>
                        <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords7">{image_keywords}</textarea>
                        <br>
                </b></td>
              </tr>
            </table></td>
            <td class="row2"><table border="0" cellspacing="0" cellpadding="15" style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/2.png);  border: 1px solid #d5d3d3;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                        <b>
                        <input name="media_file8" type="file" class="input" />
                        </b></nobr><br>
                        <br>
                        <span class="style14"><b>{lang_image_name}</b></span><b><br>
                        </b>
                        <input type="text" name="image_name8"  size="30" value="{image_name}" class="input" />
                        <br>
                        <br>
                        <b class="style14">{lang_description}</b> <br>
                        <textarea name="image_description8" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                        <br>
                        <br>
                        <span class="style14"><b>{lang_keywords}</b></span><b><br>
                        </b>
                        <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords8">{image_keywords}</textarea>
                        <br>
                </b></td>
              </tr>
            </table></td>
            <td class="row2"><table border="0" cellspacing="0" cellpadding="15" style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/1.png); border:1px solid #dcdbdb;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                        <b>
                        <input name="media_file9" type="file" class="input" />
                        </b></nobr><br>
                        <br>
                        <span class="style14"><b>{lang_image_name}</b></span><b><br>
                        </b>
                        <input type="text" name="image_name9"  size="30" value="{image_name}" class="input" />
                        <br>
                        <br>
                        <b class="style14">{lang_description}</b> <br>
                        <textarea name="image_description9" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                        <br>
                        <br>
                        <span class="style14"><b>{lang_keywords}</b></span><b><br>
                        </b>
                        <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords9">{image_keywords}</textarea>
                        <br>
                </b></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="35" valign="top" class="row2">&nbsp;</td>
            <td class="row2">&nbsp;</td>
            <td class="row2">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top" class="row2"><table border="0" cellspacing="0" cellpadding="15" style="background-image: url(http://www.insanestream.com/piczilla/templates/default_960px/images/2.png);  border: 1px solid #d5d3d3;">
              <tr>
                <td><b><nobr><span class="style14"><b>Upload</b><b></b></span><br>
                        <b>
                        <input name="media_file10" type="file" class="input" />
                        </b></nobr><br>
                        <br>
                        <span class="style14"><b>{lang_image_name}</b></span><b><br>
                        </b>
                        <input type="text" name="image_name10"  size="30" value="{image_name}" class="input" />
                        <br>
                        <br>
                        <b class="style14">{lang_description}</b> <br>
                        <textarea name="image_description10" cols="30" class="textarea" rows="5" wrap="VIRTUAL">{image_description}</textarea>
                        <br>
                        <br>
                        <span class="style14"><b>{lang_keywords}</b></span><b><br>
                        </b>
                        <textarea cols="30" class="textarea" rows="5" wrap="VIRTUAL" name="image_keywords10">{image_keywords}</textarea>
                        <br>
                </b></td>
              </tr>
            </table></td>
            <td class="row2">&nbsp;</td>
            <td class="row2">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top" class="row2">&nbsp;</td>
            <td class="row2">&nbsp;</td>
            <td class="row2">&nbsp;</td>
          </tr>
         
         
         
          {if captcha_multiupload}
          <tr>
            <td class="row1" valign="top"><b><span class="style14">{lang_captcha}</span><br>
              <br>
              <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 />
                  </b><span class="style15 style12">{lang_captcha_desc} </span></td>
            <td class="row1">&nbsp;</td>
            <td class="row1">&nbsp;</td>
          </tr>
          {endif captcha_multiupload}
        </table></td>
    </tr>
  </table>
  <p align="left">
    <br>
    <br>
    <input type="submit" name="multiuploadbutton" value="{lang_submit}" />
    <input type="reset" value="{lang_reset}" />
  </p>
</form></td>
  </tr>
</table>
<br>
<br>
<br>
<br>

I downloaded a fresh version of 4images to get the members.php file. I did everything that it said in the tutorial and now it's blank. Why?
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: member.php                                           *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.7                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) f&#252;r weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template "member";

define('GET_CACHES'1);
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
include(
ROOT_PATH.'includes/page_header.php');

if (
$action == "") {
  
$action "lostpassword";
}
$content "";
$txt_clickstream "";

$sendprocess 0;

if (isset(
$HTTP_GET_VARS[URL_COMMENT_ID]) || isset($HTTP_POST_VARS[URL_COMMENT_ID])) {
  
$comment_id = (isset($HTTP_GET_VARS[URL_COMMENT_ID])) ? intval($HTTP_GET_VARS[URL_COMMENT_ID]) : intval($HTTP_POST_VARS[URL_COMMENT_ID]);
}
else {
  
$comment_id 0;
}

if (
$action == "deletecomment") {
  if (!
$comment_id || ($config['user_delete_comments'] != && $user_info['user_level'] != ADMIN)) {
    
show_error_page($lang['no_permission']);
    exit;
  }

  
$sql "SELECT c.comment_id, c.user_id AS comment_user_id, i.image_id, i.cat_id, i.user_id, i.image_name
          FROM ("
.COMMENTS_TABLE." c, ".IMAGES_TABLE." i)
          WHERE c.comment_id = 
$comment_id AND i.image_id = c.image_id";
  
$comment_row $site_db->query_firstrow($sql);
  if (!
$comment_row || $comment_row['user_id'] <= USER_AWAITING || ($user_info['user_id'] != $comment_row['user_id'] && $user_info['user_level'] != ADMIN)) {
    
show_error_page($lang['no_permission']);
    exit;
  }

  
$txt_clickstream get_category_path($comment_row['cat_id'], 1).$config['category_separator']."<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$comment_row['image_id'])."\" class=\"clickstream\">".format_text($comment_row['image_name'], 2)."</a>".$config['category_separator'];
  
$txt_clickstream .= $lang['comment_delete'];

  
$sql "UPDATE ".IMAGES_TABLE."
          SET image_comments = image_comments - 1
          WHERE image_id = "
.$comment_row['image_id'];
  
$site_db->query($sql);

  if (
$comment_row['comment_user_id'] != GUEST) {
    
$sql "UPDATE ".USERS_TABLE."
            SET "
.get_user_table_field("""user_comments")." = ".get_user_table_field("""user_comments")." - 1
            WHERE "
.get_user_table_field("""user_id")." = ".$comment_row['comment_user_id'];
    
$site_db->query($sql);
  }

  
$sql "DELETE FROM ".COMMENTS_TABLE."
          WHERE comment_id = 
$comment_id";
  
$result $site_db->query($sql);
  
$msg = ($result) ? $lang['comment_delete_success'] : $lang['comment_delete_error'];
}

if (
$action == "removecomment") {
  if (!
$comment_id || ($config['user_delete_comments'] != && $user_info['user_level'] != ADMIN)) {
    
redirect($url);
  }

  
$sql "SELECT c.comment_id, c.image_id, c.user_id AS comment_user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, i.image_name, i.cat_id, i.user_id".get_user_table_field(", u.""user_name")."
          FROM ("
.COMMENTS_TABLE." c, ".IMAGES_TABLE." i)
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = c.user_id)
          WHERE c.comment_id = 
$comment_id AND i.image_id = c.image_id";
  
$comment_row $site_db->query_firstrow($sql);
  if (!
$comment_row || $comment_row['user_id'] <= USER_AWAITING || ($user_info['user_id'] != $comment_row['user_id'] && $user_info['user_level'] != ADMIN)) {
    
redirect($url);
  }

  
$txt_clickstream get_category_path($comment_row['cat_id'], 1).$config['category_separator']."<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$comment_row['image_id'])."\" class=\"clickstream\">".format_text($comment_row['image_name'], 2)."</a>".$config['category_separator'];
  
$txt_clickstream .= $lang['comment_delete'];

  if (isset(
$comment_row[$user_table_fields['user_name']]) && $comment_row['comment_user_id'] != GUEST) {
    
$user_name $comment_row[$user_table_fields['user_name']];
  }
  else {
    
$user_name $comment_row['comment_user_name'];
  }

  
$site_template->register_vars(array(
    
"comment_id" => $comment_id,
    
"image_name" => format_text($comment_row['image_name']),
    
"user_name" => format_text($user_name),
    
"comment_headline" => format_text($comment_row['comment_headline'], 0$config['wordwrap_comments'], 00),
    
"comment_text" => format_text($comment_row['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']),
    
"lang_delete_comment" => $lang['comment_delete'],
    
"lang_delete_comment_confirm" => $lang['comment_delete_confirm'],
    
"lang_image_name" => $lang['image_name'],
    
"lang_name" => $lang['name'],
    
"lang_headline" => $lang['headline'],
    
"lang_comment" => $lang['comment'],
    
"lang_submit" => $lang['submit'],
    
"lang_reset" => $lang['reset'],
    
"lang_yes" => $lang['yes'],
    
"lang_no" => $lang['no']
  ));
  
$content $site_template->parse_template("member_deletecomment");
}

if (
$action == "updatecomment") {
  if (!
$comment_id || ($config['user_edit_comments'] != && $user_info['user_level'] != ADMIN)) {
    
show_error_page($lang['no_permission']);
    exit;
  }
  
$sql "SELECT c.comment_id, c.image_id, i.image_name, i.cat_id, i.user_id".get_user_table_field(", u.""user_name")."
          FROM ("
.COMMENTS_TABLE." c, ".IMAGES_TABLE." i)
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = c.user_id)
          WHERE c.comment_id = 
$comment_id AND i.image_id = c.image_id";
  
$comment_row $site_db->query_firstrow($sql);
  if (!
$comment_row || $comment_row['user_id'] <= USER_AWAITING || ($user_info['user_id'] != $comment_row['user_id'] && $user_info['user_level'] != ADMIN)) {
    
show_error_page($lang['no_permission']);
    exit;
  }

  
$txt_clickstream get_category_path($comment_row['cat_id'], 1).$config['category_separator']."<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$comment_row['image_id'])."\" class=\"clickstream\">".format_text($comment_row['image_name'], 2)."</a>".$config['category_separator'];
  
$txt_clickstream .= $lang['comment_edit'];

  
$error 0;

  
$comment_headline un_htmlspecialchars(trim($HTTP_POST_VARS['comment_headline']));
  
$comment_text un_htmlspecialchars(trim($HTTP_POST_VARS['comment_text']));

  if (
$comment_headline == "")  {
    
$error 1;
    
$field_error preg_replace("/".$site_template->start."field_name".$site_template->end."/siU"str_replace(":"""$lang['headline']), $lang['field_required']);
    
$msg .= (($msg != "") ? "<br />" "").$field_error;
  }
  if (
$comment_text == "")  {
    
$error 1;
    
$field_error preg_replace("/".$site_template->start."field_name".$site_template->end."/siU"str_replace(":"""$lang['comment']), $lang['field_required']);
    
$msg .= (($msg != "") ? "<br />" "").$field_error;
  }

  if (!
$error) {
    
$sql "UPDATE ".COMMENTS_TABLE."
            SET comment_headline = '
$comment_headline', comment_text = '$comment_text'
            WHERE comment_id = 
$comment_id";
    
$result $site_db->query($sql);
    
$msg = ($result) ? $lang['comment_edit_success'] : $lang['comment_edit_error'];
  }
  else {
    
$action "editcomment";
    
$sendprocess 1;
  }
}

if (
$action == "editcomment") {
  if (!
$comment_id || ($config['user_edit_comments'] != && $user_info['user_level'] != ADMIN)) {
    
redirect($url);
  }

  
$sql "SELECT c.comment_id, c.image_id, c.user_id AS comment_user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, i.image_name, i.cat_id, i.user_id".get_user_table_field(", u.""user_name")."
          FROM ("
.COMMENTS_TABLE." c, ".IMAGES_TABLE." i)
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = c.user_id)
          WHERE c.comment_id = 
$comment_id AND i.image_id = c.image_id";
  
$comment_row $site_db->query_firstrow($sql);
  if (!
$comment_row || $comment_row['user_id'] <= USER_AWAITING || ($user_info['user_id'] != $comment_row['user_id'] && $user_info['user_level'] != ADMIN)) {
    
header("Location: ".$site_sess->url($url"&"));
    exit;
  }

  
$txt_clickstream get_category_path($comment_row['cat_id'], 1).$config['category_separator']."<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$comment_row['image_id'])."\" class=\"clickstream\">".format_text($comment_row['image_name'], 2)."</a>".$config['category_separator'];
  
$txt_clickstream .= $lang['comment_edit'];

  
$comment_headline = (isset($HTTP_POST_VARS['comment_headline'])) ? un_htmlspecialchars(stripslashes(trim($HTTP_POST_VARS['comment_headline']))) : $comment_row['comment_headline'];
  
$comment_text = (isset($HTTP_POST_VARS['comment_text'])) ? un_htmlspecialchars(stripslashes(trim($HTTP_POST_VARS['comment_text']))) : $comment_row['comment_text'];

  if (isset(
$comment_row[$user_table_fields['user_name']]) && $comment_row['comment_user_id'] != GUEST) {
    
$user_name $comment_row[$user_table_fields['user_name']];
  }
  else {
    
$user_name $comment_row['comment_user_name'];
  }

  
$bbcode "";
  if (
$config['bb_comments'] == 1) {
    
$site_template->register_vars(array(
      
"lang_bbcode" => $lang['bbcode'],
      
"lang_tag_prompt" => $lang['tag_prompt'],
      
"lang_link_text_prompt" => $lang['link_text_prompt'],
      
"lang_link_url_prompt" => $lang['link_url_prompt'],
      
"lang_link_email_prompt" => $lang['link_email_prompt'],
      
"lang_list_type_prompt" => $lang['list_type_prompt'],
      
"lang_list_item_prompt" => $lang['list_item_prompt']
    ));
    
$bbcode $site_template->parse_template("bbcode");
  }

  
$site_template->register_vars(array(
    
"bbcode" => $bbcode,
    
"comment_id" => $comment_id,
    
"image_name" => format_text($comment_row['image_name'], 2),
    
"user_name" => format_text($user_name2),
    
"comment_headline" => format_text($comment_headline2),
    
"comment_text" => format_text($comment_text2),
    
"lang_edit_comment" => $lang['comment_edit'],
    
"lang_image_name" => $lang['image_name'],
    
"lang_name" => $lang['name'],
    
"lang_headline" => $lang['headline'],
    
"lang_comment" => $lang['comment'],
    
"lang_submit" => $lang['submit'],
    
"lang_reset" => $lang['reset'],
    
"lang_yes" => $lang['yes'],
    
"lang_no" => $lang['no']
  ));
  
$content $site_template->parse_template("member_editcomment");
}

if (
$action == "deleteimage") {
  if (!
$image_id || ($config['user_delete_image'] != && $user_info['user_level'] != ADMIN)) {
    
show_error_page($lang['no_permission']);
    exit;
  }
  
$sql "SELECT image_id, cat_id, user_id, image_name, image_media_file, image_thumb_file
          FROM "
.IMAGES_TABLE."
          WHERE image_id = 
$image_id";
  
$image_row $site_db->query_firstrow($sql);
  if (!
$image_row || $image_row['user_id'] <= USER_AWAITING || ($user_info['user_id'] != $image_row['user_id'] && $user_info['user_level'] != ADMIN)) {
    
show_error_page($lang['no_permission']);
    exit;
  }

  
$txt_clickstream $lang['image_delete'];

  
$sql "DELETE FROM ".IMAGES_TABLE."
          WHERE image_id = 
$image_id";
  
$del_img $site_db->query($sql);

  if (!
is_remote($image_row['image_media_file']) && !is_local_file($image_row['image_media_file'])) {
    @
unlink(MEDIA_PATH."/".$image_row['cat_id']."/".$image_row['image_media_file']);
  }
  if (!empty(
$image_row['image_thumb_file']) && !is_remote($image_row['image_thumb_file']) && !is_local_file($image_row['image_thumb_file'])) {
    @
unlink(THUMB_PATH."/".$image_row['cat_id']."/".$image_row['image_thumb_file']);
  }

  include_once(
ROOT_PATH.'includes/search_utils.php');
  
remove_searchwords($image_id);

  if (!empty(
$user_table_fields['user_comments'])) {
    
$sql "SELECT user_id
            FROM "
.COMMENTS_TABLE."
            WHERE image_id = 
$image_id";
    
$result $site_db->query($sql);
    
$user_id_sql "";
    while (
$row $site_db->fetch_array($result)) {
      if (
$row['user_id'] != GUEST) {
        
$sql "UPDATE ".USERS_TABLE."
                SET "
.get_user_table_field("""user_comments")." = ".get_user_table_field("""user_comments")." - 1
                WHERE "
.get_user_table_field("""user_id")." = ".$row['user_id'];
        
$site_db->query($sql);
      }
    }
  }

  
$sql "DELETE FROM ".COMMENTS_TABLE."
          WHERE image_id = 
$image_id";
  
$del_com $site_db->query($sql);

  if (
$del_img) {
    
$msg $lang['image_delete_success'];
  }
  else {
    
$msg $lang['image_delete_error'];

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: [MOD] multiupload
« Reply #221 on: July 07, 2010, 09:16:31 PM »
The template missing several <input> tags
Refer to the original template and add missing tags.
specifically
Code: [Select]
  <input type="hidden" name="action" value="multiuploadimage" />
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] multiupload
« Reply #222 on: August 20, 2010, 11:52:28 PM »
@VANO

Hello vano, i recently installed the multi_userupload.php functionality from installing budukkes great MOd regarding user categories, OK so the problem is that when i upload media sites url and upload then the page does not show me the video imediately of which i uploaded, when i go back and upload another video the 1st video i posted is played back to me but the 2nd video i posted that should have been the video playing gets posted anyway, so thats 1 problem,

another problem is just the fact that using multi user upload when i upload video media sites urls from youtube lets say i get the youtube default picture but not a thumbnail of what the vidoe looks like, the original upload functionality althought just let me upload 1, it also shows me the thumbnails from numerous video sites. CAn these two bugs be fixed or is it not possible at the moment..

thank u vano and please get back to me please

Offline SolidSnake0308

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] multiupload
« Reply #223 on: September 26, 2010, 06:04:22 PM »
Hi,

ich habe den http://www.4homepages.de/forum/index.php?topic=8517.msg39355#msg39355 Hack installiert (Multiupload).

Dieser ging ohne Probleme auf 4images. Jedoch seitdem ich auf 1.7.8 aktualisiert hatte, kommt leider ein Fehler (siehe Bilder)







Egal wieviele Bilder ich einfüge: Das erste ladet er erfolgreich hoch, beim zweiten schreibt er mir etwas vom "ungültiges Format"!?


Vlt. habt ihr eine Lösung für dieses Problem,
DANKE im Vorraus


Offline Sumale.my

  • Addicted member
  • ******
  • Posts: 1.790
  • I ♥ 4I
    • View Profile
Re: [MOD] multiupload
« Reply #224 on: September 26, 2010, 07:25:04 PM »
Beste Grüße
Sumale.my

 

Post your comments here