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 - thunderstrike

Pages: 1 2 [3] 4 5 6 7 ... 190
31
Mods & Plugins (Requests & Discussions) / Re: Paginated images list page
« on: February 28, 2008, 03:13:51 AM »
With universal paging class from V@no, is possible. ;)

http://www.4homepages.de/forum/index.php?topic=6926.0

Note: No need for mySQL connection with universal paging class in 4images.

32
Hum ... yes ... is possible ... but where in template you like use this tag ?

33
Discussion & Troubleshooting / Re: Optional upload and default image
« on: February 28, 2008, 03:09:38 AM »
Is no possible after this change for see same error. Check if file is save before upload to server. parse_template method is code with template extension in constructor. Is no possible for get same error after fix.

34
Mods & Plugins (Requests & Discussions) / Re: Multiple image deletions
« on: February 28, 2008, 03:06:35 AM »
If need create new page for lightbox ... try 'Recycle bin' MOD from V@no.

35
Mods & Plugins (Requests & Discussions) / Re: Profil erweitern
« on: February 27, 2008, 08:27:37 PM »
Ah ! very good.

36
Discussion & Troubleshooting / Re: Optional upload and default image
« on: February 27, 2008, 08:26:40 PM »
Right.

After all change - replace:

Code: [Select]
$media = $site_template->parse_template("media/gif.html");

for:

Code: [Select]
$media = $site_template->parse_template("media/gif");

;)

37
Mods & Plugins (Requests & Discussions) / Re: Profil erweitern
« on: February 27, 2008, 07:47:46 PM »
If check this: http://www.4homepages.de/forum/index.php?topic=19297.0

No need for add manual additional image fields or additional user fields in details . . .
With this, is possible for use signature in template after add in includes/db_field_definitions.php file (same for lang tag).

38
Discussion & Troubleshooting / Re: Optional upload and default image
« on: February 27, 2008, 07:33:26 PM »
I post patch. Try now (fresh upload).

39
Discussion & Troubleshooting / Re: Optional upload and default image
« on: February 27, 2008, 06:43:58 PM »
In 4images, if media image or thumb image is no detect, this is default icon image: 404.gif in templates/your_template/icons folder.

In member.php file,

find:

Code: [Select]
if ((empty($HTTP_POST_FILES['media_file']['tmp_name']) || $HTTP_POST_FILES['media_file']['tmp_name'] == "none") && ($remote_media_file == "" || !check_remote_media($remote_media_file))) {
    $error = 1;
    $msg .= (($msg != "") ? "<br />" : "").$lang['image_file_required'];
  }

replace:

Code: [Select]
$valid = true;
if ((empty($HTTP_POST_FILES['media_file']['tmp_name']) || $HTTP_POST_FILES['media_file']['tmp_name'] == "none") && ($remote_media_file == "" || !check_remote_media($remote_media_file))) {
    $valid = false;
}

find:

Code: [Select]
// Upload Media file
    if (!empty($HTTP_POST_FILES['media_file']['tmp_name']) && $HTTP_POST_FILES['media_file']['tmp_name'] != "none") {
      $new_name = $site_upload->upload_file("media_file", "media", $upload_cat);
      if (!$new_name) {
        $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['file_upload_error'].": ".$new_name."</b><br />".$site_upload->get_upload_errors();
        $uploaderror = 1;
      }
    } else {
      $new_name = $remote_media_file;
    }

replace:

Code: [Select]
// Upload Media file
    if (!empty($HTTP_POST_FILES['media_file']['tmp_name']) && $HTTP_POST_FILES['media_file']['tmp_name'] != "none") {
      $new_name = $site_upload->upload_file("media_file", "media", $upload_cat);
      if (!$new_name) {
        $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['file_upload_error'].": ".$new_name."</b><br />".$site_upload->get_upload_errors();
        $uploaderror = 1;
      }

    } elseif ($valid == false) {
    $new_name = "";

    } else {
      $new_name = $remote_media_file;
    }

find:

Code: [Select]
// Uplad thumb file
    $new_thumb_name = "";
    if (!empty($HTTP_POST_FILES['thumb_file']['tmp_name']) && $HTTP_POST_FILES['thumb_file']['tmp_name'] != "none" && !$uploaderror) {
      $new_thumb_name = $site_upload->upload_file("thumb_file", "thumb", $upload_cat, get_basefile($new_name));
      if (!$new_thumb_name) {
        $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['thumb_upload_error'].": ".$new_thumb_name."</b><br />".$site_upload->get_upload_errors();
        @unlink(MEDIA_TEMP_PATH."/".$new_name);
        $uploaderror = 1;
      }
    }
    elseif (check_remote_thumb($remote_thumb_file)) {
      $new_thumb_name = $remote_thumb_file;
    }

replace:

Code: [Select]
// Uplad thumb file
    $new_thumb_name = "";
    if (!empty($HTTP_POST_FILES['thumb_file']['tmp_name']) && $HTTP_POST_FILES['thumb_file']['tmp_name'] != "none" && !$uploaderror) {
      $new_thumb_name = $site_upload->upload_file("thumb_file", "thumb", $upload_cat, get_basefile($new_name));
      if (!$new_thumb_name) {
        $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['thumb_upload_error'].": ".$new_thumb_name."</b><br />".$site_upload->get_upload_errors();
        @unlink(MEDIA_TEMP_PATH."/".$new_name);
        $uploaderror = 1;
      }
    }
    elseif (check_remote_thumb($remote_thumb_file)) {
      $new_thumb_name = $remote_thumb_file;

    } elseif ($valid == false) {
      $new_thumb_name = "";
    }

find:

Code: [Select]
if ($do_create) {

replace:

Code: [Select]
if ($do_create && $valid) {

find:

Code: [Select]
"file_name" => $new_name,

replace:

Code: [Select]
"file_name" => (isset($new_name) && isset($valid) && $valid) ? $new_name : ICON_PATH . "/404.gif",

find:

Code: [Select]
$file_extension = get_file_extension($new_name);

add before:

Code: [Select]
if ($valid) {

find:

Code: [Select]
$content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$media."\n</td>\n</tr>\n</table>\n";

add after:

Code: [Select]
} else {
      $file = ICON_PATH . "/404.gif";
      $media_icon = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" />";
      $site_template->register_vars(array(
        "media_src" => $file,
        "media_icon" => $media_icon,
        "image_name" => format_text(stripslashes($image_name)),
        "width_height" => $width_height
      ));
      $media = $site_template->parse_template("media/gif");
      $content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$media."\n</td>\n</tr>\n</table>\n";
}

40
Discussion & Troubleshooting / Re: Optional upload and default image
« on: February 27, 2008, 05:50:14 PM »
And ... what is default image and where is 4images is get default image for FTP folder ?

41
Discussion & Troubleshooting / Re: Optional upload and default image
« on: February 27, 2008, 04:19:49 PM »
Upload to their own image ... I no get this ... you mean ... members upload category ? If so ... is here: http://www.4homepages.de/forum/index.php?topic=18564.0

42
Mods & Plugins (Requests & Discussions) / Re: Multiple image deletions
« on: February 27, 2008, 04:14:03 PM »
Quote
With a mod like this you can just go through the categories when the user has pic, select all pic that wants to delete and go to a single place to delete them all at once.

Ah ! - now is clear (and no ... is very small MOD).

Quote
I installed the multiupload mod and it works great.

Which one ?

Ok - I create.

// Step 1

In index.php file,

find:

Code: [Select]
$new_images .= "</table>\n";

add after:

Code: [Select]
if (!empty($user_info['lightbox_image_ids'])) {
      $new_images .= "<script language=\"JavaScript\">\n";
      $new_images .= "function clearlightbox() {\n";
      $new_images .= "if (confirm('" . $lang['delete_lightbox_confirm'] . "')) {\n";
      $new_images .= "location.href = \"" . $site_sess->url(ROOT_PATH . "lightbox.php?action=clearlightbox") . "\"\n";
      $new_images .= "}\n";
      $new_images .= "}\n";
      $new_images .= "</script>\n";     
      $new_images .= "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n<tr class=\"imagerow1\">\n<td align=\"center\" width=\"" . $imgtable_width . "\">\n";     
      $new_images .= "<a href=\"javascript:clearlightbox()\"><b>" . $lang['delete_lightbox'] . "</b></a>\n";
      $new_images .= "</td>\n";
      $new_images .= "</tr>\n";
      $new_images .= "</table>\n";     
  }

// Step 2

In categories.php file,

find:

Code: [Select]
$thumbnails .= "</table>\n";

add after:

Code: [Select]
if (!empty($user_info['lightbox_image_ids'])) {
      $thumbnails .= "<script language=\"JavaScript\">\n";
      $thumbnails .= "function clearlightbox() {\n";
      $thumbnails .= "if (confirm('" . $lang['delete_lightbox_confirm'] . "')) {\n";
      $thumbnails .= "location.href = \"" . $site_sess->url(ROOT_PATH . "lightbox.php?action=clearlightbox") . "\"\n";
      $thumbnails .= "}\n";
      $thumbnails .= "}\n";
      $thumbnails .= "</script>\n";     
      $thumbnails .= "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n<tr class=\"imagerow1\">\n<td align=\"center\" width=\"" . $imgtable_width . "\">\n";     
      $thumbnails .= "<a href=\"javascript:clearlightbox()\"><b>" . $lang['delete_lightbox'] . "</b></a>\n";
      $thumbnails .= "</td>\n";
      $thumbnails .= "</tr>\n";
      $thumbnails .= "</table>\n";     
  }

// Step 3

In search.php file,

find:

Code: [Select]
$thumbnails .= "</table>\n";

add after:

Code: [Select]
if (!empty($user_info['lightbox_image_ids'])) {
      $thumbnails .= "<script language=\"JavaScript\">\n";
      $thumbnails .= "function clearlightbox() {\n";
      $thumbnails .= "if (confirm('" . $lang['delete_lightbox_confirm'] . "')) {\n";
      $thumbnails .= "location.href = \"" . $site_sess->url(ROOT_PATH . "lightbox.php?action=clearlightbox") . "\"\n";
      $thumbnails .= "}\n";
      $thumbnails .= "}\n";
      $thumbnails .= "</script>\n";     
      $thumbnails .= "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n<tr class=\"imagerow1\">\n<td align=\"center\" width=\"" . $imgtable_width . "\">\n";     
      $thumbnails .= "<a href=\"javascript:clearlightbox()\"><b>" . $lang['delete_lightbox'] . "</b></a>\n";
      $thumbnails .= "</td>\n";
      $thumbnails .= "</tr>\n";
      $thumbnails .= "</table>\n";     
  }

Finish.

43
Now that MOD is work right ... is possible move this to release ?

44
Mods & Plugins (Requests & Discussions) / Re: Profil erweitern
« on: February 27, 2008, 02:11:29 PM »
This line is need edit in 1st post ...

Pages: 1 2 [3] 4 5 6 7 ... 190