4images Modifications / Modifikationen > Templates & Styles (Requests & Discussions)

Show a thumbnail instead of a folder icon next to category

<< < (2/12) > >>

Chris:

--- Quote from: jarano on April 12, 2005, 12:30:16 AM ---Your mod works but it has a little problem, the thumbnail size it's the same that the categories thumbnail.
--- End quote ---

It's not a mod and there is no problem.  The thumbnail size is working the way it was designed.

cagedsmurf:

--- Quote from: V@no on April 12, 2005, 04:29:09 AM ---yes, u can.

--- End quote ---

Can You Tell Me Where I need To Modify Please Because I cant Find The Code As Shown Above  :?:

This All The Code From The 4images_Dark Template catorgory_bit.html  Sorry If I'm Being Blind :oops:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td width="50" rowspan="2" align="center" valign="top">
   <a href="{cat_url}"><img src="{template_image_url}/category{cat_id}.gif" border="0" alt="{cat_name}"></a></td>
   <td align="left" valign="top"><a href="{cat_url}" class="maincat">{cat_name}</a>&nbsp;({num_images})</td>
  </tr>
  <tr>
   <td align="left" valign="top">{if cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}</td>
  </tr>
</table>
{if sub_cats}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td width="50" align="center" valign="top"><img src="{template_image_url}/joinbottom.gif"></td>
   <td align="left" valign="top">{sub_cats}</td>
  </tr>
</table>
{endif sub_cats}
Thanks In Advance :)

V@no:
c'mon! just look at the difference between the "seached" code provided and the result code!

jarano:

--- Quote from: jarano on April 19, 2005, 10:54:29 PM ---
--- Quote ---<table border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td valign="top">

      {if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}"><width="25" height="33" 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>
--- End quote ---


I did this changes in this code to obtain a small thumbnail with the same size in all the sub-categories.
First of all I added 3 points to "cellpadding" because in the first change I did it was next to the name. This correct the problem and secund I have added width and height as you see in the script and all the thumbnails are axactly the same size taking the pics from the category or sub-category.
Check it here: http://www.celebridadesperuanas.com/galeria

Thank you Chris, you knew what I was looking for but you just told me that this script wasn't a mod, that answer didn't teach me anything, thanks God I could find the answer by myself but...is this the Forum idea? Is this how we share knowledge?...from people who knows very much to people as myself who doesn't know anything?? Thanks anyway...You have create the script and with out it I never could find the solution

--- End quote ---

Chris:

--- Quote from: jarano on April 19, 2005, 10:54:29 PM ---Thank you Chris, you knew what I was looking for but you just told me that this script wasn't a mod, that answer didn't teach me anything, thanks God I could find the answer by myself but...is this the Forum idea? Is this how we share knowledge?...from people who knows very much to people as myself who doesn't know anything?? Thanks anyway...You have create the script and with out it I never could find the solution

--- End quote ---

Please understand that I'm just a volunteer like the others and did not develop the 4images product.  To my knowledge it belongs to Jan and no one else.  I don't always have time to personally tutor everyone on everything under the sun.  Although I do think I've spent a great deal of time over the last 2 years doing just that...

In this case, the thread simply points out something that can already be done with the existing product and requires no coding changes.  That's all I had time for when I posted it and that's all I intend to do with this thread.

Best wishes.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version