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

Recent

Welcome to TinyPortal. Please login or sign up.

April 25, 2024, 10:34:51 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 319
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 190
  • Total: 191

Articles being Chopped

Started by clothahump, February 14, 2011, 08:27:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

clothahump

Quote from: IchBin™ on February 22, 2011, 05:49:34 PM
Actually, I just opened the file after downloading it again and I think I found it.

In TPortal.php find this on about line #820
// should we supply links to articles in same category?
if(in_array('category', $context['TPortal']['article']['visual_options']))
{
$request =  tp_query("SELECT id, subject, shortname
FROM " . $tp_prefix . "articles
WHERE category=" . $context['TPortal']['article']['category'] . "
AND off=0
AND approved=1", __FILE__, __LINE__);


Just change the last line to be this instead and see if it works.
AND approved=1 ORDER BY subject", __FILE__, __LINE__);

Just a heads up that this was not included in the latest version.  ???

IchBin

I didn't plan on changing it for everyone. You are one of maybe just a couple of people that wanted it listed this way. I'd much rather just add a display option down the road.