Author Topic: Some picture not only folder.gif in Main Cat.  (Read 9596 times)

0 Members and 1 Guest are viewing this topic.

Offline pavka

  • Newbie
  • *
  • Posts: 14
    • View Profile
Some picture not only folder.gif in Main Cat.
« on: January 22, 2003, 05:19:46 AM »
How can i add pictures to main cattegories not only "folder.gif"... few pics to few main categories Exactly like here:
http://come.no-ip.com/

Best Regards,
P.

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: Some picture not only folder.gif in Main Cat.
« Reply #1 on: January 22, 2003, 06:02:42 AM »
Quote from: pavka
How can i add pictures to main cattegories not only "folder.gif"... few pics to few main categories Exactly like here:
http://come.no-ip.com/

Best Regards,

in /templates/YOURTEMPLATES/category_bit.html file u'll find one commented line, just uncoment it.
Code: [Select]
{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}
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 pavka

  • Newbie
  • *
  • Posts: 14
    • View Profile
Great :) but maybe there is possibility to define only...
« Reply #2 on: January 22, 2003, 10:41:02 PM »
Great :) but maybe there is possibility to define only one pic escpecially to one main cattegory? not random form those cattegory?
Big thx for help.
Regards,
P.

Offline widgit1981

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Some picture not only folder.gif in Main Cat.
« Reply #3 on: January 22, 2003, 11:10:07 PM »
Sure:

http://www.4homepages.de/forum/viewtopic.php?t=3589

You can see it in action @

http://www.highrez.com/index.php

Note: Site still under major development !

Steve

Offline PVermeij

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://www.matthewvermeij.nl
Nothing changes?
« Reply #4 on: April 08, 2003, 09:03:32 AM »
I tried the change to show a picture instead of the folder.gif but I don't see any change?

Here's the code of my category_bit.htlm

Code: [Select]

<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
      <img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />  
      {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}
    </td>
    <td>
       <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 cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}
{if sub_cats}{sub_cats}{endif sub_cats}


Can someone tell me what I did wrong?

Offline Yan

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Some picture not only folder.gif in Main Cat.
« Reply #5 on: December 22, 2009, 09:29:36 PM »
Dont work :(
In html code gallery

Code: [Select]
<a href="./categories.php?cat_id=10"><img src="" border="1"></a>
No link to image src


Here is my category_bit.html  code
 
Code: [Select]
<div class="maincat"><img src="{template_url}/images/folder.png" width="20" height="18" alt="" />
  <a href="{cat_url}">{cat_name}</a>
      {if cat_is_new}<sup class="new">{lang_new}</sup>{endif cat_is_new}</div>
{if sub_cats}{sub_cats}{endif sub_cats}

{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}

Rembrandt

  • Guest
Re: Some picture not only folder.gif in Main Cat.
« Reply #6 on: December 22, 2009, 09:39:54 PM »
....

Code: [Select]
<div class="maincat">{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif random_cat_image_file}
 <a href="{cat_url}">{cat_name}</a>
      {if cat_is_new}<sup class="new">{lang_new}</sup>{endif cat_is_new}</div>
{if sub_cats}{sub_cats}{endif sub_cats}

and in includes/constats.php:

find:
//define('SHOW_RANDOM_CAT_IMAGE', 1);

and replace:
define('SHOW_RANDOM_CAT_IMAGE'1);


mfg Andi