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

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

0 Members and 1 Guest are viewing this topic.

Offline sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: [MOD] Category Image v1.0.2
« Reply #150 on: May 21, 2007, 03:04:16 AM »
woohoo got it to work. I took the instructions too literally. got the [/qoute] into my code. someone should fix that on the front page.

aaaanyways. I got a little tweak request if anyone can help me.

I installed this mode thinking it would allow me to specifydifferent folder icons for each category. Which it does in a way but now that I have it installed Im wondering if i could use it a different way. First I tweaked the functions.php code with AcidGod's little tweak..

Quote
    $cat_image = "";
      if ($cat_cache[$category_id]['cat_image'])
      {
         $sql = "SELECT image_id, image_media_file, image_thumb_file, cat_id
              FROM ".IMAGES_TABLE."
              WHERE image_id = ".$cat_cache[$category_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);
            }
         }
      }else {
         $cat_image = TEMPLATE_PATH."/images/folder.png";
      }
      $site_template->register_vars("cat_image", $cat_image);

Now that I have that I would like the ability to set the image size for those categories that do have a Cat Image ID. Would work well in subcategories. Anyone care to take a try? Also going back to my orginal idea of different folder icons for each category. How can I do this, Insted of assigning a Image ID is there a way to specify a URL pointing to a certain icon in my templates directory?

requests..

1. Set a different Category Image size for those categories that have a Cat Image ID set.
2. Insted of Image ID, can I use URL or dropdown box with a list of Folder ICONS i can use.


Offline Scarlett

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #151 on: June 06, 2007, 08:33:48 AM »
is there a fix on this available for 1.7.4?  it seems that no matter what i do to install this, i still get an error when i try to run catimage_install.php.  keeps on saying there is an error in table creation ALTER TABLE `4images_categories` ADD `cat_image` MEDIUMINT( 8 ) NOT NULL

Offline holas

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #152 on: June 25, 2007, 11:46:54 PM »
How can I see the second method to show a image in category?

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 don't see these optión and I don't see the id image. Can I modify admin/images.php?, how?. Thank you.

Offline Peppino

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #153 on: July 10, 2007, 05:41:25 PM »
Hello!

Can i have the catimage_install.php from someone, or post the code here pls.

Kann mir jemand die catimage_install.php schicken oder den Inhalt hier posten.


Danke
Gruß Marcus

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #154 on: July 10, 2007, 06:33:45 PM »
@Peppino
... und warum nimst du nicht die catimage_install.zip, die im ersten Post von V@no (am Ende) zum Download angeboten wird ... ?
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Peppino

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #155 on: July 10, 2007, 06:36:17 PM »
lol danke. hab ich garnicht gesehen. :)
Gruß Marcus

Offline orb4

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #156 on: August 15, 2007, 04:27:01 PM »
Hi,  :)

I would like to know if these "category images" could show the last posted image (for each category) instead of being static/'manual' images??
You know what I mean?

Thank you.

Offline orb4

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #157 on: August 16, 2007, 08:11:38 PM »
Hi,  :)

I would like to know if these "category images" could show the last posted image (for each category) instead of being static/'manual' images??
You know what I mean?

Thank you.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #158 on: August 16, 2007, 08:13:03 PM »
Yes, see 1st time. No get what mean.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline orb4

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #159 on: August 16, 2007, 11:37:58 PM »
Yes, see 1st time. No get what mean.
Hello,
Could you please be more explicit on what you said because my english is not so good. Thank you.

I just wanted to know if it is possible to display instead of a choosen pic the last image posted in the category.

Offline musicsurfer

  • Full Member
  • ***
  • Posts: 184
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #160 on: September 13, 2007, 09:07:42 AM »
Wenn ich in der hauptkategorie keine Bilder habe sondern nur 5 Unterkategorien
wird durch dieses Mod in der Hauptkategorie dann trotzdem ein Bild angezeigt ?


If I in the main category pictures do not have separate only 5 subcategories
by this Mod in the main category nevertheless is a picture then indicated?

Gruss

Offline musicsurfer

  • Full Member
  • ***
  • Posts: 184
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #161 on: September 14, 2007, 12:09:01 AM »
sorry about my english :)
But...

Where can I make my PreviePicture larger ?
They are very smal

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #162 on: September 14, 2007, 12:22:42 AM »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline musicsurfer

  • Full Member
  • ***
  • Posts: 184
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #163 on: September 14, 2007, 07:03:28 AM »
@thunderstrike
Sorry, not the Image. I mean the category image !

In deutsch:
Ich möchte nur die Vorschaubuilder der Kategorien größer machen, die sind mir viel zu klein
Die Bilder selber in den Kategorien sind ok.
Es geht sich nur um die Vorschaubilder auf der Startseite,
Weiß jemand wo man das hier im MOD ändert ?
Mit den beiden Links einen Beitrag höher geht das nicht
Ich möchte eine feste Größe für die Category Bilder haben

Versuch in englisch:
I would like to make only the Caterogy Images larger, those am much too small for me
The pictures themselves in the categories are ok.
It concerns itself only the preview pictures on the starting side,
Know someone where one in the MOD changes here?
With the two left a contribution more highly that cannot be done

I would have a firm size (fixed size) fpr the Category Image

Please help me  :?

Greets
« Last Edit: September 14, 2007, 08:52:09 AM by musicsurfer »

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #164 on: September 14, 2007, 10:22:42 AM »
@musicsurfer

... statt ...
Code: [Select]
$dim = 50;
... verwende z.B. dieses (ist die Prozentangabe der Thumbnailgröße ... ) ...
Code: [Select]
$dim = 100;
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...