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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 436
  • Total: 436

Button text

Started by Rabain, October 04, 2007, 08:31:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lebisol

#20
I think this is a leftover from the default template but I didn't know where it is used...this has to be commented out in order to use Cortina's advice...according to my test, I am just not sure what consequences it has.

Quote from: J.A.Cortina on October 04, 2007, 10:34:46 PM
....
As also noted in above posts, the 'action taken is 'tpmod'. Appending the ';dl' simply gives an unnamed parameter to the URL 'command' line which can be used by the script to discern WHICH TP Module is to be run. But the action is NOT 'tpmod;dl'.

QuoteIts not action=dlmanager its action=tpmod;dl

So which one is it?  Sorry to nag just want to make sure I don't push outbad template ???

I have got it working with:
if (isset($_GET['dl']))
$current_action = 'tpmod';

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


Thanks so much!!!

This website is proudly hosted on Crocweb Cloud Website Hosting.