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

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

0 Members and 1 Guest are viewing this topic.

Offline simpley

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #285 on: July 15, 2010, 05:57:38 PM »
ok, cheers!

Offline peyv

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #286 on: August 09, 2010, 09:37:53 PM »
hallo kann ich das mod auch für version 1.7.7 benutzen?

Danke

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #287 on: September 05, 2010, 06:43:13 PM »
Hello

How to automatically attribute "alt = image name?

Thanks  :wink:

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 #288 on: September 05, 2010, 11:45:21 PM »
In the code from step 3 replace
      $sql "SELECT image_id, image_media_file, image_thumb_file, cat_id
With this:
      $sql "SELECT image_id, image_media_file, image_thumb_file, cat_id, image_name


Then find:
    $site_template->register_vars("cat_image"$cat_image);

With this:
    $site_template->register_vars(array(
  
"cat_image" => $cat_image,
  
"cat_image_name" => format_text(@$image_row['image_name'], 2),
));


After that in category_bit.html template use this:
Code: (template category_bit.html) [Select]
{if cat_image}<img src="{cat_image}" alt="{cat_image_name}">{endif 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 Bassic Sax

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #289 on: October 05, 2010, 01:43:24 AM »
hallo kann ich das mod auch für version 1.7.7 benutzen?

Danke

Ja. Ich habe das mod am Wochenende in meine 4images Gallerie 1.7.7 installiert.

b.o.fan

  • Guest
Re: [MOD] Category Image v1.0.2
« Reply #290 on: October 10, 2010, 10:05:28 PM »
Hello!

Can i Use This Mod with 1.78?

Offline x23piracy

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • FHG
Re: [MOD] Category Image v1.0.2
« Reply #291 on: October 11, 2010, 01:04:42 PM »
Hello!

Can i Use This Mod with 1.78?

yep


EDIT:

Is it possible to display more then one category image, and can they be random?



Greetz X23
« Last Edit: October 23, 2010, 06:02:18 PM by x23piracy »

Don't trust in md5 it's unsafe change your 4i galerys password hash algorythm! second pw db field, create new hashes over some time, deny old hash. Help members that cry, send informationen mail to the rest. Camouflage new pw hash in cookie. Done!

--(◔̯◔)--

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #292 on: December 05, 2010, 12:56:06 AM »
hello ..
i want to use it with 1.7.9??

but i dont know how to install...

and when i tried to manually change the script,, the coding specifed here is little different .. like in global.php..the coding dosent match to global.php of my site.

please help what to do??

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


Help help help help help.....\

I tried changing the codes manually as said.. i did as written here...

but i dont know where it go wrong...


Please Help...

im having this error...

An unexpected error occured. Please try again later.



what to do what to do???


Help required..any one..

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

No worries problem fixed..problem was in global.php..sorry my bad..
but image not showing..how to set image id in catogries..??
« Last Edit: December 05, 2010, 01:53:23 AM by haider512 »

Offline kasun0777

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #293 on: December 06, 2010, 04:17:54 PM »
....

yes bro
l have same problem




unnecessary full quote removed, Rembrandt
« Last Edit: December 06, 2010, 05:13:08 PM by Rembrandt »

Offline FadenMary

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #294 on: December 20, 2010, 06:09:56 PM »
@haider512 and @kasun0777

do you have run the installer?
Step 5 on the first side?

regards,
Mary from germany
lila13. de und knipslust.de


Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #295 on: December 21, 2010, 02:37:23 PM »
@haider512 and @kasun0777

do you have run the installer?
Step 5 on the first side?

regards,
Mary from germany
lila13. de und knipslust.de



yup sure..i did the step 5..the problem was i did mistaked in global.php

and then it did worked for me..but i found out..that my site is better off without the catogaries images..cuz i have alot of catogries.. and it will all look messy if i use images as catogaries..

Any how..are you facing any problems with it?

Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #296 on: December 25, 2010, 09:33:53 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?

just ignore it, everything is fine. continue to the next step if you wish.
Hello,
How can I skip a step while installing "catimage_install.php" ? I got the error above just wanted to update from 1.7.7 to 1.7.9 I'm sure I made all steps right but after this error in catimage_install I can not continue with it and so catimages are not shown.
Greetings & thanks, Luna

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 #297 on: December 25, 2010, 09:49:34 PM »
That error just says that your database already updated, no need run the installer again.
When you edit a category with cat image in it, do you see the image id in the cat image field? if so, the database is correctly working, something else is 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 Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #298 on: December 25, 2010, 09:52:19 PM »
NO I don't see a cat image there. And also all the numbers that where written there before are gone, if I write them again and save it the field stays empty...

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 #299 on: December 25, 2010, 10:29:00 PM »
Then it's possible you've made a mistake in some step(s). Since the instructions are written for v1.7.3 it's possible that they are not compatible with v1.7.9 (I don't have time install it and check on each 4images version).
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)