• [MOD] multiupload 5 0 5 1
Currently:  

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

0 Members and 1 Guest are viewing this topic.

Offline firblazer

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] multiupload
« Reply #150 on: August 11, 2007, 06:21:57 AM »
[MOD] MultiUpload
- This mod enables the users to add multiple files to a category at once.
- The images will get name and index, ie. "My pet", "My pet 2", "My pet 3",...
- for 4images 1.7.1

The best way to install this is to use the provided files, which give the changes compared to original installation of 4 images.

FILES
Files to be modified: (please take a backup copy of all of these!)
-categories.php  //settings
-categories.html  //To access the new action
-member.php //functionality (ie. looping the default upload method as long as required)

New files:
-member_multiuploadform.html //this is a simplified template for the multiupload
-two buttons... multiupload.gif, and multiupload_off.gif, I attached some as samples.

*NEW* I have included the clean versions of all these files to this post. They contain nothing more than the multiupload mod, it should be easy to integrate from there.


Recommended/required MODS
-auto thumbnailer and auto resizer MODs are highly recommended
-I also use my own EXIF reader and autorotate(according to the EXIF) MODs... these are yet to be released...


Hi! I'm trying to install the mod but I found two categories.php files: one in the root directory and another in the 'includes' directory. Which one should I change?
I am also unable to find categories.html. Which directory is it in? Is the mod applicable to version 1.7.4?

Thanks for your help.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] multiupload
« Reply #151 on: August 11, 2007, 06:42:38 AM »
Quote
Template Error: Couldn't open Template ./templates/default/member_multiuploadform.html

Upload member_multiuploadform.html in templates/your_template folder. File missing.

Quote
I am also unable to find categories.html. Which directory is it in?

templates/your_template folder.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline sowtrig

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] multiupload
« Reply #152 on: August 18, 2007, 09:37:51 AM »
very very thx ,

very usefull MOD

thx a lot

Offline bensen

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] multiupload
« Reply #153 on: October 05, 2007, 12:22:06 AM »
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id = 3 AND c.cat_id = i.cat_id ORDER BY image_date DESC LIMIT 0, 9
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/web14/web/gallery/includes/db_mysql.php on line 116

warum is das so? hab die dateien aus dem ersten post runtergeladen und durch die originalfiles ersetzt? hab 1.4.7!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] multiupload
« Reply #154 on: October 05, 2007, 12:36:49 AM »
@bensen:

Welcome to 4homepages forum

Here:

http://www.4homepages.de/forum/index.php?topic=18780.0
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline bensen

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] multiupload
« Reply #155 on: October 05, 2007, 01:22:21 AM »
already doenst work

where do i have to upload the hole files?

the categories.php also in den admin folder? the html files in the template one?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] multiupload
« Reply #156 on: October 05, 2007, 01:23:26 AM »
Quote
already doenst work

Please read step 6 of my signature,
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline bensen

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] multiupload
« Reply #157 on: October 05, 2007, 01:29:28 AM »
PHP Version 5.2.0-8+etch7

mysql Client API version    5.0.32

4images Version: 1.7.4

Code: [Select]
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id = 3 AND c.cat_id = i.cat_id ORDER BY image_date DESC LIMIT 0, 9
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/web14/web/gallery/includes/db_mysql.php on line 116

so umständlich zig files editieren je nach mysql version etc... einige files haben bereits die richtig mysql 5er query methode andere net

es steht nirgends ob nur die eine categories.php ersetzt werden soll. gäbs eine EINDEUTIGE, VERSTÄNDLICHE Anleitung gäbs net soviele support anfragen.

eine zip mit integriertem ordnerbaum wär schon mal ein anfang.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] multiupload
« Reply #158 on: October 05, 2007, 01:43:56 AM »
Quote
SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active,

1 - You check in index.php and details.php file ?
2 - You use a MOD for use this line ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline bensen

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] multiupload
« Reply #159 on: October 05, 2007, 01:46:29 AM »
the only mod is/was multiupload and the required auto thumbnailer

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] multiupload
« Reply #160 on: October 05, 2007, 01:51:30 AM »
Please post attach file of index.php and details.php file. I check . . .
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline bensen

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] multiupload
« Reply #161 on: October 05, 2007, 06:20:38 PM »
why the index?! i dont have to edit the index!

Code: [Select]
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id = 1 AND c.cat_id = i.cat_id ORDER BY image_date DESC LIMIT 0, 9
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/web14/web/gallery/includes/db_mysql.php on line 116

Offline bensen

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] multiupload
« Reply #162 on: October 05, 2007, 06:23:27 PM »
and while uploading i got this error msg

Code: [Select]
Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 10080 is not allowed to access /var/www/web14/web/gallery/data/media/1 owned by uid 33 in /var/www/web14/web/gallery/includes/upload.php on line 113
every folder has 777

safe mode off required?

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [MOD] multiupload
« Reply #163 on: October 05, 2007, 06:23:32 PM »
Hi bensen,

you have problem with MySQL 5.0.x

Look here:
http://www.4homepages.de/forum/index.php?topic=10184.15


#################### EDIT ##########################
And also with SAFE MODE
safe mode off is required
Search about SAFE MODE in this forum



Kurt
« Last Edit: October 05, 2007, 07:35:33 PM by KurtW »

Offline anicol

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [MOD] multiupload
« Reply #164 on: October 05, 2007, 06:54:20 PM »
Mine is off
I just did this mod 3 days ago