Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rroc

Pages: [1] 2
1
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: September 19, 2005, 09:35:31 PM »
wiitanen:
I beieve some otherprnha iilarproblemsith the annotation mod... You need to change all the added

require() -commands
to
require_once()

...and
include()
to
include_once()

That should fix your problems... sorry for the late reply. I have now some other projects.... :)

ruudvroon
Could you PM me the member.php file... or as much as you can fit to PM of it?


2
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: September 19, 2005, 04:35:25 PM »
unfortunately the way the HTML 'browse' -button works allows one to select only a single file at a time.

3
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: September 11, 2005, 10:08:27 PM »
ctforums:
Hi, you have done everything ok... That's just the way I created the MOD. So, if you wanted to write the description only once it can be used on all uploaded files... If you don't like the feature change this:

Code: [Select]
    // MULTIDESCRIPTION
    //If only one description has been provided use it, otherwise read the POSTed value
$image_description = ($image_description!="" && empty($HTTP_POST_VARS['image_description'.$fileext]))?$image_description:un_htmlspecialchars(trim($HTTP_POST_VARS['image_description'.$fileext]));

TO:
Code: [Select]
    // MULTIDESCRIPTION
    //read the POSTed description
$image_description = un_htmlspecialchars(trim($HTTP_POST_VARS['image_description'.$fileext]));

4
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: August 08, 2005, 07:39:43 AM »
Karlyn:
For not seeing the multiupload button, there must be something wrong with one of the steps 1-4... The place where you should have FTP'd your 'multiupload' images is something like: <your 4images dir>/templates/<your current template in use>/images/... if that is all correct, go to any of your categories, and in your browser(atleast in Firefox): View/Page source, look throught the html, and you should see something similar to this:
Code: [Select]
<a href="./member.php?action=multiuploadform&amp;cat_id=12&amp;sessionid=8af86c0a4b70e53b8b9b065715761869"><img src="./templates/mytemplate/images/multiupload.gif" border="0" alt="Upload Multiple files" /></a>
if there isn't, there is something wrong with the steps 1-4 for sure. if there is that but you still will not see a thing, you have put the images in to a wrong directory. Oh... and remember to press Ctrl+F5 to really reload the page from server and not from your browser cache.

Did it help?

5
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: August 03, 2005, 03:33:01 PM »
diater:
you also have the version 1.7 of the 4 images. This mod was meant for the newest 1.7.1 mod... For my 1.7.1 the naming seems to work as well.

6
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: August 03, 2005, 09:31:27 AM »
BATman40:
first of all, I think you have forgotten one parenthesis somewhere above the line 700... If you cannot fid the place send me the member file to "porkkanamies @ yahoo com".

Secondly, I meant by using current locals that you should add the texts to language files, instead of writing them directly to the html, as I did. ...and so you'll have to translate the html text to your current forum language. If you use english, and I didn't have too many typos you should do fine.

7
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: August 01, 2005, 01:03:47 PM »
winterl:

You have the 4images version 1.7, NOT the 1.7.1... As I don't have the old version installed, it is not possible for me to help you in detail.

The files you refer to are not related to this MOD directly. However, if you did copy the member.php, instead of just adding the changes, I think it could corrupt your system. I believe it is possible that you cannot mix files as you want between 4images 1.7.1 and 1.7...

So what I would suggest you to do is that you would update to 4images 1.7.1, and after that start installing the MODs...

8
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: August 01, 2005, 11:53:56 AM »
Jan Senf:
I could not see anything why it wouldn't work. I guess I'll try that MOD myself...

I suppose you changed in your member.php
Code: [Select]
require(ROOT_PATH.'includes/annotate.php');
...to:
Code: [Select]
require_once(ROOT_PATH.'includes/annotate.php');
...I'm not sure it makes any difference though.

diater:
would you like to send me your html file, and the member.php ?

9
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: July 31, 2005, 11:09:02 PM »
winterl:
I'm sorry that I cannot write German(I did undestand your problem however)... Your problem doesn't seem to be related to the multiupload MOD, on my test site where there is nothing more running than this addon, the admin panel seems to work correctly. Could it be that you have made somekind of typing error, when copying stuff to categories.php? Did you download the file and used that, or did you make the changes by yourself? If you can send me the files you have modified, I could investigate your problem further.

Jan Senf:
Annotation mod? hmm... If this is the mod you refer to, I think that problem has been fixed in the current version of the MOD(since July 27)... Or when did you get the MOD?

diater:
do you still have the problem with all names being the same?... Your second posting seems to imply that it works correctly? The MOD should work that way, that if you only enter one name it is used for all, and if there are no names it gives the error. If you would like to FORCE the users to enter each name, you have to

1. REPLACE the line you added before:
Code: [Select]
$image_name = ($image_name!="" && empty($HTTP_POST_VARS['image_name'.$fileext]))?$image_name:un_htmlspecialchars(trim($HTTP_POST_VARS['image_name'.$fileext]));
2. BY:
Code: [Select]
if (empty($HTTP_POST_VARS['image_name'.$fileext])) 
    {
    $error = 1;
    $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU",
                        str_replace(":", "", $lang['image_name']), $lang['field_required']);
    $msg .= (($msg != "") ? "<br />" : "").$field_error;
    $action = "uploadform";
    $sendprocess = 1;
    break;
    }
else
    {
    $image_name = un_htmlspecialchars(trim($HTTP_POST_VARS['image_name'.$fileext]));
    }
...I think that should do the trick.

10
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: July 29, 2005, 01:00:41 AM »
ctforums:
LOL! ... and finally after this issue, you would probably ask if it is possible to add multiple items for keywords as well... Hehee. The idea was to ease the upload process by not having to enter all the information one by one...

Well, if you truly desire, that should be possible in almost the exact same way than the description mod above...

1. ADD the needed fields to a place you desire in the MEMBER_MULTIUPLOADFORM.HTML i.e.
Code: [Select]
<input type="text" name="image_name"  size="30" value="{image_name}" class="input" />
<input type="text" name="image_name2"  size="30" value="{image_name}" class="input" />
<input type="text" name="image_name3"  size="30" value="{image_name}" class="input" />
<input type="text" name="image_name4"  size="30" value="{image_name}" class="input" />
<input type="text" name="image_name5"  size="30" value="{image_name}" class="input" />


2. In MEMBER.PHP, Add this line after the lines that were added before

FIND the following section:
Code: [Select]
// MULTIDESCRIPTION
//If only one description has been provided use it, otherwise read the POSTed value
$image_description = ($image_description!="" && empty($HTTP_POST_VARS['image_description'.$fileext]))?$image_description:un_htmlspecialchars(trim($HTTP_POST_VARS['image_description'.$fileext]));

ADD BELOW that:
Code: [Select]
//If only one name has been provided use it, otherwise read the POSTed value
$image_name = ($image_name!="" && empty($HTTP_POST_VARS['image_name'.$fileext]))?$image_name:un_htmlspecialchars(trim($HTTP_POST_VARS['image_name'.$fileext]));


3. If you don't want those numbers after the names you should replace the next line...(it was added in the original mod)

REPLACE this:
Code: [Select]
$imgname = ($fileext!="")?"$image_name $fileext":$image_name;
BY this:
Code: [Select]
$imgname = $image_name;
...I didn't care to test it, as I don't know where to insert all those text fields in my html layout, hehee. But it should work... if you have problems just ask.

BUT I WILL NOT do the multi keyword thing!!!  :wink:

11
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: July 27, 2005, 08:56:32 PM »
maziggy, ctforums:
Here you go... I created the extension to the original mod. (be sure to use the latest version...).
(The modified member.php is included below, if you use beyondcompare...)

[MOD] multiupload + descriptions

1. Apply the original mod...

2. Do the two changes in members.php:

2.1.1 difficult to explain... but
FIND
Code: [Select]
if ($action == "uploadimage" || $action=="multiuploadimage") {

2.1.2 ...leave it be, and find the next text below and replace it as described
(make sure it is this, because it exist in other place in the file as well)

REPLACE:
Code: [Select]
$image_description = un_htmlspecialchars(trim($HTTP_POST_VARS['image_description']));

BY:
Code: [Select]
  $image_description = "";
//  $image_description = un_htmlspecialchars(trim($HTTP_POST_VARS['image_description'])); --> MOVED TO MULTIDESCRIPTION

2.2 Final part for member.php:
This implements functionality that if only the first description is given it will be used for the all items.
FIND:
Code: [Select]
while(isset($HTTP_POST_FILES['media_file'.$fileext]))
{

ADD BELOW THAT:
Code: [Select]
    // MULTIDESCRIPTION
    //If only one description has been provided use it, otherwise read the POSTed value
$image_description = ($image_description!="" && empty($HTTP_POST_VARS['image_description'.$fileext]))?$image_description:un_htmlspecialchars(trim($HTTP_POST_VARS['image_description'.$fileext]));

3. html update
Replace the old member_multiuploadform.html with the new one, which is provided below. There were added the description fields.


All should be working now. I provided also the member.php, to ease up by using beyondcompare or similar tool. (it contains both the original mod and the description addon)

12
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: July 27, 2005, 02:47:01 PM »
zellenblog:
Hmm. looks weird. (Especially when I'm not so great in german : ) ) And you have integrated from the member.txt I had added in my previous post?(I didn't have the time to change the installation instructions yet... I'll do it later today) I'll look into this... It would be nice to have a look at your member.php, maybe you could PM it to me?

HUNTER:
yes, that would be nice addition to be able to post several images to one item... But I think that would break many other mods, such as slideshow... But I think it could be done in a way that would be almost the same: by giving the users the possibility to create Categories, and for each category having it's own comment board.

13
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: July 26, 2005, 10:14:58 AM »
Ok... thanks for pointing out. It seemed to me that some people were had this already running. But I think they had it running in the 'wrong' way, as they had some unnecessary stuff on the memper.php file. I created a new test gallery for myself, where I was able to isolate this upload mod only.

So here is the member.php file with ONLY the multiupload changes. It should be easy to integrate from here to your systems. I'll modify the installation instructions as well...

14
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: June 23, 2005, 05:35:16 PM »
Hmmmmm! I did compare the files, and there was one difference that I didnt document... again(!!!)... Unfortunately it does not affect you in any way... It only makes the image names different...  :cry:

REPLACE:
Code: [Select]
      if ($direct_upload) {
        $sql = "INSERT INTO ".IMAGES_TABLE."
                (cat_id, user_id, image_name, image_description, image_keywords, image_date, image_active, image_media_file, image_thumb_file, image_download_url, image_allow_comments".$additional_field_sql.")
                VALUES
                ($cat_id, ".$user_info['user_id'].", '$image_name', '$image_description', '$image_keywords', $current_time, $image_active, '$new_name', '$new_thumb_name', '$image_download_url', $image_allow_comments".$additional_value_sql.")";

BY:
Code: [Select]
  $imgname = ($fileext!="")?"$image_name $fileext":$image_name;
  if ($direct_upload) {
$sql = "INSERT INTO ".IMAGES_TABLE."
(cat_id, user_id, image_name, image_description, image_keywords, image_date, image_active, image_media_file, image_thumb_file, image_download_url, image_allow_comments".$additional_field_sql.")
VALUES
($cat_id, ".$user_info['user_id'].", '$imgname', '$image_description', '$image_keywords', $current_time, $image_active, '$new_name', '$new_thumb_name', '$image_download_url', $image_allow_comments".$additional_value_sql.")";

I'm not sure about the possibility of conflict with the "Image Annotation MOD", you are using? I don't have that... Another thing is what I have done, is that I don't use those remote upload files at all. (I have commented thos away as well)

When I'll have the time, I'll have to install a clean 4images just for the mod development purposes... It's a bit difficult to see things when there are many overlapping MODs.

I will include my member.html, though it has some code for my MOD for EXIF and automatic rotation... But it could be of help to see the differences in that whole critical uploading section beginning from:

"if ($action == "uploadimage" || $action=="multiuploadimage") {"


So you still have the same problem, that the first image is uploaded correctly, but the second one, etc ain't?  I had this when I was developing this as well... And atleast one time I had to log off the current section, and to try again... MAybe it stores some of the data into cache... But some problem there seems to be anyhow.  :?

I'll get back to it, now I have a vacation... and I'll be away for a while...

[Modified] 26.7. removed the attachment, as it had way too much in there. The correct version is attached in the main mail.

15
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: June 23, 2005, 04:26:28 PM »
blackbeatclub, thanks for testing this out... I still had some copy-paste errers... to fix, take a look at the last line of II.2.1, and also do the new II 2.2. ... Now, it should work.

maziggy, I thought of that, but for my purposes this is better... as I can easily add many photos without having to type the description and the name for each of them separately. I can just say that holiday in China, and if there is some special picture, I can comment it later in more detail.

However, it is fairly easy to do that if you need it...

[27 July 2005] EXPLANATION in my newest post.

Pages: [1] 2