TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 293
  • Total: 293

Category box listing articles by alphabetical order?

Started by animecosmo, February 10, 2007, 11:22:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

softtouch_ph

One more thing: If an article is set to NOT active, it should not be listed... How can I check if the article is active or not to filter it out from the list?

JPDeni

I changed the original code by adding


AND off = 0
AND approved = 1


to the query.

That should do it for you. I also added a check to see if the article is approved.

softtouch_ph


Varment

This is a nice script, it really saved me some time, thanks. I would like to point one thing out that might help some people; the category number is in the url for your article category. ie: Your Forum URL/index.php?cat=5. I also added an OR statement to get multiple categories to show up.
Nice work :D
V

fangweile

I am looking for this also, thanks a lot JPDeni, it works in my forum

This website is proudly hosted on Crocweb Cloud Website Hosting.