How to provide Name and Email field for Guset User?



  • Hi,
    I want to customize this user experience such that, when unregistered users share their Replies and Comments, a UI overlay should pop-up prompting Name & Email Address. Then this Name which gets inputted should be displayed in place of "Guest". For implementing this functionality do I need top make changes in core nodeBB files or we can write separate plug-in for this ?

    Any help would be greatly appreciated.
    Thanks!!!


  • Plugin & Theme Dev

    @akumbhare this is probably what you are looking for. scheduled for v0.6.1
    https://github.com/NodeBB/NodeBB/issues/2569

    It doesn't prompt for an email address but the guest user can specify a name.

    julianlam created this issue in NodeBB/NodeBB

    closed Guest Handles #2569



  • Now I need to implement this functionality, Can you please tell me some guidelines to achieve this functionality .



  • @akumbhare find the guest username entry within master. Replicate it but for email addresses?



  • Hi,
    I downloaded the latest source code from the working master branch of NodeBB source code.
    After that, I am able to see "Allow guest handles" into "GUEST" option in ACP settings.
    So here I have to provide "GUEST" Email option such as user-name using "PLUGIN".
    Through PLUGIN, I have to provide option for for email into UI similar to Username as well as I need to insert that email into database.
    How can I provide UI for email input field and stores this email value respective to that post in database using my custom plug-in?



  • Hi,
    When GUEST user created new topic providing his name,
    In the recent post page it shows " -- minutes ago by Guest",
    also hovering on topic image "Guest" tool-tip appears. I think it must show GUEST user name.
    Are you nodeBB guys working on this issue or this issue has completed?

    Please see attached screenshots:



  • @akumbhare Have you turned the option on in the ACP?



  • @akumbhare said:

    Hi,
    I downloaded the latest source code from the working master branch of NodeBB source code.
    After that, I am able to see "Allow guest handles" into "GUEST" option in ACP settings.
    So here I have to provide "GUEST" Email option such as user-name using "PLUGIN".
    Through PLUGIN, I have to provide option for for email into UI similar to Username as well as I need to insert that email into database.
    How can I provide UI for email input field and stores this email value respective to that post in database using my custom plug-in?

    Please refer my above comment. Yes I have turn on option in ACP.


  • Admin

    Are you saying that there are some places where the Guest Handles are not showing?

    Are they showing up properly in the topic/post itself?



  • @julian @a_5mith Yes, On the recent topic page (EX. http://localhost:4567/recent) the Guest Handles are not showing.
    Instead of guest handles it shows "Guest" keyword.

    Following is the screenshot for the same:



  • Hi,
    Can you point me to that location, where I can find and extend the USER model, to include the USER EMAIL ADDRESS ?
    The expectation is that the EMAIL ADDRESS should be persisted in the DB and be available across USER login sessions.


 

| |