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,220
  • Total Topics: 21,352
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 265
  • Total: 265

Issue with editing entries on top menu bar

Started by raenk, October 01, 2006, 12:35:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

G6Cad

I dont remember what button code you had there.
But check the code, and if this line is there

if ($context['allow_downloads'])

remove it from the code and check if it works

raenk

Thanks Mrs G6

The code is in my first post, and no, that line is not there

akulion

#12
the admin tag can be easily fixed

u have declared it 2 times, so remove one entry

as for the downloads one, i dont know whats causing this since u have the correct code there...im still looking though

akulion

just another suggestion...

after this bit of code:


if ($context['current_action'] == 'search2')
$current_action = 'search';


try adding this:


if ($context['current_action'] == 'tpmod;dl')
$current_action = 'downloads';

raenk

Admin is fixed now, but i forgot to mention that with forums happens the same, while in the board index (url being 'action=forum') the button highlights correctly, but when inside a topic (url being 'board=1.0') the highlight falls back to HOME. This seems obvious since it lose the current action condition, but I dont know how to specify a general condition about the 'board' item.

The 'downloads' issue remains the same. What you suggested make a lot of sense, but isnt picking up.

Thanks

raenk

Ok, I got it, finally.

I changed 'tpmod;dl' to 'tpmod'.

Somehow I became suspicious that maybe that ; could be causing the problem since it's used to end the sentences/declarations or whatever (really dont know anything about php)

Admin and downloads fixed, one more to go (Forums)

akulion

topics is because I believe you are missing this:


if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';



Add the above BELOW the following code:


if ($context['current_action'] == 'search2')
$current_action = 'search';


and see if it fixes it

raenk

Yep, everything is fixed now.

Thanks akulion !


This website is proudly hosted on Crocweb Cloud Website Hosting.