Redirect New Member on First Login to Specific forum ?

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
mrix2000
Registered User
Posts: 616
Joined: Sun Dec 03, 2006 2:23 pm

Redirect New Member on First Login to Specific forum ?

Post by mrix2000 » Wed Apr 24, 2019 7:19 am

Hello all, I was wondering if it would be possible to redirect New members when they login for the first time to a specific forum ?
ie: I am setting up a Beginners page so would be ideal to initially direct New members to this page.
Thanks for any feedback

FlaSerIC
Registered User
Posts: 28
Joined: Tue Nov 27, 2018 9:48 pm
Location: NH, Netherlands

Re: Redirect New Member on First Login to Specific forum ?

Post by FlaSerIC » Wed Apr 24, 2019 7:33 am

I am not sure if this can be done like that, but maybe someone else knows ;-)
As an alternative I edit the emailmessage which is being send after registration (language/nl/email/user_welcome_inactive.txt). I included i.e. a text for membership etc. You could include a call or include a link to visit the beginnerpage.

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69033
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by KevC » Wed Apr 24, 2019 7:57 am

You could use the newly registered users group to block access to all of the other forums until they make 1 post in the only forum they can see and then when that's approved it opens everything else up.

You could do a similar thing with the autogroups extension but without the approval needed.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

.m.
Registered User
Posts: 438
Joined: Wed Nov 04, 2009 8:39 pm

Re: Redirect New Member on First Login to Specific forum ?

Post by .m. » Wed Apr 24, 2019 8:00 am

see login Redirect extension

User avatar
david63
Registered User
Posts: 16063
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by david63 » Wed Apr 24, 2019 8:00 am

David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Scanialady
Registered User
Posts: 265
Joined: Thu Jan 17, 2013 7:09 pm
Location: Germany
Name: Annette
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by Scanialady » Thu Apr 25, 2019 7:45 am

thank you for reactivating this wonderful extension, david63. But there seems to be an adaptation tailored to your personal board, which causes an error message in the normal new forum.

Code: Select all

Fatal error: Uncaught Twig_Error_Loader: There are no registered paths for namespace "david63_topicagewarning" in "@david63_loginredirect/head_panel.html" at line 1. in /www/htdocs/w01873e7/test.scanialady.de/public_html/scde01/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:209 Stack trace: #0 /www/htdocs/w01873e7/test.scanialady.de/public_html/scde01/phpbb/template/twig/loader.php(135): Twig_Loader_Filesystem->findTemplate('@david63_topica...') #1 /www/htdocs/w01873e7/test.scanialady.de/public_html/scde01/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(150): phpbb\template\twig\loader->findTemplate('@david63_topica...') #2 /www/htdocs/w01873e7/test.scanialady.de/public_html/scde01/phpbb/template/twig/environment.php(328): Twig_Loader_Filesystem->getCacheKey('@david63_topica...') #3 /www/htdocs/w01873e7/test.scanialady.de/public_html/scde01/cache/production/twig/86/86b3394f69be9041cc86b40b765fd7c26a1d0f8acff794417ff95f358e89e112.php(24): phpbb\template\twig\environment->findTemplate('@david63_topica...') #4 /www/htdocs/w in /www/htdocs/w01873e7/test.scanialady.de/public_html/scde01/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 209
topicagewarning??

I get this error in ACP - manage extensions - login redirect
Webseite, Blog, Wiki Deutsche Übersetzungen - german language files
My 2 cents: Whether an extension is in the CDB says nothing about its quality. It is more important to read the support topics for it. Better to avoid authors who do not answer support questions themselves, who do not update their stuff, and who do not fix bugs for years.

User avatar
david63
Registered User
Posts: 16063
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by david63 » Thu Apr 25, 2019 7:59 am

Scanialady wrote:
Thu Apr 25, 2019 7:45 am
thank you for reactivating this wonderful extension, david63. But there seems to be an adaptation tailored to your personal board, which causes an error message in the normal new forum.

I get this error in ACP - manage extensions - login redirect
Thanks. Fixed - same link as above.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Scanialady
Registered User
Posts: 265
Joined: Thu Jan 17, 2013 7:09 pm
Location: Germany
Name: Annette
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by Scanialady » Thu Apr 25, 2019 9:55 am

Thank you for this fast fix :) In the new board it works now. But in my live board, where some other extensions are active, I get another error:

Code: Select all

The configuration setting "version_loginredirect" does not exist unexpectedly.
I know I have had this extension installed under phpBB 3.1 - may that be the problem? Leftovers in the database?

hm no... I think it works in the new board because the tables are there from first try. In the live board there are none.
Webseite, Blog, Wiki Deutsche Übersetzungen - german language files
My 2 cents: Whether an extension is in the CDB says nothing about its quality. It is more important to read the support topics for it. Better to avoid authors who do not answer support questions themselves, who do not update their stuff, and who do not fix bugs for years.

User avatar
david63
Registered User
Posts: 16063
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by david63 » Thu Apr 25, 2019 10:00 am

I am guessing that you had the 3.1 version installed and that you have uploaded the 3.2 files "over the top" without disabling and re-enabling the new files. That config var was removed in the latest version
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Scanialady
Registered User
Posts: 265
Joined: Thu Jan 17, 2013 7:09 pm
Location: Germany
Name: Annette
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by Scanialady » Thu Apr 25, 2019 10:06 am

sorry, but no - the extension was deinstalled and the folder deleted with update to phpbb 3.2.

edit://
I tried a fresh new download from github.
I tried clearing cache (some times), delete data, reinstall.
I viewed my database, don't find any entry for this extension.

I am at a loss.
Webseite, Blog, Wiki Deutsche Übersetzungen - german language files
My 2 cents: Whether an extension is in the CDB says nothing about its quality. It is more important to read the support topics for it. Better to avoid authors who do not answer support questions themselves, who do not update their stuff, and who do not fix bugs for years.

User avatar
david63
Registered User
Posts: 16063
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by david63 » Thu Apr 25, 2019 10:50 am

Is that var in the config table?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Scanialady
Registered User
Posts: 265
Joined: Thu Jan 17, 2013 7:09 pm
Location: Germany
Name: Annette
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by Scanialady » Thu Apr 25, 2019 11:09 am

No, the only var "version" I can find is the one of phpBB with value 3.2.5 (and some from other extensions, but not from this)
Webseite, Blog, Wiki Deutsche Übersetzungen - german language files
My 2 cents: Whether an extension is in the CDB says nothing about its quality. It is more important to read the support topics for it. Better to avoid authors who do not answer support questions themselves, who do not update their stuff, and who do not fix bugs for years.

User avatar
david63
Registered User
Posts: 16063
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by david63 » Thu Apr 25, 2019 2:31 pm

As far as I can see that error comes from running the migration files but I am unable to reproduce the error. Is there anything "left over" in the migrations table?

(P.S. - Thank you)
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Scanialady
Registered User
Posts: 265
Joined: Thu Jan 17, 2013 7:09 pm
Location: Germany
Name: Annette
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by Scanialady » Thu Apr 25, 2019 3:03 pm

Ah! Yes!

david63\loginredirect\migrations\version_1_0_0 I find in migrations table after delete data. Seems we are on the right way. That was the problem! After deleting this entry it works :D

Seems the old 3.1 version was not removed completely.
Webseite, Blog, Wiki Deutsche Übersetzungen - german language files
My 2 cents: Whether an extension is in the CDB says nothing about its quality. It is more important to read the support topics for it. Better to avoid authors who do not answer support questions themselves, who do not update their stuff, and who do not fix bugs for years.

User avatar
david63
Registered User
Posts: 16063
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Redirect New Member on First Login to Specific forum ?

Post by david63 » Thu Apr 25, 2019 3:14 pm

Scanialady wrote:
Thu Apr 25, 2019 3:03 pm
After deleting this entry it works
Pleased it is sorted - can sleep peacfully tonight now :D
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

Post Reply

Return to “Extension Writers Discussion”