SimplePortal

Customization => Custom Coding => Topic started by: yaosurfer on April 03, 2012, 05:25:52 PM

Title: SP 2.3.5 and LinkTree removal
Post by: yaosurfer on April 03, 2012, 05:25:52 PM
Hello,

Can anyone tell how to remove the link tree from:

1. main page
2. any other sub-pages

After installing 2.3.5 the old method seems to drop error message?

Old steps: Sources/PortalMain.php > $actions[$_REQUEST['sa']][1](); > $context['linktree'] = array(); $actions[$_REQUEST['sa']][1]();

Thanks!
Title: Re: SP 2.3.5 and LinkTree removal
Post by: ccbtimewiz on April 03, 2012, 06:03:14 PM
Open ./Sources/Subs-Portal.php

Find:
Code: [Select]
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
//if (empty($context['linktree'][1]))
// $context['linktree'] = array();

Replace with:
Code: [Select]
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
if (empty($context['linktree'][1]))
$context['linktree'] = array();
Title: Re: SP 2.3.5 and LinkTree removal
Post by: yaosurfer on April 04, 2012, 03:00:45 AM
that did the trick

thank you Leekoberries
SimplePortal 2.3.8 © 2008-2024, SimplePortal