Skip to content

[ticket/10073] Add a contact administrators page and refactor email forms#2290

Merged
naderman merged 36 commits intophpbb:develop-ascraeusfrom
nickvergessen:ticket/10073
Jun 9, 2014
Merged

[ticket/10073] Add a contact administrators page and refactor email forms#2290
naderman merged 36 commits intophpbb:develop-ascraeusfrom
nickvergessen:ticket/10073

Conversation

@nickvergessen
Copy link
Copy Markdown
Contributor

The message to be displayed on top of the email form cannot be configured yet.

http://tracker.phpbb.com/browse/PHPBB3-10073
http://area51.phpbb.com/phpBB/viewtopic.php?f=84&t=39804

Replaces #210

todo

@nickvergessen
Copy link
Copy Markdown
Contributor Author

phpBB > sniff:
FILE: /home/travis/build/phpbb/phpbb/phpBB/phpbb/message/topic_form.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
106 | ERROR | Functions must not contain multiple empty lines in a row; found
    |       | 2 empty lines
    |       | (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
--------------------------------------------------------------------------------

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you should use $user->lang(); here.

@nickvergessen nickvergessen changed the title [WIP] [ticket/10073] Add a contact administrators page and refactor email forms [ticket/10073] Add a contact administrators page and refactor email forms May 3, 2014
@nickvergessen
Copy link
Copy Markdown
Contributor Author

Added the ACP module.
Should be ready now

Comment thread phpBB/includes/functions.php Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sendpassword?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copied the wrong link

@naderman
Copy link
Copy Markdown
Member

naderman commented May 7, 2014

Yay :) @Marshalrusty can you give this a test and see if you're happy with how it works?

Comment thread phpBB/includes/acp/acp_contact.php Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Should probably get this from the container. It is a service.

@Marshalrusty
Copy link
Copy Markdown
Member

A couple of things I noticed.

If the board is disabled, the contact page is inaccessible. This is probably a usecase for when it's quite useful, so I'd make it available in as many cases as possible.

Also, on the ACP config page, "disable BBCode" and "DIsable smilies" are checked by default.

I would also suggest renaming “Contact Us” settings to "Contact page settings" (without the quotes) to match the rest of the options there.

@iMattPro
Copy link
Copy Markdown
Member

Since the BBCode editor code from the acp_user_signature.html is being duplicated here, maybe now would be a good time to split the BBCode editor code out into its own acp_posting_buttons.html file, which could be included here and in acp_users_signature.html (and then extensions could use it more easily in the ACP as well).

@naderman
Copy link
Copy Markdown
Member

I'd be very much in favour of doing that.

@nickvergessen
Copy link
Copy Markdown
Contributor Author

Everything should be fixed. But it requires https://tracker.phpbb.com/browse/PHPBB3-12570 to be fixed

@nickvergessen
Copy link
Copy Markdown
Contributor Author

Rebased onto develop-ascraeus, so this should be ready for another review

@nickvergessen
Copy link
Copy Markdown
Contributor Author

Rebased onto develop-ascraeus, so this should be ready for another review

@EXreaction
Copy link
Copy Markdown
Contributor

I thought we had decided (for the fourth or fifth time now) to not add more features into 3.1 and instead put them into 3.2...

@Marshalrusty
Copy link
Copy Markdown
Member

As long as you agree to start answering phpBB.com email, I have no objections to this waiting until 3.2 :)

@n-aleha
Copy link
Copy Markdown
Contributor

n-aleha commented Jun 4, 2014

I kinda have the same problem. Contact via email is not the way to go nowadays, at least should not be the only way.
Sure, phpBB needs a few things here and there and now is not the time for them, but I do not want to imagine that phpBB will introduce a new version which doesn't include a component such as this.

Comment thread phpBB/memberlist.php
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think this should be put into the memberlist, even if the functionality is similar.

@EXreaction
Copy link
Copy Markdown
Contributor

All this does is send the administrator an email, so I don't know what either of you are trying to argue for.

If another developer wants to continue the never ending feature creep into 3.1, they can feel free to merge this, I've already voiced my opinion.

@nickvergessen
Copy link
Copy Markdown
Contributor Author

@EXreaction there is now a way to mail the admins so people dont use the copyright link and end up sending us the email instead.

@Marshalrusty
Copy link
Copy Markdown
Member

The previous two things I mentioned are still there, it seems. To quote:

  1. If the board is disabled, the contact page is inaccessible. This is probably a usecase for when it's quite useful, so I'd make it available in as many cases as possible.
  2. Also, on the ACP config page, "disable BBCode" and "DIsable smilies" are checked by default.

Additionally, the button would probably be better as "Send Message" or "Send Email" rather than just "Email".

Otherwise, this can be merged.

@Marshalrusty
Copy link
Copy Markdown
Member

@nickvergessen
Copy link
Copy Markdown
Contributor Author

  1. If the board is disabled, the contact page is inaccessible. This is probably a usecase for when it's quite useful, so I'd make it available in as many cases as possible.

This works for me (did you fetch the newest changes before testing it again? ;) )

The check boxes are fixed

Button text has been updated

@Marshalrusty
Copy link
Copy Markdown
Member

I tested this when the install directory was there. It works fine when the board is disabled, but not when the install directory is there. If it's not too difficult to fix, I'd fix it. Otherwise, ignore it.

Check boxes work as expected on new installs. Everything else is fine.

Thanks!

@nickvergessen
Copy link
Copy Markdown
Contributor Author

@Marshalrusty I'm not sure whether we should allow it when the board has install/ available.
This mostly means that an updated is performed just now.
Even admins can not access the board then atm (only install/).

@naderman
Copy link
Copy Markdown
Member

naderman commented Jun 9, 2014

Yeah let's just leave that, I'll merge this then :-)

@naderman naderman merged commit 92f43c5 into phpbb:develop-ascraeus Jun 9, 2014
@nickvergessen nickvergessen deleted the ticket/10073 branch June 22, 2014 21:51
ErnadoO added a commit to ErnadoO/ext-phpbb-directory that referenced this pull request Jun 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants