Author Topic: How do I move the categories  (Read 7654 times)

0 Members and 1 Guest are viewing this topic.

Offline MoinMoin

  • Pre-Newbie
  • Posts: 5
    • View Profile
How do I move the categories
« on: January 07, 2010, 02:32:16 PM »
Hallo ich bin brandneu hier und habe zur Templateumstellung eine Frage (ich nutze: default 1.7.7.7): Wie bekomme ich die "Kategorien" auf die linke Seite - unter das Zufallsbild?

Hello, I am a newbie and have a question about a template adjustment (I am using: default 1.7.7.7): How do I get the "Categories" moved on the left side - below the random picture?

Rembrandt

  • Guest
Re: How do I move the categories
« Reply #1 on: January 07, 2010, 05:04:56 PM »
Willkommen im Forum!

hier gibt es so etwas du mußt dich dort anmelden, um in den downloadbereich zu kommen.

mfg Andi

Offline MoinMoin

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: How do I move the categories
« Reply #2 on: January 16, 2010, 06:01:43 PM »
Ok - danke erst einmal für den Tip.
Leider ist es nicht das was ich brauche. Vielleicht sollte ich die Frage spezifizieren. Ich möchte rechts einfach eine weitere Spalte einfügen. Den Code werde ich mir schon aus dem Internet zusammensuchen. Aber welche Templateseite muß ich dahingehend ändern? Die home.html oder details.html oder ... ? Als Noob suche ich mich da wirklich dusselig.

mfg
MoinMoin

Oh - thank you for your recommendation.
Unfortunately it is not, what I need. Perhaps I should specify my question: I want to have on the right side another column. A code I could gather via Internet. But which template site I have to change? The home.html or the details.html? As a noob I am searching wildly.

Offline MoinMoin

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: How do I move the categories
« Reply #3 on: May 08, 2010, 08:51:30 AM »
Hi - maybe there is after some weeks someone who could help?

Offline bananaboy

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
Re: How do I move the categories
« Reply #4 on: May 08, 2010, 03:50:00 PM »
moin ...

meinst du evtl. das du die jeweiligen kategorien in der linken navigationsleiste direkt unter dem randomimage als liste anzeigen willst ?

da würde ich dir empfehlen es lieber "händisch" einzutragen ... bzw. einfach eine liste.php mit den direktlinks der kategorien...
und diese includierst du dann in jede seite die es anzeigen soll .

oder du machst den mod. den Rembrandt  dir vorgeschlagen hat .


also so zb. die liste.php

anpassen musst du nur die rot markierten stellen .

Quote
<table border="0" cellpadding="0" cellspacing="0"  width="150">
 <tr>
 <td class="head1" width="100%" height="20">{lang_categories}</td>
 </tr>
  <tr>
 <td class="row1" width="100%" height="20">
   <a style="text-decoration: none" target="_self" href="categories.php?cat_id=1"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />Kategorie 1</a></td>
 </tr>
  <tr>
 <td class="row2" width="100%" height="20">
   <a style="text-decoration: none" target="_self" href="categories.php?cat_id=2"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />Kategorie 2</a></td>
 </tr>
   <tr>
 <td class="row1" width="100%" height="20">
   <a style="text-decoration: none" target="_self" href="categories.php?cat_id=3"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />Kategorie 3</a></td>
 </tr>
   <tr>
 <td class="row2" width="100%" height="20">
   <a style="text-decoration: none" target="_self" href="categories.php?cat_id=4"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />Kategorie 4</a></td>
 </tr>
   <tr>
 <td class="row1" width="100%" height="20">
   <a style="text-decoration: none" target="_self" href="categories.php?cat_id=5"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />Kategorie 5</a></td>
 </tr>
   <tr>
 <td class="row2" width="100%" height="20">
   <a style="text-decoration: none" target="_self" href="categories.php?cat_id=6"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />Kategorie 6</a></td>
 </tr>
    <tr>
 <td class="row1" width="100%" height="20">
   <a style="text-decoration: none" target="_self" href="categories.php?cat_id=7"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />Kategorie 7</a></td>
 </tr>
   <tr>
 <td class="row2" width="100%" height="20">
   <a style="text-decoration: none" target="_self" href="categories.php?cat_id=8"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />Kategorie 8</a></td>
 </tr>
 </table>


das speicherst du einfach ab als  liste.php

anstatt  "Kategorie 1" etc. schreibst du da einfach den namen der kategorie rein ...
bei  "categories.php?cat_id="  kommt nur die zahl der jeweiligen kat. hin .

die weite der tabelle musst du sehen ... ich habe da  width="150"  eingetragen ... ob das so richtig ist muss du sehen .
die  class="row1" -  class="row2" kommen immer abwechselnd wie du siehst ...
behalte es so bei wenn du erweiterst .

dann schaust du zb. in der home.html  nach  {endif random_image}

dahinter oder darunter trägst du folgendes ein ...

<?php include("list.php"); ?>


das machst du dann in jeder seite wo die kats. angezeigt werden soll .



gruss
"bananaboy"
« Last Edit: May 08, 2010, 04:58:17 PM by bananaboy »

Offline MoinMoin

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: How do I move the categories
« Reply #5 on: May 08, 2010, 06:06:09 PM »
Quote
meinst du evtl. das du die jeweiligen kategorien in der linken navigationsleiste direkt unter dem randomimage als liste anzeigen willst ?

Genau so meinte ich es!


DANKE für Deine Mühe u. Antwort.

Rembrandt

  • Guest
Re: How do I move the categories
« Reply #6 on: May 09, 2010, 09:48:19 AM »
...
da würde ich dir empfehlen es lieber "händisch" einzutragen .......
das ist aber nicht dein ernst, möchtest du bei jeder änderung der kategorien das händisch nachtragen?
für soetwas gibt es doch einen mod:  http://www.4homepages.de/forum/index.php?topic=24677.msg135140#msg135140

mfg Andi

Offline bananaboy

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
Re: How do I move the categories
« Reply #7 on: May 09, 2010, 03:38:47 PM »
moin ...


siehe oben !

.....

oder du machst den mod. den Rembrandt  dir vorgeschlagen hat .

...

ich hatte nur den vorschlag deshalb gemacht da ich befürchtete das MoinMoin keinen mod. haben/machen will .

wenn man 'ne kleine page hat wäre das eine alternative ...
bei meiner ehemaligen wallpaper website mit ca. 100 kats.  und über 7000 pics.  hätte ich das so auch nie gemacht  :mrgreen:



gruss
"bananaboy"