adds a contact page to your site allowing visitors to send some feedback or ask a question.
The contact page is addressable via the link "Contact Us" in the footer of your site.
In this component i have used the following things that is usefull for others to build component
1.How to register page ?
2.How to write action ?
3.How to write the setting page ?
For the above question you can get the answer by seeing this plugin .
I hope this will helpfull for you guys to build a new one.
This component comes with two configurable settings on the admin backend
Contact page (default view)
Contact page (customized with extra html + openstreetmap iframe)
Changes
V 3.1
Component is producing error logs
[05-May-2023 20:07:00 UTC] PHP WARNING: 2023-05-05 20:07:00 (UTC): "Attempt to read property "email" on bool" in file /home/queermeet/public_html/components/Contact/plugins/default/forms/Contact/administrator/settings.php (line 14)
[05-May-2023 20:07:00 UTC] PHP WARNING: 2023-05-05 20:07:00 (UTC): "Attempt to read property "map" on bool" in file /home/queermeet/publichtml/components/Contact/plugins/default/forms/Contact/administrator/settings.php (line 17)
[05-May-2023 20:07:30 UTC] PHP WARNING: 2023-05-05 20:07:30 (UTC): "Attempt to read property "map" on bool" in file /home/queermeet/publichtml/components/Contact/plugins/default/forms/Contact/contactform.php (line 16)
@Joey, it requires to edit the component there is no quick solution for it.
How can we make this component work with Google reCaptcha v3?
https://www.opensource-socialnetwork.org/component/view/6535/google-recaptcha-v3
Andy,
I have released a new version which is capable of using a captcha to prevent automatic submits.
Make sure to install the latest Captcha component to activate this feature. See
https://www.opensource-socialnetwork.org/component/view/1549/captcha
So, as far as I understand, this component is intended for those who are NOT yet a member of the community. Logged in members don't need the form at all - they can send an internal message to the admin at any time.
Anyone please tell me how i can stop this from showing or opening unless logged in... i have the GDPR component too and that works perfectly with the private network component when you click it on the footer from login page it comes up says have to be logged in.. i need to do the same ting to this contact component to stop bots filling out the form..
~Z~ Man
One thing I have to ask. Your flag is German, Map says you are close to Berlin. Explain this to me???
(except of the German one)
:)
~Z~ Man
To be honest, I completely removed google maps option on my side. I see absolute no need for it in the Contact Us form. But, since it is not my component, I felt like I can't just delete addons from it. I figured, people can decide for them self's and just delete that part if they don't need it.
I see he put the option to insert google maps link from admin panel and he comment it cause it didn't work. This option is useless in this component, so I did nothing with it.
Perhaps I can grab that google maps feature and add it to person's profile page. It will fit better there.
Thanks for taking care of this oldie, Roman.
Before releasing your updated version:
Having a hardcoded Indian city on top of the form doesn't make so much sense, I think, while displaying the Ossn community's location instead would be a real enhancement.
And having a look at the beginning of contactform.php shows that Sathish obviously must have had a configurable option in mind - but never finished that part.
So, if you have the time to find out whether there's a Google api that allows us to enter a city name from the Ossn admin backend and get something back to feed the iframe with - I'd really appreciate.
If not, I'd vote for simply removing that map. :)
update
Perhaps a much simpler and even more versatile solution could be to add a textfield to the admin backend to paste the complete iframe or whatever html code into.
This way we wouldn't be forced to go with Google maps but may use other solutions like Open Street Map, too
sample openstreetmap iframe ...
I have an Updated version of this Component. Slightly changed layout. Modified system files to read languages from "locale". Russian and English are fully translated. Other languages are added but not translated(you can translate yours in "locale" folder"). Works with 5.2.
https://github.com/madromas/ossn/blob/master/Contact-2.5.zip
Staff, please add it to OSSN.