News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

March 30, 2020, 10:37:28 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189563
  • Total Topics: 20807
  • Online Today: 62
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 0
Guests: 39
Total: 39

Author Topic: Articles in a category block help  (Read 237 times)

0 Members and 1 Guest are viewing this topic.

Offline spizenet

  • Jr. Member
  • **
  • Posts: 6
Articles in a category block help
« on: March 04, 2020, 10:32:14 AM »

Link to my forum: http://www.massillon.com
SMF version: 2.0.17
TP version: TinyPortal 1.6.5 © 2005-2020
Default Forum Language: English
Theme name and version: Modified version of Inverted by Crip
Browser Name and Version: Microsoft and chrome
Mods installed: TP, SMF gallery lite, 6 custom buttons
Related Error messages: none

So basically my problem is this...  No matter what I change in TP it seems I can't limit the number of articles in a Articles in a category box, change the order, nor can I find any way to try to make them more separated so they are not just a pile of words on top of each other.

Any advise or is there a more customizable block code I could use to achieve this?

Offline spizenet

  • Jr. Member
  • **
  • Posts: 6
Re: Articles in a category block help
« Reply #1 on: March 04, 2020, 11:25:38 AM »
So far I found a suggested code for PHP in the built in suggestions that helped with the listing.  Still can't get it to change the order (newest first vs oldest first) or limit the number of articles without manually moving them to an archive and adding an order value (in reverse).  That's at least workable though.

Offline @rjen

  • Support Team
  • *
  • Posts: 2012
    • FJR-club Nederland
Re: Articles in a category block help
« Reply #2 on: March 06, 2020, 02:08:33 AM »
The standard block functionality is pretty limited as far as I can see.

There are no variables defined for number of articles, sorting of layout.
This can be done, but takes some thinking.

What suggested PHP code are you using now?

If you post it here we may be able to give some sort of solution...
Running TP1.6.4 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info