• [MOD] Category Image v1.0.2 4 0 5 1
Currently:  

Author Topic: [MOD] Category Image v1.0.2  (Read 379331 times)

0 Members and 1 Guest are viewing this topic.

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #105 on: August 12, 2006, 10:11:15 PM »
No, V@no,
               I checked my global.php , the change of adding ,cat_image is perfectly done..I think its something else hindering.


Pls. Help

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: [MOD] Category Image v1.0.2
« Reply #106 on: August 12, 2006, 10:42:58 PM »
maybe its done in a wrong place?
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 sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #107 on: August 13, 2006, 12:17:18 AM »
maybe its done in a wrong place?
V@no thanks for taking time in correcting this : but the problem still persist

Notice: Undefined index: cat_image in C:\wamp\www\impgal\4images1.7.3\4images\admin\categories.php on line 499

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\impgal\4images1.7.3\4images\admin\categories.php:499) in C:\wamp\www\impgal\4images1.7.3\4images\includes\functions.php on line 114

 
whenever i try to add a sub category the above error is shown i think its a little bug :  :wink:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

and secondly i cannot see any digit in category image box ...

i am attaching my global.php

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: [MOD] Category Image v1.0.2
« Reply #108 on: August 13, 2006, 02:07:07 AM »
please show what is on line 499 (include 10 lines above and below it)
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 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: [MOD] Category Image v1.0.2
« Reply #109 on: August 13, 2006, 02:09:41 AM »
Ok, I "think" I fixed it...redo step 2
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 sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #110 on: August 13, 2006, 03:25:24 AM »
You are a Genius again V@no! :P
No words!!!

Working perfect (with ver 1.7.3)... both the errors are gone!  :P

Thank you very much

Offline slipxnot

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #111 on: August 14, 2006, 02:13:07 PM »
Then try insert in categories.php  below
Code: [Select]
$random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" : get_random_image($cat_id);
This block:
Code: [Select]
$cat_image = "";
if ($cat_cache[$cat_id]['cat_image'])
{
  $sql = "SELECT image_id, image_media_file, image_thumb_file, cat_id
          FROM ".IMAGES_TABLE."
          WHERE image_id = ".$cat_cache[$cat_id]['cat_image'];
  if ($image_row = $site_db->query_firstrow($sql))
  {
    if (!get_file_path($image_row['image_thumb_file'], "thumb", $image_row['cat_id'], 0, 0))
    {
      $cat_image = ICON_PATH."/".get_file_extension($image_row['image_media_file']).".gif";
    }
    else
    {
      $cat_image = get_file_path($image_row['image_thumb_file'], "thumb", $image_row['cat_id'], 0, 1);
    }
  }
}
$site_template->register_vars("cat_image", $cat_image);

i cant get this to work i removed {if cat_image} {endif cat_image} and keept <img src="{cat_image}"> but i get the link of the image to my index page

Offline ralphlei

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #112 on: August 22, 2006, 10:20:36 AM »
Err...maybe I am too stupid to install it... :(

I have installed the mod and it works perfect. However for the 2nd method
Quote
Second method:

Do Step 6
Then got to ACP -> Edit images -> find an image -> edit.
In the single image edit screen (not the group image edit!) at the bottom, u sould see a new option "Category Image (yes/no)" simply select "yes" to set that image as "Category Image".
Also if any image was previousle set as "Category Image" u should see its thumbnail and image name.

I couldn't find the new option "Category Image (yes/no)"...I have checked many times but I still couldn't find where I missed...

Please help me...Thanks!

Offline konstal102na

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #113 on: September 22, 2006, 05:48:28 PM »
Hi i have problem with my galeery. I chcange all lines, and when I go to edit categories i see something like this:

http://pc.vsv.pl/error.jpg

Error is line 571.

Line 571:
http://pc.vsv.pl/categories.jpg

HELP!!!!

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: [MOD] Category Image v1.0.2
« Reply #114 on: September 22, 2006, 10:32:15 PM »
strange, I dont see anything wrong on that line...what if you restore backups and try again and make sure you upload .php files in ASCII mode not BINARY
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 neuroticvixen

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #115 on: September 23, 2006, 02:45:12 AM »
V@no ... I'd like to give this mod a shot but I was wondering if you could attach the file:

http://gallery.vano.org/file60dl

I searched the thread and didn't see it attached anywhere and your site is down.
Thanks!

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: [MOD] Category Image v1.0.2
« Reply #116 on: September 23, 2006, 02:53:41 AM »
done
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 neuroticvixen

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #117 on: September 23, 2006, 03:33:56 AM »
Thanks V@no. I have run into a problem though. I have version 1.7.3 and when I try to find the code in step 2.2 I can't find it. Any ideas?

Offline Loop

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #118 on: September 27, 2006, 03:06:39 PM »
@ Vano: I looking forward to try the Category Image MOD but i need the file which is down on http://gallery.vano.org/file60dl

EDIT:

so I have open my eyes completely and found the file  :wink:
« Last Edit: September 29, 2006, 01:02:32 PM by Loop »

Offline whitesun

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #119 on: October 03, 2006, 02:48:41 AM »
Huuummmm.... and where you find it?? 8O I cant see it :(!! If is possible to email me the database update, is gonna be really appreciate!!

Thanks
WhiteSun
p.s.: Sorry for my rrreally bad english :P