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

0 Members and 1 Guest are viewing this topic.

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 #45 on: November 15, 2005, 07:47:13 AM »
And did u add the needed tags in the 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 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 #46 on: November 15, 2005, 08:41:06 AM »
Ok thank you very much v@no for the tipp.
I missed to add some tags in the category_list.html file and first i did not find out.
But now it is working.  :D

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #47 on: March 10, 2006, 06:31:58 PM »
hi every one
how can I add the {categories_list}
to another template
like for example left_menu.html which is going to be in all the templates

{categories_list} worked for the home.html

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #48 on: March 17, 2006, 07:28:28 PM »
@ v@no

How can we add "Subcategories in Control Panel categories overview can be expanded/collapsed" of 1.7.2 to the code you gave here: http://www.4homepages.de/forum/index.php?topic=8682.msg40823#msg40823

Thanks

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #49 on: June 09, 2007, 04:55:40 AM »
hi mawenci and vano nice mod :D
i have used this mod to a menu, and i only want to show main categories. that's ok, but it don't count new images in subcategories and only show the number of new images in main categorie. i tried it with a count but it doesn't works fine.. please i need help, could you help me please?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #50 on: June 09, 2007, 05:03:38 AM »
hi every one
how can I add the {categories_list}
to another template
like for example left_menu.html which is going to be in all the templates

{categories_list} worked for the home.html
is too late but it works in page_header.php if you add
Code: [Select]
$html_cat_cache = $cat_parent_cache;
$site_template->register_vars(array(
  "categories_list" => get_category_html_bits()
));
and delete the code from index.php


ok i fix my problem.. a demo: http://www.myart.es
« Last Edit: June 10, 2007, 10:18:30 AM by ccsakuweb »
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ashfaq

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #51 on: June 13, 2007, 04:12:34 AM »
This mod work great, Thanks
I need some modifications in it, I wanna add a seperate line after every category, Also how to change folder icon with side categories and its size ?

Category 1
--------------
Category 2
--------------
Category 3...

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #52 on: June 15, 2007, 10:48:58 AM »
here is the line that you have to modify:
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><br />";for the separator after
Code: [Select]
<br />add in the line
Code: [Select]
--------------<br />
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #53 on: June 18, 2007, 03:52:01 AM »
hi! i added thiis list of links in page header and then i can use it like a menu. demo: www.myart.es
but after install this mod, my website has problems about the quota of my server. They said me that it is because i use more than 20%cpu, or there is some ineficient algorithm.. Is because this mod in all my pages??? in page header??

thank you in advance
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline killer007

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #54 on: October 09, 2007, 08:25:15 AM »
Hello can any body tell me how to make it like this
Main category [Bold or Different Color]
 Sub Category [Normal or Different Color]

Any Body ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #55 on: January 29, 2008, 03:13:49 AM »
With this MOD, is no possible for set LIMIT - category cache is use same for thumbnails categories in categories.php file.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline FrankUSA

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #56 on: August 28, 2008, 06:52:19 AM »
The code below is work fine, it does show up the number images, but what if that category doesn't have any image, it didn't show the number ( 0 ), how do I make that work ?

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> - ( Images: ".$cat_cache[$category_id]['num_images']." ; Hits: ".$cat_cache[$category_id]['cat_hits']." )<br />";

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 #57 on: August 28, 2008, 07:18:55 AM »
$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]['num_images'] ? " Images: ".$cat_cache[$category_id]['num_images']." ;" "")." Hits: ".$cat_cache[$category_id]['cat_hits']." )<br />";
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 FrankUSA

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [REQ] List links for all Categories and Subcategories in one page.
« Reply #58 on: September 09, 2008, 05:55:46 PM »
Great small change V@no .. but it will receive an errors msg from latest gallery page how can you make the same class color like the middle category look ? (blue color link) ??
« Last Edit: September 09, 2008, 06:34:04 PM by FrankUSA »

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 #59 on: September 10, 2008, 05:12:04 AM »
Sorry, I don't understand your question.
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)