TinyPortal

Development => Support => Topic started by: HugiN on March 08, 2011, 02:47:06 PM

Title: Don't show child categories link
Post by: HugiN on March 08, 2011, 02:47:06 PM
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

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb2%2Fremovechildcategoriestrjjr.png&hash=812fa1f97546b1a710653334a26ad89a8e415d9f) (http://www.abload.de/image.php?img=removechildcategoriestrjjr.png)

Just wonder why this link still shows up. I've disabled it under "Display any child categories?". What else can i do?
Title: Re: Don't show child categories link
Post by: HugiN on March 10, 2011, 04:55:49 PM
bump ;)
Title: Re: Don't show child categories link
Post by: WillyP on March 12, 2011, 01:28:14 AM
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.
Title: Re: Don't show child categories link
Post by: WillyP on March 12, 2011, 01:56:27 AM
Bug reported: TinyPortal Bug tracker - Issue #70: 'Display any child categories?' set to no still shows child category link. (http://www.tinyportal.net/index.php?issue=70.0)
Title: Re: Don't show child categories link
Post by: IchBin on March 28, 2011, 08:39:14 PM
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.