1
Bleekk
tdmdownloads categories block
  • 2015/2/5 21:44

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


hi all,

I need a block which display all categories created in tdmdownloads module.

is someone there who is able to write such a block?


thanks!



2
zyspec
Re: tdmdownloads categories block
  • 2015/2/6 23:54

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I can look at it... I haven't "played" with tdmdownloads much but I'm sure it can't be too difficult to create a category block.

- Which version of tdmdownloads are you wanting to use?
- XOOPS version?
- PHP version?

3
Bleekk
Re: tdmdownloads categories block
  • 2015/2/7 0:50

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


thank you very much!

I am using the latest xoops and this tdmdownloads version
http://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/TDMDownloads/trunk/

4
zyspec
Re: tdmdownloads categories block
  • 2015/2/7 14:26

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I will try and look at this in the next day or so. I am away from my computer most of today and tomorrow.

I do have a few Block Settings (Preferences) questions:
- Do you want the block to show all categories or only top level categories?
- Do you want the block to show images if the category has images?

5
Bleekk
Re: tdmdownloads categories block
  • 2015/2/7 16:40

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


Block Preferences: only to select which top level categories to display
Display: only top level and without images. Only text (link to the category)

Thank you again

6
zyspec
Re: tdmdownloads categories block
  • 2015/2/11 4:10

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Bleekk,

I have checked in 2 new category blocks for you to try. One allows you to list categories (and subcategories if you want) in a list. The second block displays a HTML dropdown (select) box with the categories.

There are some block Preferences to give you flexibility in what you want to display. I did not take a lot of time formatting the template so you may want/need to adjust them some.

Let me know if this works for you.

http://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/TDMDownloads/branches/zyspec/

7
Bleekk
Re: tdmdownloads categories block
  • 2015/2/11 10:07

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


hi,

thank you very much! this is awesome community work!
I will test as soon as I get home frome work

8
Bleekk
Re: tdmdownloads categories block
  • 2015/2/11 20:28

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


Hi,

The list categories block works perfectly! thank you!

The category dropdown block doesn't work
here the debugger msg:
Class 'XoopsObjectTree' not found in \htdocs\xoops2571\modules\TDMDownloads\blocks\tdmdownloads_cat_selbox.php on line 79

9
zyspec
Re: tdmdownloads categories block
  • 2015/2/11 21:46

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


This is really strange. I believe it has to do with the other blocks I have loaded on my page - it worked here. It is interesting that the list category block works on your site, although this bug wouldn't show up if you don't show subcategories.

I have fixed it and placed the fixed files (both of the ./blocks category php files) on SVN. Please download it again to see if this solves the issue.


10
Bleekk
Re: tdmdownloads categories block
  • 2015/2/18 8:51

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


thanks!
It works perfect, just like I wanted

Login

Who's Online

291 user(s) are online (191 user(s) are browsing Support Forums)


Members: 0


Guests: 291


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits