Change extension from /follower to custom path


no_avatar
CBBJa
 
Mensajes: 17
Registrado: Mié Feb 10, 2021 11:08 pm
 Dom Jul 04, 2021 10:35 pm • a través de Web
Change extension from /follower to custom path

All phpbb extensions allow changing of path in the routing.yml file. But not cbb follower.

It gives a redirect error.

Please how can I change the /follower directory to a custom path like /member in the routing.yml?

Please help.
Avatar de Usuario
IvanPF
Administrador
 
Mensajes: 2029
Registrado: Vie Jun 17, 2011 12:15 am
Ubicación: España (Spain)
 Lun Jul 05, 2021 6:10 pm • a través de Web
Try with this change (apart from the change in routing.yml)

1. Open /ext/canidev/follower/event/listener.php
2. Find (Near line 142):
Código: Seleccionar todo
strpos($this->user->page['page_name'], 'follower') === false


3. In that code, replace follower with your route.

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados