Menu of custom HTML-sites not highlighted, when clicked

Started by TedTeddy, 7 years ago

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

TedTeddy

*
7 years ago
Hi there!

Website: www.BarbaraPortal.de.vu

Seems to be a little problem, but I don't know how to solve it. First I've created a html-site within PortaMX named "Zeltlager". The I've manipulated the "subs.php" and inserted another menu named "Zeltlager" with the following code:
Code Select
'zeltlager' => array(
'title' => 'Zeltlager',
'href' => $scripturl . '?spage=Zeltlager',
'show' => true,
'sub_buttons' => array(
),
),

It works... When a user clicks on the new menu-button the site opens and displays correctly. But the menu-button "Zeltlager" isn't highlighted. Instead the first menu-button is highlighted. It would highlight, if I  add "?action=Zeltlager" to the "href", but the the html-site doesn't load.

Any hint?

Feline

*
#1
7 years ago
In the Subs.php around line 4170 find:
Code Select

elseif ($context['current_action'] == 'login2' || ($user_info['is_guest'] && $context['current_action'] == 'reminder'))
$current_action = 'login';
elseif ($context['current_action'] == 'groups' && $context['allow_moderation_center'])
$current_action = 'moderate';


Add after:
Code Select

elseif (isset($_REQUEST['spage']) && $_REQUEST['spage'] == 'Zeltlager')
$current_action = 'zeltlager';
Many are stubborn in relation to the way, but less in relation to the target.

TedTeddy

*
#2
7 years ago
Thanks again feline! You're great! :) Works great, again! :)

* Shouts

Feline
5 months ago
Today we update our Forum to the Version 1.45
Feline
8 months ago
Today we update our Forum to Version 1.4
This release is full compatible with the EU GDPR
Feline
10 months ago
Update for PortaMx 1.54 ecl released.
With this updates the Portal works with PHP 7.x and SMF 2.0.15
Feline
10 months ago
PortaMx Forum 1.3
released !

*
Feline
a year ago
Today we switched to PHP 7.2 and activate Opcode caching.
Fast .. Very fast *
Feline
a year ago
Today we upgrade our old SMF 2.0 Forum to PortaMx Forum *

* Calendar

Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28