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

Author Topic: [MOD] Category Image v1.0.2  (Read 378023 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 #300 on: December 25, 2010, 10:36:07 PM »
OK I've redone all the steps and found out I forgot step 2.6 now it shows the small image in "edit categories". I still don't get it to show in the gallery it shows only red x where it should be. Is that maybe because it is not compatible or should it still be a mistake of me?

Btw: At step 2.3 I just added ", cat_image" at the end because my line is slightly different. I have "cat_order" in that line too I think that's new in 1.7.9

Thanks for your mod and your fast answers!
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 #301 on: December 25, 2010, 10:49:32 PM »
Now we are getting somewhere. What you need to do now is see what is the path on these "red x" images. Right click and select properties (in IE) or "view image info" (in FF), then copy the address and open in the browser, see if any error shows.
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 #302 on: December 25, 2010, 11:10:37 PM »
I found out that the red x is only because of the ifno clause I used so if I tried to get the path it will only link to the category. I tried changing it to only the code you suggested and now there is nothing seen above the category name. Btw. random cat image is working properly.
Here's my category bit with if-clause:

<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
  <
tr>
    <
td align="center" width="160">
{if 
cat_image}<a href="{cat_url}"><img src="{cat_image}"  height="150" border="0"></a>{endif cat_image}
{
ifno cat_image}{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}{endifno cat_image}</td>
  </
tr>
  <
tr>
    <
td align="center" width="160">
<
a href="{cat_url}" class="maincat">{cat_name}</a>&nbsp;({num_images}){if cat_is_new}<sup class="new">{lang_new}</sup>{endif cat_is_new}</td>
  </
tr>
</
table>

{if 
sub_cats}{sub_cats}{endif sub_cats}
&
nbsp;


Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #303 on: December 25, 2010, 11:47:55 PM »
just try add {cat_image} somewhere in the template so it would seen on the page as plain text
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #304 on: December 25, 2010, 11:55:51 PM »
Thanks that you are still there!
I've added it but it isn't seen at all, no text visible.

Offline cookie

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #305 on: December 27, 2010, 10:02:08 PM »
I've just updated from 1.7.7 to 1.7.9 and all my mods work fine except this one.

I have my mods all neatly commented, so that each time a new version of 4images comes out, I can use text wrangler and meticulously diff each file to see what's new and where to makes changes for my mods.

I've gone through this process several times over the past 4 or 5 years.

I believe that this mod may now be incompatible with 1.7.9.

Can anyone report if this works with 1.7.9??

Thanks.

I do see the category images when I edit the categories in the admin control panel, but they are not showing up on my main gallery site.

Offline Lunique

  • Full Member
  • ***
  • Posts: 109
  • V 1.7.7
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #306 on: December 27, 2010, 10:13:50 PM »
I've just updated from 1.7.7 to 1.7.9 and all my mods work fine except this one.

I have my mods all neatly commented, so that each time a new version of 4images comes out, I can use text wrangler and meticulously diff each file to see what's new and where to makes changes for my mods.

I've gone through this process several times over the past 4 or 5 years.

I believe that this mod may now be incompatible with 1.7.9.

Can anyone report if this works with 1.7.9??

Thanks.

I do see the category images when I edit the categories in the admin control panel, but they are not showing up on my main gallery site.
Ok so it seems we have the same problem and you are maybe right that it's not compatible with 1.7.9 really sad I think I will go back to 1.7.7 then it worked finde with all my mods.

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 #307 on: December 27, 2010, 11:56:26 PM »
Well, guys, I don't know what you are doing wrong, but I just installed this mod on fresh v1.7.9 and it worked just fine without a hiccup...
Make sure that you choose the right instructions - when a step has instructions for different 4images versions, you must use the instructions closest to your version (mostly for v1.7.3)

If cat image displays fine at edit category page, but not on categories/home page, then I'd bet on mistake in step 1, 3 and/or 4
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 #308 on: December 28, 2010, 12:09:05 AM »
Thank you so much you are totally right.
It was step 1 which was missing.
I was sure I made it I even checked it twice, now on the third check I found out it wasn't there.
I confess I'm naturally blonde ;)

Thanks for all your help and this great mod!

Offline nagmat

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • نغمات
Re: [MOD] Category Image v1.0.2
« Reply #309 on: March 13, 2011, 05:50:13 AM »
When Finished all

 :( :( :( :( :( :( when i click edit or add cat

Warning: include() [function.include]: Unable to access ./global.php in /home/nagmat/public_html/admin/categories.php on line 30

Warning: include(./global.php) [function.include]: failed to open stream: No such file or directory in /home/nagmat/public_html/admin/categories.php on line 30

Warning: include() [function.include]: Unable to access ./global.php in /home/nagmat/public_html/admin/categories.php on line 30

Warning: include(./global.php) [function.include]: failed to open stream: No such file or directory in /home/nagmat/public_html/admin/categories.php on line 30

Warning: include() [function.include]: Failed opening './global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nagmat/public_html/admin/categories.php on line 30

Warning: require() [function.require]: Unable to access ./includes/sessions.php in /home/nagmat/public_html/admin/categories.php on line 31

Warning: require(./includes/sessions.php) [function.require]: failed to open stream: No such file or directory in /home/nagmat/public_html/admin/categories.php on line 31

Warning: require() [function.require]: Unable to access ./includes/sessions.php in /home/nagmat/public_html/admin/categories.php on line 31

Warning: require(./includes/sessions.php) [function.require]: failed to open stream: No such file or directory in /home/nagmat/public_html/admin/categories.php on line 31

Fatal error: require() [function.require]: Failed opening required './includes/sessions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nagmat/public_html/admin/categories.php on line 31

Offline Sleepy

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #310 on: May 19, 2011, 04:34:24 PM »
Thank you very much. I love this MOD ^_^!

Offline hummel

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #311 on: July 12, 2011, 09:12:41 PM »
Hallöchen

habe leider wieder mal ein Problem.

wollte das auf der home seite, anstelle Kategorien z.b Text: Rosen, halt ein Bild zu sehen ist welches in dieser drin ist.(im Ordner)

hatte dieses mod benutzt.
alles schritt für schritt.
http://www.4homepages.de/forum/index.php?topic=6922.0

wenn ich als letztes unter Kategorien bearbeiten gehe steht auch Category image wo man die ID einstellt.

Aber wenn ich zu den Bildbearbeitung gehe sollte dort stehen welches ich als Vorschau nehmen möchte aber leider fehlt das bei mir!

da dieses mod , ja doch etwas älter ist, könnte es sein das es daran liegt?

oder aber das es so eingebunden werden sollte

{if cat_image}<img src="{cat_image}">{endif cat_image}






aber meine category_bit.html sieht so aus:
<div class="cat"><a href="{cat_url}">{cat_name}</a><span>({num_images})</span>{if cat_is_new} <span class="new">{lang_new}</span>{endif cat_is_new}</div>
{if 
cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}
{if 
sub_cats}{sub_cats}{endif sub_cats}




wäre toll wenn jemand helfen könnte oder aber ein bessere Idee hätte


so habe es geschafft das ich im Control panel-Haupkategoriebearbeitung die bild id eingeben konnte, sehe auch dort das tumb. aber wie bekomme ich es auf die Hauptseite?

ich denke mir es liegt an dem einbinden aber wie kann ich es bei meinem

 category_bit.html  einbinden?:
<div class="cat"><a href="{cat_url}">{cat_name}</a><span>({num_images})</span>{if cat_is_new} <span class="new">{lang_new}</span>{endif cat_is_new}</div>
{if 
cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}
{if 
sub_cats}{sub_cats}{endif sub_cats}




« Last Edit: July 12, 2011, 09:59:11 PM by hummel »

Rembrandt

  • Guest
Re: [MOD] Category Image v1.0.2
« Reply #312 on: July 13, 2011, 05:04:07 AM »
in deiner categorie.bit, vor oder nach  {cat_name} fügst du das ein.
Code: [Select]
{if cat_image}<img src="{cat_image}">{endif cat_image}
je nach dem wo du den categorie namen haben möchtest.

und wenn du das bild immer noch nicht siehst dann:
Quote
If cat image displays fine at edit category page, but not on categories/home page, then I'd bet on mistake in step 1, 3 and/or 4

mfg Andi

Offline szymanski

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] Category Image v1.0.2
« Reply #313 on: March 10, 2012, 10:14:46 PM »
thanks work on 1.7.10

Offline chamkani.net

  • Jr. Member
  • **
  • Posts: 91
  • Moxet Khan
    • View Profile
    • Pukhtoogle
Re: [MOD] Category Image v1.0.2
« Reply #314 on: October 08, 2012, 11:12:52 AM »
One of the great mod i needed, please review my gallery having this mode installed, publisher can change the demo address to mind gallery if he want

http://pukhtoogle.com/gallery
Digital Marketing Specialist