This board is the new home for david63's extensions.

All of the extensions hosted here will need to be treated as a new install as there is no migration from the original ones to these, and furthermore, no support will be given to migrating to any of these extensions from previous versions.


Due to the selfishness of certain board members it has become necessary to apply a limit of how many downloads each member can make before making a donation. Once a donation has been made then you will have unlimited downloads.

[3.3.1] Login Redirect

Fully working extensions
User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

[3.3.1] Login Redirect

#1

Post by devspace »

Login Redirect:

Redirects a user to a chosen topic/announcement when they log in.

Compatibility:

Image Image

Image

Notes:

If you are using any other version of this extension then it must be Disabled /Delete data and the original files deleted before installing this version - you will loose all settings.

Features:
  • Select topic for redirection.
  • Able to automatically redirect to the latest announcement posted.
  • Able to redirect new users to a topic.
  • Able to redirect a selected group (or all groups) to a specified topic.
  • Option to show a redirect message
Language(s):
  • en
Version:
  • 3.3.1
Installation:
  • Download the latest release and unzip it.
  • Upload the unzipped files to [board root]/ext/devspace/loginredirect and enable it in the ACP
Configuration:
  • ACP
  • Extensions
  • Login redirect
  • Manage redirects
Extension Download:

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

[3.3.1] Login Redirect

#2

Post by devspace »

Announcements:

[20/11/2022] Updated to 3.3.1 - bug fix

Notara
Donor
Donor
Posts: 8
Joined: November 2022

Re: [3.3.0] Login Redirect

#3

Post by Notara »

Thank you for this release. Unfortunately, I also get an SQL error when logging in with this version. If not immediately, then at the latest when logging in again.

Code: Select all

SQL ERROR [ mysqli ]

Unknown column 'POST_ANNOUNCE' in 'where clause' [1054]
My settings:

Image


PHP: 7.3
phpBB: 3.3.8

Notara
Donor
Donor
Posts: 8
Joined: November 2022

Re: [3.3.0] Login Redirect

#4

Post by Notara »

Code: Select all

SQL ERROR [ mysqli ]

Unknown column 'POST_ANNOUNCE' in 'where clause' [1054]

SQL

SELECT topic_id, topic_time FROM phpbb_topics WHERE topic_type = POST_ANNOUNCE ORDER BY topic_time DESC LIMIT 1

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1023
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/mysql_base.php
LINE: 45
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 296
CALL: phpbb\db\driver\mysql_base->_sql_query_limit()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 337
CALL: phpbb\db\driver\driver->sql_query_limit()

FILE: [ROOT]/ext/devspace/loginredirect/controller/main_controller.php
LINE: 130
CALL: phpbb\db\driver\factory->sql_query_limit()

FILE: [ROOT]/ext/devspace/loginredirect/event/listener.php
LINE: 90
CALL: devspace\loginredirect\controller\main_controller->loginredirect()

FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 214
CALL: devspace\loginredirect\event\listener->login_redirect()

FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 44
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()

FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 62
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()

FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()

FILE: [ROOT]/includes/functions.php
LINE: 2383
CALL: phpbb\event\dispatcher->trigger_event()

FILE: [ROOT]/adm/index.php
LINE: 37
CALL: login_box()

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

Re: [3.3.1] Login Redirect

#5

Post by devspace »

Notara wrote: 19 Nov 2022, 19:43
I also get an SQL error when logging in with this version
Fixed - see above

Notara
Donor
Donor
Posts: 8
Joined: November 2022

Re: [3.3.1] Login Redirect

#6

Post by Notara »

Perfect - thank you. Now it seems to work as expected. :)

Notara
Donor
Donor
Posts: 8
Joined: November 2022

Re: [3.3.1] Login Redirect

#7

Post by Notara »

Note: I found a small typo in services.yml regarding the display of the QR code image

Code: Select all

            $ext_images_path: '%core.root_path%ext/devspace/download/adm/style/images'
There is no folder "download" . The image can be found in /adm/style/images instead.

User avatar
Fredisland
Donor
Donor
Posts: 7
Joined: May 2023

Re: [3.3.1] Login Redirect

#8

Post by Fredisland »

Hello,

Here's the FRENCH translation for devspace loginredirect 3.3.1.

Have a good day 😊.
You do not have the required permissions to view the files attached to this post.

The Good
Member
Member
Posts: 4
Joined: June 2023

Re: [3.3.1] Login Redirect

#9

Post by The Good »

thank you ... I will try..

fanSte1986
Donor
Donor
Posts: 1
Joined: September 2023

Re: [3.3.1] Login Redirect

#10

Post by fanSte1986 »

Hi,

Thank you for creating this plugin. I've just installed the plugin for the first time on my phpbb 3.3.10 board. I want users who are in the default registered users group be redirected to my topic on ID number 10. I just created a new test user, but he won't get redirected when he logged in. It's still redirecting to the index page after login.

Do I mis something? Thank you for your help. "User login redirect enable" is enabled.
Screenshot_20230922_143407_Chrome.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by fanSte1986 on 22 Sep 2023, 12:48, edited 1 time in total.

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

Re: [3.3.1] Login Redirect

#11

Post by devspace »

It is probably a timing issue between when the topic was created and when the user logged in.

The user needs to be logged out when the topic is created.

wads24
Donor
Donor
Posts: 3
Joined: January 2023

Re: [3.3.1] Login Redirect

#12

Post by wads24 »

I love this extension very much; it functions perfectly, but I just want to point out one thing that I noticed.

When attempting to log into the admin, it still redirects to the topic.

Also, a suggestion would be to add an option to redirect to a URL. For example, I would like to redirect new users to my donation page. 😊. Maybe even redirect to forum id

Just some friendly suggestions, but the extension is awesome. 👍

sonic8989
New Member
New Member
Posts: 2
Joined: October 2023

Re: [3.3.1] Login Redirect

#13

Post by sonic8989 »

Hello Davi63, yesterday my hosting provider updated to php8 and I am having an error when logging in. and it is no longer possible for me to return to php7

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/devspace/loginredirect/controller/main_controller.php on line 135: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/devspace/loginredirect/controller/main_controller.php on line 137: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1813: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3035)

sonic8989
New Member
New Member
Posts: 2
Joined: October 2023

Re: [3.3.1] Login Redirect

#14

Post by sonic8989 »

The problem was fixed, I uninstalled the extension completely and reloaded it and it works perfectly.