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: 448
  • Total: 449
  • @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.


IchBin

The reason it is not highlighted is because "downloads" in the array does not exist. You'll need to add a bit of custom code to make this work. Add this code after the line $current_action='home';

if (isset($_GET['dl']))
    $current_action='downloads';


That should highlight the button code while in the downloads section. Let me know if it does not work. If it does not, please post the code along with the 5 lines of code above an below. Thanks.


WBA Dude


G6Cad


WBA Dude

Thanks. Will do it tomorrow. Going to bed. Been up all night!!

WBA Dude

Quote from: IchBinâ„¢ on June 14, 2009, 06:53:01 PM
The reason it is not highlighted is because "downloads" in the array does not exist. You'll need to add a bit of custom code to make this work. Add this code after the line $current_action='home';

if (isset($_GET['dl']))
    $current_action='downloads';


That should highlight the button code while in the downloads section. Let me know if it does not work. If it does not, please post the code along with the 5 lines of code above an below. Thanks.



Ok. Doesn't highlight

Attached my index.template.php


Zetan

Quote from: WBA Dude on June 18, 2009, 06:16:37 PM

Ok. Doesn't highlight

Attached my index.template.php



I had tried that already, thought I may have missed something. I'll have another look later, or if IchBin has a solution. I'm a bit busy at the mo.

WBA Dude

Quote from: Zetan on June 18, 2009, 06:25:33 PM
Quote from: WBA Dude on June 18, 2009, 06:16:37 PM

Ok. Doesn't highlight

Attached my index.template.php



I had tried that already, thought I may have missed something. I'll have another look later, or if IchBin has a solution. I'm a bit busy at the mo.

That was for IchBin

Sorry :)

Zetan

Quote from: WBA Dude on June 18, 2009, 06:31:15 PM
Quote from: Zetan on June 18, 2009, 06:25:33 PM
Quote from: WBA Dude on June 18, 2009, 06:16:37 PM

Ok. Doesn't highlight

Attached my index.template.php



I had tried that already, thought I may have missed something. I'll have another look later, or if IchBin has a solution. I'm a bit busy at the mo.

That was for IchBin

Sorry :)

lol, why? we're all on the same team. No worries though :)

WBA Dude

Oh ok. He seemed to know how to do it.

This website is proudly hosted on Crocweb Cloud Website Hosting.