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,966
  • Latest: safir45
Stats
  • Total Posts: 195,990
  • Total Topics: 21,323
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 342
  • Total: 342

How to remove this from the frontpage?

Started by javier, December 18, 2009, 03:34:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

javier

Hi,
I want to know how to remove this from the frontpage, i saw in some sites and im not found a way to remove.

I attached a image showing what i want to remove, i think its called "link tree" i only want to remove from the portal frontpage, not from the whole site or the forum index.

Tinyportal version: 0.983
My frontpage configuration its:

What to show on front page: Front page blocks
How frontblocks will be shown: Frontblocks are added first

Visual options for frontpage:
Left side blocks on
Right side blocks on
Center-Blocks on
Show userinfo/news at the top on

Thanks in advance.

desde ya muchas gracias
saludos

IchBin

I'm not sure which one that is. Try opening the TPmodules.template.php file in the default theme and commenting out this code. It's close to the top of the file.
        // show the linktree
        theme_linktree();


Comment out like this:
        // show the linktree
        //theme_linktree();


See if that works. If not, post back and I'll take another look.

javier

Hi thanks for reply, not works but i made the following:

In TPortal.template.php i made this modification and remove out the linktree from frontpage only :) i think.

   // show the linktree
   //if((isset($context['TPortal']['boardnews'][0]['options']['linktree']) && $context['TPortal']['front_type']!='frontblock') || $context['TPortal']['front_type']=='frontblock')
   //   echo '
   //<div style="margin-bottom: 4px;">', theme_linktree() , '</div>';

ItÃ,´s thats ok or these lines are necessary for other sections?
grettings
Javier

IchBin

I think that is only for displaying on frontpage, and above articles if set in article options. Should be ok. You can always revisit this if you need it to display for some other reason.

This website is proudly hosted on Crocweb Cloud Website Hosting.