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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 430
  • Total: 431
  • @rjen

Using tpdownload, need a tab

Started by WBA Dude, June 13, 2009, 04:30:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zetan

You know.. these are getting tiring.

ALL themes are DIFFERENT, they have Different menus. Are you going to use the Default theme?
Or, are you going to install a custom theme, you know, for your band? The default theme does what it does, but it's bland and not really eye candy for a music site.


WBA Dude

I am using the default theme!  I won't change!


Zetan

Righty then.. Give me 5 - 10 mins...


Zetan

in the Default Theme index.template.php file:

Code (Find) Select


// Work out where we currently are.
$current_action = 'home';
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', )))




Code (Replace With) Select


// Work out where we currently are.
$current_action = 'home';
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', 'downloads')))




Code (Find) Select


// The end of tab section.
echo '
<td class="maintab_' , $last , '">&nbsp;</td>




Code (Add Before) Select


// Show the [downloads] button.
echo ($current_action == 'tpmod;dl' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'tpmod;dl' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=tpmod;dl">' , $txt[downloads] , '</a>
</td>' , $current_action == 'tpmod;dl' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';




Open: /Themes/default/languages/index.english.php

Code (Find) Select


$txt['attach_times'] = 'times';




Code (Add After) Select


$txt['downloads'] = 'downloads';




Let me know if it works :)

WBA Dude

IT WORKS!  Thank You So Much!

www.chillbandforum.tk

Zetan

Great :up:

Please, in future.. follow the posting guide and be descriptive. It helps us to help you :)


Thanks

Zetan

Ok, it's not working quite right as the tab isn't staying highlighted, I'll get back with a fix.

WBA Dude

ok. I moved the tab so it was in the middle. Not at the end

Zetan

:) cool.

I have to go out for a while, lunch with some friends. I'll be back to take a look at the tab highlight later.

This website is proudly hosted on Crocweb Cloud Website Hosting.