Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2457

Extensions in Development • Re: [3.3][BETA] 2025 overhaul of 3D-I Top Poster of the Month (TPotM) extension for phpBB 3.3.x

$
0
0
This part of your event/listener breaks the viewonline function for all custom pages:

Code:

public function viewonline_page($event){/** * Check permissions prior to run the code */if ($this->tpotm->is_authed() && $this->tpotm->is_hall()){if ($event['on_page'][1] === 'app' && strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/') === 0){$event['location'] = $this->user->lang('VIEWING_TPOTM_HALL');$event['location_url'] = $this->helper->route('threedi_tpotm_controller');}}}
This fixes it, correct or not:

Code:

public function viewonline_page($event){if ($event['row']['session_page'] === 'app.' . $this->php_ext . '/hall_of_fame' ||$event['row']['session_page'] === 'app.' . $this->php_ext . '/hall_of_fame.php'){$event['location'] = $this->language->lang('VIEWING_TPOTM_HALL');$event['location_url'] = $this->helper->route('threedi_tpotm_controller');}}

Statistics: Posted by Stoker 4.0 — Thu May 29, 2025 6:38 am



Viewing all articles
Browse latest Browse all 2457

Trending Articles