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,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 231
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 124
  • Total: 124

Don't show child categories link

Started by HugiN, March 08, 2011, 02:47:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HugiN

Link to my site: http://www.newerth.com/forum
SMF version: 2.0 RC5
TP version: 1.0 RC1
Default Forum Language: English
Theme name and version: BlocWeb Gamerz Premium Theme
Browser Name and Version: Mostly Firefox
Mods installed: Tiny Portal & Aewa Media



Just wonder why this link still shows up. I've disabled it under "Display any child categories?". What else can i do?

HugiN


WillyP

I have just tested this on my site and I think you have found a bug.  The radio button for 'Display Child Categories' seems to have no effect.


IchBin

Open TPortal.template.php file.
Code (find) Select
if(!empty($context['TPortal']['clist']))

Code (replace with) Select
if(!empty($context['TPortal']['clist']) && $context['TPortal']['category']['options']['showchild'] == 1)

I'm not sure if this affects other parts of the way TP functions so please report back if you see any errors in the log for this.

This website is proudly hosted on Crocweb Cloud Website Hosting.