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

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

0 Members and 1 Guest are viewing this topic.

Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #90 on: May 27, 2006, 05:34:30 PM »
I fixed the Problem I had to change something in includes/constants
define('SHOW_RANDOM_IMAGE', 1);
define('SHOW_RANDOM_CAT_IMAGE', 0);

to
define('SHOW_RANDOM_IMAGE', 1);
define('SHOW_RANDOM_CAT_IMAGE', 1);

Somehow this happend while updating to 1.7.2

Offline janick

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #91 on: June 01, 2006, 09:32:47 AM »
hi.. if i do this, I canīt  Add new categories?

if i do it so came this error mgs.

Quote
Notice: Undefined variable: cat_image in /usr/home/web/web97959/mysite.com/4images/admin/categories.php on line 522

DB Error: Bad SQL Query: INSERT INTO 4images_categories (cat_name, cat_description, cat_parent_id, cat_order, auth_viewcat, auth_viewimage, auth_download, auth_upload, auth_directupload, auth_vote, auth_sendpostcard, auth_readcomment, auth_postcomment, cat_image) VALUES ('iiiiiiiiiii', '', 0, 220, 0, 0, 2, 2, 9, 0, 0, 0, 2, )
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/web/web97959/mysite.com/4images/admin/categories.php:522) in /usr/home/web/web97959/mysite.com/4images/includes/functions.php on line 47

but if I change (old file) /admin/categories.php  so can i make new categories...
if i change (new file) /admin/categories.php so can I cange Category Image..

any body can help me???

thanks, Janick...

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 #92 on: June 01, 2006, 02:37:29 PM »
made a misstake in step 2, 2.1 or 2.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 ahbut

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #93 on: June 22, 2006, 05:17:28 PM »
sorry, came across a litle problem..

Everything works fine, i can choose and pick the cat image on 'edit catergories' page, but I can't see it on the individual 'edit image' page, theres no 'Category image'shown on that page.
 or do I need to have the 'batch move, edit, delete' mod to get it??

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 #94 on: June 23, 2006, 12:55:17 AM »
do I need to have the 'batch move, edit, delete' mod to get it??
Correct.
Step 6 ;)
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 RamEEz

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #95 on: August 07, 2006, 06:43:19 PM »
I tried everything from A - Z but i still cant see the Category Image when editing the category.
« Last Edit: August 07, 2006, 07:49:14 PM by RamEEz »

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 #96 on: August 07, 2006, 08:24:02 PM »
and image id 389 exists and has thumbnail?
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 RamEEz

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #97 on: August 07, 2006, 08:28:57 PM »
yes and it is working as the category image.

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 #98 on: August 07, 2006, 08:44:42 PM »
This is wierd...and if you replace in admin/categories.php
Code: [Select]
  $cat_image = "";
with:
Code: [Select]
  $cat_image = "blah";
will you see word "blah" next to the cat image field?
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 RamEEz

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #99 on: August 07, 2006, 09:38:22 PM »
i have fixed it 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 #100 on: August 07, 2006, 10:56:19 PM »
In case somebody esle experience this problem, would please tell what was wrong?
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 RamEEz

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #101 on: August 08, 2006, 02:35:03 AM »
Code: [Select]
, cat_imagethis was missing in includes/functions.php

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #102 on: August 11, 2006, 05:07:41 AM »
Hi,
I am using 1.7.3 , i installed this mod with the batch edit mod as V@no adviced,
the mod is working great but not fully...the first method shown by V@no as below does not work

First method:

Go to ACP (Admin Control Panel) -> Edit categories -> edit a cegory.
There u should see a new field where u can manualy enter image ID which u want to use as "Category Image". If any image previously was selected, its ID and thumb with image name should be present there.


It shows me a blank box in Category ID every time , even when i put a img no. it does not show after i save and refresh

Where as I can use the second method (Thanks to V@no for advicing to install the other mod too) ... where i can edit a single image and assign it to be the default categroy image.

I hope this was successful explanation ... :P

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #103 on: August 11, 2006, 05:24:51 AM »
One more error caught just now,

If i add a sub cat to any cat ... it is added no doubt but shows me this error

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

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 #104 on: August 11, 2006, 05:47:37 AM »
You made a misstake in Step 1.
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)