Author Topic: [REQ] List links for all Categories and Subcategories in one page.  (Read 78791 times)

0 Members and 1 Guest are viewing this topic.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #15 on: July 21, 2005, 11:59:17 PM »
@mawenzi
wäre es möglich hinter dem Kategorie name die Beschreibung einzufügen?

Ja Vincent ...  :wink: ... dann nimm diesen Code zum Tausch wie bereits oben angegeben :
Code: [Select]
$category_list .= "<img src=\"".get_gallery_image("folder.gif")."\" alt=\"\"><b><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id)."\">".$cat_cache[$category_id]['cat_name']."</a></b> - ".$cat_cache[$category_id]['cat_description']." - ( Bilder: ".$cat_cache[$category_id]['num_images']." ; Hits: ".$cat_cache[$category_id]['cat_hits']." ]<br />";
Reihenfolge : Kat.-Name -> Kat.-Beschreibung -> Kat.-Bilder -> Kat.Hits (in einer Zeile ... :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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #16 on: July 22, 2005, 07:02:50 AM »
@mawenzi
hat geklappt - DANKE  - bloss ist die reihenfolge etwas komisch - die cat_description legt es mir auf eine neue zeile, statt hinten anzufügen!

würde mir das aber so vorstellen:
Katergorie - kategoriebeschreibung (anzahl Bilder - anzahl Hits) eventuell noch Neue Bilder (Anzahl neue Bilder)

gruss
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #17 on: July 22, 2005, 09:59:42 AM »
hi Vincent,

habe die Reihenfolge im Code oben geändert ... hoffe es passt jetzt ...  :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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #18 on: July 22, 2005, 12:38:39 PM »
@mawenzi
du kannst zaubern - bis auf ein detail hat es geklappt am ende der Zeile fehlt der umbruch
Code: [Select]
<br />
Kannst du die noch gelb markieren welche neue Bilder inne haben?   :D  :wink:

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #19 on: July 22, 2005, 01:57:03 PM »
hi Vincent,

ja beim ganzen Hin- und Herschieben ist mir das <br> abhanden gekommen, habe es wieder im Code ergänzt.
So ... und deine Kategorien-Sitemap sieht doch jetzt richtig gut aus ...  :D
Habe noch eine Bilder- bzw. Details-Sitemap am testen ... mit der erzeugt man jede Menge Seiten ...  8O ,
aber auch wieder einen guten Überblick ... sofern ihn ein User überhaupt haben möchte ...  :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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #20 on: August 01, 2005, 11:18:44 AM »
Ich frage nochmals -

1) wäre es möglich die Kategorien mit mit neuen Fotos gelb darzustellen?
2) Wie kann ich die liste auf 2 Spalten aufteilen?
3) Wie kann ich zwischen den hauptkategorien einen <BR> haben?

gruss
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #21 on: August 04, 2005, 11:13:49 PM »
OK asking in english to encrase the chance of a answer  :wink:

Vano an Mawenzi both have it already i just need the code

- How to have the Directory with new Picture in a different colot marked?
- how to splitt the list in 2 rows?
- where to add a <P> between the major categorie?

sincerly
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #22 on: August 10, 2005, 10:33:52 PM »
I would also like to know how to change the color of the cats which are having new images.
Thanks.

@ v@no:
how you make it to mark the cats if they are accessable or not?
I saw that on your sitemap.

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #23 on: August 10, 2005, 10:46:15 PM »
Quote
- where to add a <P> between the major categorie?

I'd like this as well!

Also, mawenzi, I like the detail_list.php you have - - any way for you to share that code as well?   :D

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #24 on: August 11, 2005, 12:18:40 AM »
hi vincent, hi oswald, hi graficalicus, hi all ... ,

yes ... my Categories-Sitemap ... with :
- separate representation of the main categories incl. cat.-description ... and <br>
- number of images / cat. , number of hits / cat. , number of new images / cat in red
- new / red-folder for categories with new images

example : ... here ... look well you say  :mrgreen: , than ...

all necessary files inclusive instruction for installation are : ...  here ... !

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 graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #25 on: August 11, 2005, 01:10:21 AM »
MANY THANKS FOR THIS!


Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #26 on: August 11, 2005, 01:34:09 PM »
I've installed this and I get this message :
Fatal error: Cannot redeclare get_category_html_bits() in category_list_table.php on line 37

Could anyone tell me what's wrong ?
 :roll:

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #27 on: August 11, 2005, 02:40:26 PM »
please post the url to your category_list.php.

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 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: [REQ] List links for all Categories and Subcategories in one page.
« Reply #28 on: August 11, 2005, 02:54:55 PM »
get_category_html and get_category_html_bits functions were used in Chris' mod (cant recall the name), which seems to be missing after the hack...:S

what you can do is rename the functions in category_list_table.php to something else and then update category_list_table.php and category_list.php files with the new names
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 mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #29 on: August 11, 2005, 03:25:09 PM »
in continuation with V@no's statements :

1. in category_list_table.php find :
Code: [Select]
function get_category_html_bits($cat_id = 0, $cid = 0, $depth = 1) {
and replace with :
Code: [Select]
function get_category_list_bits($cat_id = 0, $cid = 0, $depth = 1) {
and find :
Code: [Select]
$category_list .= get_category_html_bits($cat_id, $category_id, $depth + 1);
and replace with :
Code: [Select]
$category_list .= get_category_list_bits($cat_id, $category_id, $depth + 1);

2. in category_list.php find :
Code: [Select]
"categories_list" => get_category_html_bits()
and replace with :
Code: [Select]
"categories_list" => get_category_list_bits()

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) ...