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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 500
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 108
  • Total: 108

Forum links (help, search, members etc) on front page

Started by katoona, May 10, 2007, 02:48:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

katoona

Is there any way I can place the forum links on the frontpage?

Any help will be appreciated.  ;D


katoona


Shadow

Well, Yes, You can add links to the frontpage on tiny portal.

You always can add them in a Menu Manager and have it on the right or left.  Of if you are using a frontblock you can put links on there too

katoona

On the Novelty theme the links underneath the logo to the left are there on every page, but in the TP Style theme they are not present on the frontpage, and I have tried every possible setting.


tick

Find  in you index template.php   


// check if the no-forum general variable is set
   if(isset($context['TPortal']['not_forum']) && $context['TPortal']['not_forum'])
      $is_forum=false;


and change to
// check if the no-forum general variable is set
   if(isset($context['TPortal']['not_forum']) && $context['TPortal']['not_forum'])
      $is_forum=true;


I did just a quick test on this and it seemed fine.    Make a backup first.

katoona


tick


katoona

one more thing - when I enter the forum the forum button lights up (current action), but I also want the forum button to light up when I enter an article. Is is possible to create an action for this?

katoona

Quote// Work out where we currently are.
   $current_action = 'home';
   $is_forum=true;
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers'))){
      $current_action = 'admin';
   }
   if (in_array($context['current_action'], array('bugtracker','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin'))){
      $current_action = $context['current_action'];
   }
   if ($context['current_action'] == 'search2'){
      $current_action = 'search';
   }   

Somewhere in this code? (Current action= article) if possible?

This website is proudly hosted on Crocweb Cloud Website Hosting.