Author Topic: 4images 1.7.2 - Feedback  (Read 100659 times)

0 Members and 1 Guest are viewing this topic.

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: 4images 1.7.2 - Feedback
« Reply #45 on: March 06, 2006, 05:43:36 PM »
Why can't you just change them so they look like the design again?
It's really not that hard

Kann mir jemand sagen, was bei folgenden Dateien geändert wurde?
- postcard_create.html
- postcard_preview.html
- bbcode.html
Da ich das 7dana-Template verwende, zerreißt es beim Ersetzen der Dateien das Design.

Kann mir keiner helfen?  :(
Echt keiner?  :(
Schade.. :cry:

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: 4images 1.7.2 - Feedback
« Reply #46 on: March 07, 2006, 10:53:52 AM »
can I change only the new files?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: 4images 1.7.2 - Feedback
« Reply #47 on: March 07, 2006, 02:28:16 PM »
mmm....there are not many "old" files anyways...
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 colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: 4images 1.7.2 - Feedback
« Reply #48 on: March 07, 2006, 03:01:01 PM »
ok what about te template files, shall I change it as well?
I worked a lot on that!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: 4images 1.7.2 - Feedback
« Reply #49 on: March 07, 2006, 03:04:31 PM »
Just look in the docs/Changelog.txt
It will give you an idea which files were changed.
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 RED_LINE

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: 4images 1.7.2 - Feedback
« Reply #50 on: March 07, 2006, 07:55:23 PM »
Hello

it's great job and i hope to get some answer for my problem

i tried to upgrade and all things it is ok but when i upload the new global.php file i can't open my gallery script ( i use mod_rewrite ) .. when i reupload the old file evrythings is ok !!

any answers?

That's All

Best Regards

Offline RED_LINE

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: 4images 1.7.2 - Feedback
« Reply #51 on: March 07, 2006, 08:00:13 PM »
Hello

it's great job and i hope to get some answer for my problem

i tried to upgrade and all things it is ok but when i upload the new global.php file i can't open my gallery script ( i use mod_rewrite ) .. when i reupload the old file evrythings is ok !!

any answers?

That's All


sorry .. the problem sloved :)

the problem was that no English Language folder

Thanx
Best Regards

Offline Moustacy

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: 4images 1.7.2 - Feedback
« Reply #52 on: March 08, 2006, 01:22:32 PM »
Ever since I upgraded picture information resets.

Scenario.

I'm about to upload a picture. I type in the title description and keywords and upload it.

I then press the back button so I can put a different picture and just change the number in the title keeping the same description and keywords but it resets whenever I try to go back so uploading a picture in the same category I have to retype the description and keywords over and over for each picture.

Is there a way to fix this? Does it have to do with sessions?

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
BUG in 4images 1.7.2
« Reply #53 on: March 13, 2006, 03:33:38 PM »
Don't store selected category order when you want to update category.
To resolve this problem in admin/categories.php

change this code:
Code: [Select]
if ($action == "updatecat") {
  $error = array();
  $cat_id = (isset($HTTP_POST_VARS['cat_id'])) ? intval($HTTP_POST_VARS['cat_id']) : intval($HTTP_GET_VARS['cat_id']);

  $cat_parent_id = intval($HTTP_POST_VARS['cat_parent_id']);
  $cat_name = un_htmlspecialchars(trim($HTTP_POST_VARS['cat_name']));
  $cat_description = un_htmlspecialchars(trim($HTTP_POST_VARS['cat_description']));
  $cat_hits = intval(trim($HTTP_POST_VARS['cat_hits']));

  $auth_viewcat = $HTTP_POST_VARS['auth_viewcat'];
  $auth_viewimage = $HTTP_POST_VARS['auth_viewimage'];
  $auth_download = $HTTP_POST_VARS['auth_download'];
  $auth_upload = $HTTP_POST_VARS['auth_upload'];
  $auth_directupload = $HTTP_POST_VARS['auth_directupload'];
  $auth_vote = $HTTP_POST_VARS['auth_vote'];
  $auth_sendpostcard = $HTTP_POST_VARS['auth_sendpostcard'];
  $auth_readcomment = $HTTP_POST_VARS['auth_readcomment'];
  $auth_postcomment = $HTTP_POST_VARS['auth_postcomment'];
  $subcats = (isset($HTTP_POST_VARS['subcats']) && $HTTP_POST_VARS['subcats']) ? 1 : 0;

  $subcat_ids = array();
  get_subcategories_id($cat_id);

  if ($cat_parent_id == $cat_id || in_array($cat_parent_id, $subcat_ids)) {
    $msg .= sprintf("<span class=\"marktext\">%s</span><br />", $lang['parent_cat_error']);
    $error['cat_parent_id'] = 1;
  }
  if ($cat_name == "") {
    $error['cat_name'] = 1;
  }

  if (empty($error)) {
    $sql = "UPDATE ".CATEGORIES_TABLE."
            SET cat_name = '$cat_name', cat_description = '$cat_description', cat_parent_id = $cat_parent_id, cat_hits = $cat_hits, auth_viewcat = $auth_viewcat, auth_viewimage = $auth_viewimage, auth_download = $auth_download, auth_upload = $auth_upload, auth_directupload = $auth_directupload, auth_vote = $auth_vote, auth_sendpostcard = $auth_sendpostcard, auth_readcomment = $auth_readcomment, auth_postcomment = $auth_postcomment
            WHERE cat_id = $cat_id";
    $result = $site_db->query($sql);

    if ($subcats) {
      function get_subcategories_id($cat_id = 0)
      {
        global $subcat_ids, $cat_parent_cache;
     
        if (!isset($cat_parent_cache[$cat_id]))
        {
          return false;
        }
        foreach ($cat_parent_cache[$cat_id] as $key => $val)
        {
          $subcat_ids[] = $val;
          get_subcategories_id($val);
        }
        return $subcat_ids;
      }
      $subcat_ids = array();
      $subcat_ids = get_subcategories_id($cat_id);
      if (!empty($subcat_ids))
      {
        $sql = "UPDATE ".CATEGORIES_TABLE."
                SET auth_viewcat = $auth_viewcat, auth_viewimage = $auth_viewimage, auth_download = $auth_download, auth_upload = $auth_upload, auth_directupload = $auth_directupload, auth_vote = $auth_vote, auth_sendpostcard = $auth_sendpostcard, auth_readcomment = $auth_readcomment, auth_postcomment = $auth_postcomment
                WHERE cat_id IN (".implode($subcat_ids, ",").")";
        $result = $site_db->query($sql);
      }
    }

    $msg = ($result) ? $lang['cat_edit_success'] : $lang['cat_edit_error'];
    $action = "modifycats";
  }
  else {
    $msg .= sprintf("<span class=\"marktext\">%s</span>", $lang['lostfield_error']);
    $action = "editcat";
  }
}

to this:
Code: [Select]
if ($action == "updatecat") {
  $error = array();
  $cat_id = (isset($HTTP_POST_VARS['cat_id'])) ? intval($HTTP_POST_VARS['cat_id']) : intval($HTTP_GET_VARS['cat_id']);

  $cat_parent_id = intval($HTTP_POST_VARS['cat_parent_id']);
  $cat_name = un_htmlspecialchars(trim($HTTP_POST_VARS['cat_name']));
  $cat_description = un_htmlspecialchars(trim($HTTP_POST_VARS['cat_description']));
  $cat_hits = intval(trim($HTTP_POST_VARS['cat_hits']));
  $cat_order = (isset($HTTP_POST_VARS['cat_order'])) ? intval($HTTP_POST_VARS['cat_order']) : 0;

  $auth_viewcat = $HTTP_POST_VARS['auth_viewcat'];
  $auth_viewimage = $HTTP_POST_VARS['auth_viewimage'];
  $auth_download = $HTTP_POST_VARS['auth_download'];
  $auth_upload = $HTTP_POST_VARS['auth_upload'];
  $auth_directupload = $HTTP_POST_VARS['auth_directupload'];
  $auth_vote = $HTTP_POST_VARS['auth_vote'];
  $auth_sendpostcard = $HTTP_POST_VARS['auth_sendpostcard'];
  $auth_readcomment = $HTTP_POST_VARS['auth_readcomment'];
  $auth_postcomment = $HTTP_POST_VARS['auth_postcomment'];
  $subcats = (isset($HTTP_POST_VARS['subcats']) && $HTTP_POST_VARS['subcats']) ? 1 : 0;

  $subcat_ids = array();
  get_subcategories_id($cat_id);

  if ($cat_parent_id == $cat_id || in_array($cat_parent_id, $subcat_ids)) {
    $msg .= sprintf("<span class=\"marktext\">%s</span><br />", $lang['parent_cat_error']);
    $error['cat_parent_id'] = 1;
  }
  if ($cat_name == "") {
    $error['cat_name'] = 1;
  }

  if (empty($error)) {
    if (!$cat_order) {
      $sql = "SELECT cat_order
              FROM ".CATEGORIES_TABLE."
              WHERE cat_parent_id = $cat_parent_id
              ORDER BY cat_order DESC
              LIMIT 1";
      $catorder = $site_db->query_firstrow($sql);
      $cat_order = $catorder['cat_order'] + 10;
      $do_updat_cat_order = 0;
    }
    else {
      $do_updat_cat_order = 1;
    }
    $sql = "UPDATE ".CATEGORIES_TABLE."
            SET cat_name = '$cat_name', cat_order = '$cat_order', cat_description = '$cat_description', cat_parent_id = $cat_parent_id, cat_hits = $cat_hits, auth_viewcat = $auth_viewcat, auth_viewimage = $auth_viewimage, auth_download = $auth_download, auth_upload = $auth_upload, auth_directupload = $auth_directupload, auth_vote = $auth_vote, auth_sendpostcard = $auth_sendpostcard, auth_readcomment = $auth_readcomment, auth_postcomment = $auth_postcomment
            WHERE cat_id = $cat_id";
    $result = $site_db->query($sql);

    if ($do_updat_cat_order) {
        update_cat_order($cat_parent_id);
    }
    if ($subcats) {
      function get_subcategories_id($cat_id = 0)
      {
        global $subcat_ids, $cat_parent_cache;
     
        if (!isset($cat_parent_cache[$cat_id]))
        {
          return false;
        }
        foreach ($cat_parent_cache[$cat_id] as $key => $val)
        {
          $subcat_ids[] = $val;
          get_subcategories_id($val);
        }
        return $subcat_ids;
      }
      $subcat_ids = array();
      $subcat_ids = get_subcategories_id($cat_id);
      if (!empty($subcat_ids))
      {
        $sql = "UPDATE ".CATEGORIES_TABLE."
                SET auth_viewcat = $auth_viewcat, auth_viewimage = $auth_viewimage, auth_download = $auth_download, auth_upload = $auth_upload, auth_directupload = $auth_directupload, auth_vote = $auth_vote, auth_sendpostcard = $auth_sendpostcard, auth_readcomment = $auth_readcomment, auth_postcomment = $auth_postcomment
                WHERE cat_id IN (".implode($subcat_ids, ",").")";
        $result = $site_db->query($sql);
      }
    }

    $msg = ($result) ? $lang['cat_edit_success'] : $lang['cat_edit_error'];
    $action = "modifycats";
  }
  else {
    $msg .= sprintf("<span class=\"marktext\">%s</span>", $lang['lostfield_error']);
    $action = "editcat";
  }
}

Offline Moustacy

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: 4images 1.7.2 - Feedback
« Reply #54 on: March 18, 2006, 06:59:04 AM »
Is there ANYONE that can answer my question?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: 4images 1.7.2 - Feedback
« Reply #55 on: March 18, 2006, 02:33:59 PM »
clear your browser's cache, looks like your browser does not cache pages anymore...its most probably related to your computer and fact that it start happening after the upgrade is pure coincidental...
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 Moustacy

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: 4images 1.7.2 - Feedback
« Reply #56 on: March 25, 2006, 02:12:34 PM »
I've cleared the cache, restarted EVERYTHING this is a new computer. Ever since I upgraded it's happened. I was uploading pictures before I upgraded and it was working fine. That's why I was asking if there was something new in one of the files making the gallery do that.

Offline MIKS

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: 4images 1.7.2 - Feedback
« Reply #57 on: March 26, 2006, 03:02:03 PM »
How to update gallery, if i have installed mods. I don't won't do this again.  :?: Do anyone have update guide in text, like PhpBB (what file, what to update).  :?:

P.S.
Sory for my bad english  :oops:

Offline Kevin Chi

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: 4images 1.7.2 - Feedback
« Reply #58 on: March 29, 2006, 04:26:56 PM »
4Images 1.72 really is an extremely good design, not only has solved my many problems, also lets me simultaneously study the more thorough database utilization, extremely thank the author attentively and diligently.  :D

Offline waleed

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: 4images 1.7.2 - Feedback
« Reply #59 on: April 02, 2006, 02:21:01 AM »
How to update gallery, if i have installed mods. I don't won't do this again.  :?: Do anyone have update guide in text, like PhpBB (what file, what to update).  :?:

P.S.
Sory for my bad english  :oops:

same here  :cry: