Author Topic: Category View Problem  (Read 10950 times)

0 Members and 1 Guest are viewing this topic.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Category View Problem
« on: March 26, 2005, 11:51:10 PM »
Hi there,

i have made more Subcategories and now i have this problem:



What must i do to have the word "Maskenleguane" direct under the word "Anolis"???
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Category View Problem
« Reply #1 on: March 27, 2005, 11:05:59 AM »
No One an Idea???

:(

Another Question...

What i must di to have the categories on index in this form

  • Sub Cat 1
  • Sub Cat 2
  • Sub Cat 3
  • Sub Cat 4


Not in this Form

Sub Cat 1, Sub Cat 2, Sub Cat 3...
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Category View Problem
« Reply #2 on: March 27, 2005, 02:17:57 PM »
Hallo Jens,

die Anordnung der Unterkategorien wird in der functions.php festgelegt und kann dort auch geändert werden.
Finde in der functions.php den Abschnitt :
Code: [Select]
function get_subcategories($parent_id) ...
Und dort sollte dann für deine gewünschte Auflistung (untereinander) für $sub_cat_list stehen :
Code: [Select]
$sub_cat_list .= "&nbsp;&middot; <a href=\"".$sub_url."\" class=\"subcat\">".$cat_cache[$subcat_id]['cat_name']."</a><br>";
(Das Ende der Zeile ... mit <br> ist wichtitig ... ! Also mit Umbruch, ggf. noch mit einem ausgewählten "Vorzeichen - ( &middot; )" und "Non Breaking Space - ( &nbsp; )" zum Zeilenbeginn... )

Sollte klappen ...   :wink:
mawenzi
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Category View Problem
« Reply #3 on: March 27, 2005, 06:30:35 PM »
Vielen Dank für die Hilfe aber ich habe mich jetzt doch dazu entschlossen keine Sub Kategorien auf der Startseite anzuzeigen.
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Category View Problem
« Reply #4 on: March 27, 2005, 07:36:13 PM »
Hi there,

i have another Question for Categorie View

I have no Picture in the main categories and it displayed this

Quote
Found: 0 image(s) on 0 page(s). Displayed: image 0 to 0.

What must i do to delete this???? I have found someone but when i make changes i delete it on the subcats, too.

But in the subcats i will displayed it....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

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: Category View Problem
« Reply #5 on: March 27, 2005, 07:46:25 PM »
cant say it will work but try add {if paging} and {endif paging} around {paging_stats} in categories.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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Category View Problem
« Reply #6 on: March 28, 2005, 01:00:38 AM »
cant say it will work but try add {if paging} and {endif paging} around {paging_stats} in categories.html template.

Thanks, it works. One problem. When in a subcat is 1 or 2 pics it doesn´t displayed. Are 10 ore more it displayed. But i think, its OK!

See this..

Now its displayed: http://www.terraristik-galerie.de/categories.php?cat_id=24&l=english (137 Pics)
It doesn´t: http://www.terraristik-galerie.de/categories.php?cat_id=60&l=english (7 Pics)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Category View Problem
« Reply #7 on: July 29, 2005, 01:10:38 PM »
Hallo,

ich habe jetzt doch einmal die Unterkategorien anzeigen lassen. Finde das so auch ganz OK aber irgendwie sieht es so durcheinander aus.

Hat jemand vielleicht ne Idee wie ich das ein wenig ordentlicher hinbekomme??

Vielleicht so das alles waagerecht eine Höhe hat.......

http://www.terraristik-galerie.de/index.php
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Category View Problem
« Reply #8 on: July 29, 2005, 09:31:17 PM »
hi Jens,

die Tabllenrahmen für deine Kategorien und Subkategorien werden in der Breite und Höhe nur durch den darin angezeigten Inhalt (Thumbnail bzw. Kategorie-Namen) bestimmt. Da der Inhalt ja jeweils anders ist, zumal du noch Zufallsbilder anzeigst ... die wiederum im Format wechseln, kommt dieses scheinbare Durcheinander zustande.
Also wie Abhilfe schaffen ...
Du solltest den Tabellenrahmen fixe Höhen und Breiten geben, die jeden erforderlichen Inhalt aufnehmen. Das müsste in deiner category_bit.html dann etwa so aussehen :

Code: [Select]
<table border="4" cellspacing="0" cellpadding="2">
<tr>
<td height="120" width="120" bgcolor="cccccc" align="center" valign="middle" ><img src="{random_cat_image_file}"></td>
<td height="120" width="350" bgcolor="cccccc" align="left" valign="top"><a href="{cat_url}">{cat_name}</a><br> {if sub_cats}{sub_cats}{endif sub_cats}</td>
</tr>
</table>

Die passenden Größen, Layout, ... musst du dann noch austesten ...  :wink:

mawenzi
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Category View Problem
« Reply #9 on: July 29, 2005, 11:48:48 PM »
Vielen Dank, jetzt gefällt mir das....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Category View Problem
« Reply #10 on: July 31, 2005, 07:24:05 PM »
hi Jens,

... na sieht doch perfekt aus ...  :wink:

mawenzi
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Category View Problem
« Reply #11 on: January 10, 2006, 06:17:06 PM »
Hallo,

ich weiß das Problem ist schön älter aber ich möchte mich diesen in nächster Zeit mal widmen. Und zwar sehen meine KAtegorien jetzt recht gut aus aber leider habe ich immer noch dieses Problem: siehe Beispiel hier.
Wie man sieht ist die eine Kategorie groß und die andere sehr klein. Ich möchte aber das die Kästen den ganzen Bildschirm füllen und nicht nur so groß sind wie sie müssen um den ganzen Text darzustellen.

Ich habe absolut keine Ahnung was das Problem ist.

Meine categorie_bit.html sieht so aus

Code: [Select]
<table width="100%" border="4" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="middle" bgcolor="E5E9F2">
  <!--<img src="{template_url}/images/folder.gif" width="50" height="13" alt="" /> -->
          <div align="center"><img src="{template_url}/images/spacer.gif" alt="" width="15" height="15" />{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" width="60" height="60" border="1"></a>{endif random_cat_image_file}<img src="{template_url}/images/spacer.gif" alt="" width="15" height="15" /></div>
    </td>
   <td>
  <td width="100%" height="150" valign="middle" bgcolor="E5E9F2"> <img src="{template_url}/images/spacer.gif" alt="" width="5" height="5" />&raquo; <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}<br>{if sub_cats}<img src="{template_url}/images/spacer.gif" alt="" width="5" height="5" />{sub_cats}<br>{endif sub_cats}</td>
</td>
  </tr>
</table>

Demnach sollten die Kästen immer 100% haben aber wie man ja am Bespiel Link sieht ist das nicht so. Müssen da vielleicht noch andere Dateien angepasst werden???
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-