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

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

0 Members and 1 Guest are viewing this topic.

Offline sharangan

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • levikay
Re: [MOD] Category Image v1.0.2
« Reply #75 on: April 30, 2006, 06:38:39 PM »
hey guys is it possable to view the cat image in the category beside the name of the catagory

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 #76 on: April 30, 2006, 07:18:57 PM »
edit category_bit.html template
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 sharangan

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • levikay
Re: [MOD] Category Image v1.0.2
« Reply #77 on: May 06, 2006, 08:11:29 PM »
no i was woundering if u can show it in catagory.html templet i tryed it just shows me this {if cat_image}<img src="{cat_image}">{endif cat_image} no pictures
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 #78 on: May 06, 2006, 09:20:47 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);
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 sharangan

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • levikay
Re: [MOD] Category Image v1.0.2
« Reply #79 on: May 07, 2006, 07:04:28 PM »
hey thanks alot man ur the gratest
i can see the image but it still sows {if cat_image} "i can see the image" {endif cat_image}


Offline whoopiedoo2

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #80 on: May 07, 2006, 07:51:02 PM »
anyone wanan do this for me? lol
im afriad i will mess up again

Offline fanttomas

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #81 on: May 12, 2006, 03:12:31 PM »
Hallo Leute


Ich habe gerade versucht Vorschaubilder für die Kategorien nach der Anleitung V@no zu erstellen, global.php &co bearbeiten wie in der Anleitung cat_image.php installiert (Aktualisierung der Datenbank erfolgreich). Nur sobald ich im ACP Kategorien bearbeiten auswähle bekomme ich folgender Fehlermedlung: DB Error: Bad SQL Query: SELECT cat_id, cat_name, cat_description, cat_parent_id, cat_hits, cat_order, auth_viewcat, auth_viewimage, auth_download, auth_upload, auth_directupload, auth_vote, auth_sendpostcard, auth_readcomment, auth_postcomment, cat_image WHERE cat_parent_id = 0 ORDER BY cat_order, cat_name ASC
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 'WHERE cat_parent_id = 0 ORDER BY cat_order, cat_name aus der ich nicht schlau werde.
Wenn jemand mir helfen könnte wäre ich sehr dankbar.

Gruss
« Last Edit: May 13, 2006, 07:37:46 AM by fanttomas »

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
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 fanttomas

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #83 on: May 13, 2006, 07:40:04 AM »
@ fanttomas

http://www.4homepages.de/forum/index.php?topic=12957.msg69551#msg69551

Danke, schon ein gelöstes Problem; hab immer noch Erklärung keine Lösung für das Problem mit dem Mod Category image gefunden und hoffe weiterhein auf Hilfe.

gruss

Offline Alex_Ok

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #84 on: May 13, 2006, 02:34:29 PM »
Подскажите пожалста как установить картинку по умолчанию чтоб была не 0 а любая другая на усмотрение админа

Offline fanttomas

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #85 on: May 15, 2006, 08:42:54 PM »
Hi,

I get this error when i try to execute catimage_install.php;

1. Error: Duplicate column name 'cat_image'

ALTER TABLE `4images_categories` ADD `cat_image` MEDIUMINT( 8 ) NOT NULL


Can somebody help me, please?


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 #86 on: May 16, 2006, 12:37:43 AM »
just ignore it, everything is fine. continue to the next step if you wish.
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 fanttomas

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #87 on: May 16, 2006, 11:34:51 AM »
just ignore it, everything is fine. continue to the next step if you wish.

Hi V@neo, i fear make something wrong while replacing with the Mod. I am using the release 1.7.2 of 4images. I can't set the Steps 2.2 & 2.3,not found the code to replace in the admin/categories.php file.
I also couldn't find this part "  $cat_image = "";" in the same file, have you some idea please?

thx


Offline morrisonjim

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #88 on: May 17, 2006, 03:03:32 AM »
i did everything you say but nothing :(

i dont see the thumbnails
really i dont see nothing beside the caqtegories names
helpme please



just ignore it, everything is fine. continue to the next step if you wish.

Hi V@neo, i fear make something wrong while replacing with the Mod. I am using the release 1.7.2 of 4images. I can't set the Steps 2.2 & 2.3,not found the code to replace in the admin/categories.php file.
I also couldn't find this part "  $cat_image = "";" in the same file, have you some idea please?

thx



Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #89 on: May 27, 2006, 04:02:16 PM »
I've updated to 1.7.2 and everything works fine with this mod except the ifno_catimage does not work.
I've alredy fixed the "ifnot" problem with this: http://www.4homepages.de/forum/index.php?topic=12251.0 but still no pictures are shown there. My code is:
Code: [Select]
{ifno cat_image}
{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="0" height="100"  alt="" ></a>{endif random_cat_image_file}{endifno cat_image}

Also I'm wondering why theres written that I can change optional something in "admin/images.php" but not written what I could change there ;)

Hugs Luna
« Last Edit: May 27, 2006, 04:40:43 PM by Lunique »