Link to the mod (https://custom.simplemachines.org/index.php?mod=377)
Contact Page
By vbgamer45 (http://custom.simplemachines.org/mods/index.php?action=profile;u=24876)
CompatibilityWorks with both SMF 2.1.x and SMF 2.0.x and SMF 1.1.x
DescriptionAdds a contact page to the default theme. Allows people to contact the webmaster from the forum. Also permissions to limit who can contact the webmaster. You can allow only certain groups of people to contact the webmaster.
7.1
!Make sure valid email is entered on contact page. Adds a new language string requires uninstall/install of new version.
!Trims whitespace of enter message.
7.0
!Fixes for undefined errors and better recaptcha checking that it is installed.
6.0
+Added option to post contact page submissions to a board of your choice under settings SMF 2.0.x SMF 2.1.x!
+Almost all Hooks now for 2.0 except for language files
5.0.1b
+Added support for hCatpcha SMF 2.0.x SMF 2.1.x
5.0.1a
+Added support for SMF 2.1.x
5.0.1
!Fixed email sent in SMF 2.0.x to include message-id
5.0
!Fixed to work with latest version of reCAPTCHA mod
4.5
!Fixed some template html for SMF 2.0.x
!SMF 1.1.x now supports new version of reCAPTCHA
4.0
Now supports the latest version of the reCAPTCHA mod when guests are submitting contact forms.
3.2
!Improved support for other languages/utf8
3.1
+Minor style tweaks for display for SMF 2.0
3.0
+Added new setting to allow you to set a custom email address to send contact form results to.
!Fixed some xhtml validation issues hopefully last ones
2.1.2
!Fixed some xhtml validation issues.
2.1
+Added support for the reCaptcha mod! Will use instead of the normal SMF captcha if installed.
2.0
+Supports SMF 2.0
+Adds IP of the form submitter in the email
1.1 Version released
+Text moved to language files
+CAPTCHA added for SMF 1.1.x
Support LinksSMF Package Parser (http://sleepycode.com/PackageParser/)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)
that is nice vbgamer45 thanks
i translate Tukish immediate :D
great thanks...
which method does it contact the webmaster?
Contact's webmaster via email. Email address is the one that the board uses.
Installed and working great! 8)
Installed smoothly... thanks!
how do i get the contact button to appear for all members?
Quote from: SurfExcelerator.com on July 07, 2006, 01:34:43 PM
how do i get the contact button to appear for all members?
Check permissions. View Contact Page
Any screenshot ?
Quote from: Vinspire on July 07, 2006, 04:35:20 PM
Any screenshot ?
what do you want a screenshot of?
Added a screenshot.
You can see it at
http://mods.simplemachines.org/index.php?mod=377
Awesome mod .... It seems to be quite useful :P
I wish I could use this mod too though I'm still using SMF 1.0.7.
Any chance this mod will become available for the older version I'm using as well?
Ported to SMF 1.0.7
Quote from: vbgamer45 on July 08, 2006, 08:01:18 PM
Ported to SMF 1.0.7
That's great. Thanks a million :D
Hi i get this error in rc2
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test failed
4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Sources/Subs.php Test successful
6. Extract File ./Sources/Contact.php
7. Extract File ./Themes/default/Contact.template.php
http://mindvsmind.com/forums/index.php?action=packages;sa=install;package=Contact.zip
Apply Filter: Only show the errors with the same message
512: parseModification(): The filename 'Themes/default/index.template.php' is not a full path!
File: /home/httpd/vhosts/mindvsmind.com/httpdocs/forums/Sources/Subs-Package.php
Line: 1329
Did you install this mod even though it said this --
3. Execute Modification ./Themes/default/index.template.php Test failed
?
No i did not
Quote from: desistyle on July 19, 2006, 02:19:33 AM
Hi i get this error in rc2
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test failed
4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Sources/Subs.php Test successful
6. Extract File ./Sources/Contact.php
7. Extract File ./Themes/default/Contact.template.php
http://mindvsmind.com/forums/index.php?action=packages;sa=install;package=Contact.zip
Apply Filter: Only show the errors with the same message
512: parseModification(): The filename 'Themes/default/index.template.php' is not a full path!
File: /home/httpd/vhosts/mindvsmind.com/httpdocs/forums/Sources/Subs-Package.php
Line: 1329
I would still install it the only other thing you would need to do is edit the menu function on the index.template.php of the theme you are using in order to make it appear on the menu.
and how would i do that ?
Hello,
I want translate module to other language.
Is that possible? how?
Thanks
Edit the text strings in Modifications.english.php
and edit the text in /Themes/default/Contact.template.php
Thanks vbgamer45.
I think you should put text of Contact.template.php in Modifications.*.php to can be easy to translate and can be use when we have a forum with several language.
Yeah I plan to do that more in the future. Just easier for me to get the mod out . Then later make the make the text changes.
vbgamer45, Can you tell me as a newbie what I need to do to get the contact button to display on my forums.
I've successfully installed the mod, and I've granted permission to all users except guests. But I cannot get it to display the button.
I'm running SMF1.0.7 and using Blocs cerberus theme.
Thanks for any help you may be able to provide.
www.finsandfur.net/forums
Quote from: FinsandFur on July 29, 2006, 02:39:01 AM
vbgamer45, Can you tell me as a newbie what I need to do to get the contact button to display on my forums.
I've successfully installed the mod, and I've granted permission to all users except guests. But I cannot get it to display the button.
I'm running SMF1.0.7 and using Blocs cerberus theme.
Thanks for any help you may be able to provide.
www.finsandfur.net/forums
Read the install.xml that is attached in the zip file ... The codes and etc is inside.
Basically i think you need to modify this 2 files to get it working in cerberus.
./Themes/cerberus/languages/Modifications.english.php
./Themes/cerberus/index.template.php
Thanks for the reply Vinspire.
There is no ./Themes/cerberus/languages/Modifications.english.php
and I'm not sure what to edit on the other one.
Can you get me a little closer. I'm learning as I go here. ;D
Use ./Themes/default/languages/Modifications.english.php instead.
I must really be daft...and for that I appologize, but I still don't know what to do with that file ./Themes/default/languages/Modifications.english.php
I found it and it shows my shoutbox code along with this contact page code, but I don't know what to do with it.
The shout box displays and functions fine, I have no idea how to get the contact button to display.... :-[
You need to edit index.template.php of the theme you are using. That file contains the menu, headers, and footers. There is a guide some where on this place on how to use mods on non default themes.
Cool, I appreciate the reply.
I'll do some looking around and see if I can find that guide info.
Thanks vbgamer45
Never did find a guide on how to use mods on non default themes.
But I got it working.
For anyone else out there with similiar issues, Here's what I did.
I'm using Blocs cerberus theme, and I know the mod installs on the default theme. I wish there was a way to make the mods understand that your custom theme WAS your default theme but....
I went to the default theme and opened the "index.template.php"
I searched out the word "contact" since this is where the mod installer installed it.
Found ALL the code that was added with this mod, which was;
// the [contact] button
if ($context['allow_view_contact'])
echo '
<a href="', $scripturl, '?action=contact">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/contact.gif" alt="' . $txt['smfcontact_contact'] . '" style="margin: 2px 0;" border="0" />' : $txt['smfcontact_contact']), '</a>', $context['menu_separator'];
Make close note of where it appears in that file by taking note of whats around it, and then copy all the code pertaining to the contact page.
I then went my Blocs cerberus theme and opened my "index.template.php" and pasted the code in the exact location it was in, in the default theme.
Which in this case was following the "calendar" button.
I hope that atleast helps ONE person in a similiar situation.
how can i change the contact email address?
i don`t want to use the default one.
Dear vbgamer45
I incidently replace the index.template.php file in default theme. I mod back and I need to check what code is missing in this file.
// The [contact us] button
if ($context['allow_view_contact'])
echo ($current_action == 'contact' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'contact' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=contact">' , $txt[804] , '</a>
</td>' , $current_action == 'contact' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Please advise the above code is correct or not and please inform the rest of the code should be in this file or please post here the original menu code that suppose to be.
Thanks.
Just one you little you need to fix change
<a href="', $scripturl, '?action=contact">' , $txt[804] , '</a>
To
<a href="', $scripturl, '?action=contact">Contact</a>
I refer $txt[804] to index.english.php language file in default theme. What about the rest of code in index.template.php in default theme. Any code should I add?
Hi,
Thank you for this Mod, it works perfect ! And last night, I finished translating it to Dutch and it still works ;) (after quite some errors first ;D )
Without a name it will tell you: U moet uw naam nog vermelden.
Without a subject it will tell you :U moet ook een onderwerp invullen.
Without a message it will tell you: U moet wel een berichtje schrijven.
Without your e-mail it will tell you: Ik heb ook uw e-mail adres nodig.
and of course when it is sent, it says: Uw bericht is verzonden! Klik hier om naar het forum terug te gaan.
Whoever wants the Dutch php files; feel free to use them.
I didn't know how to change the filenames, now the files itself don't show they're the Dutch version...
I tried to change the file to contact-nl.php but somehow I need to change something else too and I simply am too new on all this to solve that part :-[
Never the less, if needed, people may be able to change the file name themselves right ? ;)
So I first installed the original Mod and later copied my translated files to where they should be: contact.php in Sources and contact.template.php in Themes/default (Maybe they even will work in other themes ??? but I didn't try that)
I left your copyright message where it was so you don't have to worry about that ;)
Thanks again
screenshot & files below
I'm having a strange problem with this mod. If a guest view the main page, the contact button is not there. I'm logged in as administrator, and I *can* see the button (and it works).
I've checked the permissions three times and actually, viewing the contact page is the ONLY permission a guest on my board *does* have.
Any clue what I'm doing wrong here?
if ($context['allow_contact'])
needs to be removed
I already commented out:
if ($context['allow_contact'])
And that didn't do the trick. The address bar does show the ?contact.php address and the tab changes to indicate that I'm (allegedly) on the contact page, but still the login box is shown, so it hasn't changed anything.
Funny thing is that I also have the Paypal donations mod installed and the same thing happens. Tab changes to Donations, but the login page is still shown.
See it in action: http://www.lhs1984.org/forum (http://www.lhs1984.org/forum)
Quote from: msbask on December 26, 2006, 01:22:21 PM
I already commented out:
if ($context['allow_contact'])
And that didn't do the trick. The address bar does show the ?contact.php address and the tab changes to indicate that I'm (allegedly) on the contact page, but still the login box is shown, so it hasn't changed anything.
Funny thing is that I also have the Paypal donations mod installed and the same thing happens. Tab changes to Donations, but the login page is still shown.
See it in action: http://www.lhs1984.org/forum (http://www.lhs1984.org/forum)
I think since the forum is closed to guests it overrides everything for some reason.
You were absolutely right, vbgamer! I enabled guest access, then took away every permission except viewing the donation page, and it works.
Guess I have to reinstall the contact page now.
Thanks so much!
How can I be able to activate this mod? I just installed this mod but I don't know how to get it working...
Access it via http://www.yourforum.com/index.php?act=contact
If you are using a custom theme you will have to add a menu/button link to the page.
Quote from: vbgamer45 on December 28, 2006, 11:30:47 AM
Access it via http://www.yourforum.com/index.php?act=contact
If you are using a custom theme you will have to add a menu/button link to the page.
Thank you for your reply man, one question there is some settings for this mod in the CP Forum? If there is where is it? How can I access this mod using the CP for the settings?
There are no settings for the mod. Only setting is view contact page permission located under permissions.
Great mod, haven't installed it yet and I have a question:
what about bots or spammers? I guess that they can send it through the contact page too?
Yes they could if its visible to guests.
Unfortunately this mod doesn't seem to show the scandinavian letters right in the e-mail to the admin-
For example the letter Ä is shown with the entity name Ä
Shame, because i really would like to use this mod.
Hey vbgamer45, I'm getting a "Test Failed" in /Themes/default/languages/Modifications.english.php
What do I do?? haha
Install it anyway then apply the changes to modifications.english.php from the xml file.
Alright thanks. Can I ask why this happens though? I've installed it before on another forum and all went smoothly? I'm using default TPtheme. 1.1.1
Not really sure since it searchs for ?> then adds the code before.
oh well. Thanks for the help.
getting this error in the forum log:
http://forum.sirfanaticsholland.com/index.php?action=contact
8: Undefined offset: 64
File: /home/teamvtec/domains/sirfanaticsholland.com/public_html/forum/Sources/Load.php
Line: 1886
http://forum.sirfanaticsholland.com/index.php?action=contact
8: Undefined offset: 64
File: /home/teamvtec/domains/sirfanaticsholland.com/public_html/forum/Sources/Load.php
Line: 1883
Then i find this on lines 1883 till 1886 from Load.php:
if ($data2[$line] != '')
echo substr($data2[$line], 0, 2) == '</' ? preg_replace('~^</[^>]+>~', '', $data2[$line]) : $last_line . $data2[$line];
if (preg_match('~(<[^/>]+>)[^<]*$~', $data2[$line], $color_match) != 0)
Its probably not in that file. I don't think its part of contact page either since I know its not a large mod that contains 1000 lines
Quote from: Mujahid on September 23, 2006, 07:14:17 AM
how can i change the contact email address?
i don`t want to use the default one.
I'd like to know about this too. Is there a way to change the email address that these messages get sent to? Thank you.
Quote from: choloman05 on February 10, 2007, 11:35:19 PM
Quote from: Mujahid on September 23, 2006, 07:14:17 AM
how can i change the contact email address?
i don`t want to use the default one.
I'd like to know about this too. Is there a way to change the email address that these messages get sent to? Thank you.
It uses the webmaster email address found on Server Settings
Quote from: vbgamer45 on February 11, 2007, 09:30:01 AM
Quote from: choloman05 on February 10, 2007, 11:35:19 PM
Quote from: Mujahid on September 23, 2006, 07:14:17 AM
how can i change the contact email address?
i don`t want to use the default one.
I'd like to know about this too. Is there a way to change the email address that these messages get sent to? Thank you.
It uses the webmaster email address found on Server Settings
Cool, i was gonna ask this too.
One more request, could you please incorporate some kind of human verification system (captcha) as i want the button available to guests but i dont want to get bots using it.
The mod is working great except it don´t show the letters "å", "ä" and "ö" in the mail that I recives. Is there a way to solve this problem?
/Johan
is there a way to get this working in the Babylon theme? :)
Quote from: Gorm on February 21, 2007, 02:57:36 PM
The mod is working great except it don´t show the letters "å", "ä" and "ö" in the mail that I recives. Is there a way to solve this problem?
/Johan
I am also hoping for a solution to this problem
lets hope so :D
You will need to manually to install the theme on other themes to add the link.
For the other language characters I do not plan to support that.
even if i say please please please please please please please please :D
I installed this on my test forum. I am using dilber mc theme and everything appears to be fine. the only thing is when I send a email via the contact button using a test account it does not send the email. any reason anybody can think of why.
edit. fixed now I was having a problem with my email settings
About language characters: for those whe read swedish, this might be useful. http://www.simplemachines.org/community/index.php?topic=108296.0 In short says: Open Contact.php.
Find:
$subject = htmlentities($subject, ENT_QUOTES);
$message = htmlentities($message, ENT_QUOTES);
$from = htmlentities($from, ENT_QUOTES);
$email = htmlentities($email, ENT_QUOTES);
Replace with:
//$subject = htmlentities($subject, ENT_QUOTES);
//$message = htmlentities($message, ENT_QUOTES);
//$from = htmlentities($from, ENT_QUOTES);
//$email = htmlentities($email, ENT_QUOTES);
I have tested it and it seems to work alright.
/Johan
Quote from: Gorm on March 14, 2007, 03:07:20 AM
About language characters: for those whe read swedish, this might be useful. http://www.simplemachines.org/community/index.php?topic=108296.0 In short says: Open Contact.php.
Find:
$subject = htmlentities($subject, ENT_QUOTES);
$message = htmlentities($message, ENT_QUOTES);
$from = htmlentities($from, ENT_QUOTES);
$email = htmlentities($email, ENT_QUOTES);
Replace with:
//$subject = htmlentities($subject, ENT_QUOTES);
//$message = htmlentities($message, ENT_QUOTES);
//$from = htmlentities($from, ENT_QUOTES);
//$email = htmlentities($email, ENT_QUOTES);
I have tested it and it seems to work alright.
/Johan
How easy that was, to get the scandinavian letters working.
Thanks Johan
hmm... installed, some other packages too, a few bugs, uninstalled them all, but the CONTACT tab this package stays.. what i need to do now... i don't want to re-install SMF so... :( :(
Anyway,
Thanks & Many greetings,
Wim
Quote from: tick on March 13, 2007, 09:33:51 PM
I installed this on my test forum. I am using dilber mc theme and everything appears to be fine. the only thing is when I send a email via the contact button using a test account it does not send the email. any reason anybody can think of why.
edit. fixed now I was having a problem with my email settings
I have the same problem.
Seems you've fixed it, would be nice if you could post the answer.
Thanks
under my server settings where it has the admin email the email address was wrong. it was being sent to a email that I dont use anymore. Nothing major
hi, how can i add more options in the conatat page?
I want something like this one: http://forum.anointedyouth.org/sendmessage.php
please let me know what codes i need to use to set this up with the extra options which are currently not available with the latest version.
possibly an upgrade could be made which has these changes as available by vbulliten.
Requires php coding if you want me to give the codes I can code for $50 an hour.
I have my forum so guests cant see them aso when the contact button if pressed I get the warnign you are not allowed message come up, is there any way to change this so that guests can use the contatct form, I have already set permission for guests but that had no attect?
Maybe in the next release I will support guests for that mod and upate it.
1.1 Version released
+Text strings moved to language files
+CAPTCHA added for SMF 1.1.x
Don't know if it is useful, but I translate this mod to portuguese (Modifications.brazilian-utf8.php)
$txt['smfcontact_contact'] = 'Contato';
$txt['permissionname_view_contact'] = 'Ver página de contato';
$txt['permissionhelp_view_contact'] = 'Autorizar membros a ver p´gina de contato';
$txt['cannot_view_contact'] = 'Você não est´ autorizado a ver esta página.';
Keep the good job
really great mod. thanks
Great Mod! But there is no image verification is this because i have it disabled in the register also?
Quote from: Photoshocker on June 27, 2007, 12:51:30 PM
Great Mod! But there is no image verification is this because i have it disabled in the register also?
Yes
I want guests to have access to contact form how can i do that?
Thanks. :)
hey someone plz help me, my site logs are flooded with the following error. how can i fix them. plz help.
hangout/index.php?action=contact
Undefined variable: first
File: C:\wamp\www\hangout\Themes\default\languages\Login.english.php (main_above sub template - eval?)
Line: 708
hangout/index.php?action=contact
Undefined variable: last
File: C:\wamp\www\hangout\Themes\default\languages\Links.english.php (main_above sub template - eval?)
Line: 679
Quote from: Photoshocker on June 28, 2007, 09:29:56 AM
I want guests to have access to contact form how can i do that?
Thanks. :)
go to permissions and select guests. look for contact page option and check that option. save it.
I can't find any permission related to the contact.. :(
Quote from: Photoshocker on June 28, 2007, 01:30:00 PM
I can't find any permission related to the contact.. :(
http://img253.imageshack.us/img253/5660/untitledsv7.jpg
Got it! thanks...i had a little problem with the translation in the language..
Quite like the look of this mod.
I have put it in, but my problem is i have tried to change a bit in index.temp.php, so it matches the current theme i'm using " Silvanost Orange "
What happens is when i put it in,i get 2 sets of "members" in the top nav bar, even though it is working. How can i change it to say contact.
// the [contact] button
if ($context['allow_view_contact'])
echo '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="', $scripturl, '?action=contact">' , $txt[331] , '</a></td>';
i think it has something to do with the $txt[331] which obviously means ' members"
how can i change it to say CONTACT
Any help appreciated, as i'm just trying to learn how to go about changing bits & pieces
Find
' , $txt[331] , '
Change to
Contact
Like this. ' , $txt[Contact] , '
Did'nt work m8
No completly remove the stuff i said in the other post.
That worked . cheers for that. :D Does it automaticaly link to my e-mail address ?
Just tested ,and everything works perfectly. Thanks for your advice. & keep up the good work :D
Quote from: kill3r on June 28, 2007, 05:05:04 PM
http://img253.imageshack.us/img253/5660/untitledsv7.jpg
Kind of weird, it shows the checkbox but not the wordage... I'm using a non-default theme, though.
Everything looks set-up OK (besides above), however, I get this error when trying to send:
The letters you typed don't match the letters that were shown in the picture.
And the images aren't showing.
same here.
http://img490.imageshack.us/img490/47/missingtextoq8.jpg
do i need to modify my modsettings again or something?
Never mind my first question...... I already fixed it.
how can I add the menu button? I tried adding it but I always get errors =/ where should I place the code and what code should I add to the index.template.php file?
will appreciate your help. thanks.
Quote from: askepott on July 08, 2007, 12:43:04 PM
Never mind my first question...... I already fixed it.
how can I add the menu button? I tried adding it but I always get errors =/ where should I place the code and what code should I add to the index.template.php file?
will appreciate your help. thanks.
You need to add them manually if you are not using the default smf theme. just upload the modification package here.
http://www.smfhacks.com/packageparser/package.php
and then do the changes for index.template.php file of your custom theme as said there.
Ps. make a backup of the file before editing.
I'd love a modified version of this mod, similar to to the one mentioned in [urlhttp://www.simplemachines.org/community/index.php?topic=97782.msg1083015#msg1083015]this[/url] reply. I also want to add a feature that will add an additional permission per group allowing it to bypass the image verification. I'm looking to basically set up my forum up so that when they use the contact form as a guest or a 'New Member', they have to use the image verification. If they use the contact form from any other group, they bypass the image verification. Also, if the member is in fact a registered user, the E-mail box should be hidden, as it is obtained from the member's profile. If the user does not have an E-mail address on their profile, a message is displayed asking to update that portion of their profile.
OK I just installed this mod on SMF 1.1.3/TP 0.9.8. When accessing it, the image box isn't appearing. I'm accessing it from the webmaster's account. In looking through the coding, I couldn't see if contact.gif was being used, and if so, where to place it. It seems as if the image is missing, but then again, it also looks as if contact.gif is only used in older editions of SMF. Please help.
The image box will only appear if you visual confirmation turned on.
Great Mod!
Thank you!
It would be great if the captcha was only used for guests. Is that possible?
It says it works for 1.1.4 but it errors on installation (relating to the modifications.english.php file)
@ rowedf
By the sound of it you simply have to do a manual installation of the mod. Generally if the installation via the Package Manager reports an error you should revert to a manual install...the following links should help you to do it:
1]http://docs.simplemachines.org/index.php?topic=402.msg531#msg531[/url]
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Hey TrueSatan - thanks for the support. And thanks again vbgamer45 for the mod, it's great.
I've been having a weird problem lately - the captcha images will sometimes show and sometimes not. Any idea why that would be happening and how I could fix it ? Thanks. (running smf 1.1.4 w/TP and maybe 2 or 3 other mods which I can list later if it would be useful).
Always a pleasure to help. If the images do show at all that makes me think that the files are OK (both the images and the code) and that it's a server issue...assuming that the problem occurs in a random way when doing exactly the same things. I can't shed much more light on it than that though...maybe vbgamer45 will have a suggestion for you.
Hm. that's interesting. What do you think the issue w/the server could be?
And now that I think about it and look back, the captcha isn't showing and then not showing - one day it just stopped showing. So I went into my permissions to make sure I had captcha enabled in registration, I did, so I just changed the strength of the verification and then the images appeared again on the contact page. Of course they only appeared for a little while, not even a whole day.
But anyway, thanks for the help as usual TrueSatan and we'll see what vbgamer has to say.
Well the image is controlled by GD (an additional image manipulation library for PHP) and I think that is where the problem you are having resides. My diagnosis would be that staff at your host may have altered settings after a few days of it running properly...maybe there was a server load they didn't like or some other reason...can't say. Perhaps your change in settings bypassed what they'd done and so it worked for a while until they caught up with it again...only your host would know for sure if that were the case.
How do I get the visual verification letters to show up?
vbgamer - any say on the captcha issue?
i just realised i don't have visual verification showing , which , as i understand , means i need to have GD enabled ! is that something i can do or do i have to ask my host to do it for me (and if so , what do i ask exactly) ?
thnx a lot !
Ask your host to do to install the GD module for PHP located at http://www.php.net/gd
will do , thnx a lot !
For me this mod works, but when I try to test it sending a message get everytime this error: The letters you typed don't match the letters that were shown in the picture.
But I know that I have typed the right letters.
me too...i also got the same error. i'm sure i typed in the correct letters
I have this problem when I have installed Advanced Visual Verification.
When I uninstall this, my problem is gone too.
Uninstalled and installed it again without errors, but still the same f*cking problem with the captcha. :(
Obviously you didn't understand, but never mind.
Vbgamer, is there any possibility that change mail ?
I wish that emails from there come on email that is different than webmaster.
Is that possible...
Thank you.
Yes you could do this you would need to change Sources/Contact.php and look for the webmaster email variable and change it to another email address of your choice.
Quote from: vbgamer45 on July 19, 2006, 08:44:51 PM
Quote from: desistyle on July 19, 2006, 02:19:33 AM
Hi i get this error in rc2
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test failed
4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Sources/Subs.php Test successful
6. Extract File ./Sources/Contact.php
7. Extract File ./Themes/default/Contact.template.php
http://mindvsmind.com/forums/index.php?action=packages;sa=install;package=Contact.zip
Apply Filter: Only show the errors with the same message
512: parseModification(): The filename 'Themes/default/index.template.php' is not a full path!
File: /home/httpd/vhosts/mindvsmind.com/httpdocs/forums/Sources/Subs-Package.php
Line: 1329
I would still install it the only other thing you would need to do is edit the menu function on the index.template.php of the theme you are using in order to make it appear on the menu.
I Have the same error. What menu function should I add? thanks
very nice mod
If the user is logged in why is it necessary to fill up the name and email id, it should be shown by default in the fill up form.
Maybe they would want a diffent name or something to show.
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test successful
4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Sources/Subs.php Test successful
Any Idea?
Open Modifications.english.php
Find ?>
Make sure it is on its own line like
?>
Quote from: vbgamer45 on December 14, 2007, 09:12:59 PM
Maybe they would want a diffent name or something to show.
this can be misused
if smf has this mod and I fill up a contact form in your vbgamer45's name then ???
give an option to admins whether they want to show the name field to members who can fill up their desired names
or
hide the name field but the admin will know who send the email as it will be mentioned in the email they receive.
instead of sending for the e-mail of the webmaster, to send for the administrator's e-mail,
the function is this
// Send email to webmaster
sendmail($webmaster_email, $subject, $m,$email);
to alter this in way to do what intended
I have the same problem with the Visual Verification.... any help?
Quote from: rockinaway on January 13, 2008, 06:20:34 AM
I have the same problem with the Visual Verification.... any help?
What problem?
It keeps saying the letters don't match, but they do match..
Any help?
Quote from: Zeri YT! on November 07, 2007, 06:56:39 AM
Uninstalled and installed it again without errors, but still the same f*cking problem with the captcha. :(
I commented out the CAPTCHA code from Sources/Contact.php:
Find:
// Generate a visual verification code to make sure the user is no bot.
$context['visual_verification'] = empty($modSettings['disable_visual_verification']) || $modSettings['disable_visual_verification'] != 1;
if ($context['visual_verification'])
{
$context['use_graphic_library'] = in_array('gd', get_loaded_extensions());
$context['verificiation_image_href'] = $scripturl . '?action=verificationcode;rand=' . md5(rand());
// Only generate a new code if one hasn't been set yet
if (!isset($_SESSION['visual_verification_code']))
{
// Skip I, J, L, O and Q.
$character_range = array_merge(range('A', 'H'), array('K', 'M', 'N', 'P'), range('R', 'Z'));
// Generate a new code.
$_SESSION['visual_verification_code'] = '';
for ($i = 0; $i < 5; $i++)
$_SESSION['visual_verification_code'] .= $character_range[array_rand($character_range)];
}
}
Replace with:
/* Generate a visual verification code to make sure the user is no bot.
$context['visual_verification'] = empty($modSettings['disable_visual_verification']) || $modSettings['disable_visual_verification'] != 1;
if ($context['visual_verification'])
{
$context['use_graphic_library'] = in_array('gd', get_loaded_extensions());
$context['verificiation_image_href'] = $scripturl . '?action=verificationcode;rand=' . md5(rand());
// Only generate a new code if one hasn't been set yet
if (!isset($_SESSION['visual_verification_code']))
{
// Skip I, J, L, O and Q.
$character_range = array_merge(range('A', 'H'), array('K', 'M', 'N', 'P'), range('R', 'Z'));
// Generate a new code.
$_SESSION['visual_verification_code'] = '';
for ($i = 0; $i < 5; $i++)
$_SESSION['visual_verification_code'] .= $character_range[array_rand($character_range)];
}
}*/
Temp. solution..
Quote from: askepott on July 08, 2007, 12:43:04 PM
Never mind my first question...... I already fixed it.
how can I add the menu button? I tried adding it but I always get errors =/ where should I place the code and what code should I add to the index.template.php file?
will appreciate your help. thanks.
How did you fix that, please? I'm having the same problem.
The mod appears to all be in place; I installed it manually, but I don't see the text for it in the header, nor do I see it if I type in the url for bringing the contact page up as posted earlier in this thread (it takes me to the main index page).
Any ideas?
I checked the package at my test forum, it works perfectly
but at my main forum ( www.JangForum.com ) it Appears with 3 Nos of Button on top menu.
I uninstall and remove from my packages, the 3rd no button disappeared and now 2 buttons are there.
how can i remove the one of both...?
( why ? it is still there working ?, after UnIstalling the Package, mean: This package is not listed in my Packages section/list )
The button for babylon theme and the modification file for utf-8 in greek language
is there a chance to let users select the note recipe?
Quote from: qayyom on February 23, 2008, 01:33:47 AM
I checked the package at my test forum, it works perfectly
but at my main forum ( www.JangForum.com ) it Appears with 3 Nos of Button on top menu.
I uninstall and remove from my packages, the 3rd no button disappeared and now 2 buttons are there.
how can i remove the one of both...?
( why ? it is still there working ?, after UnIstalling the Package, mean: This package is not listed in my Packages section/list )
Sounds like the parts of the mod got installed twice.
You will need to edit themes/default/index.template.php and remove the extra menu button
thanks for your help and support
this problem has been solved.
This doesn't work in my forum.
It installed fine but when I sent 2 test message, I didn't receive either......
Not sure why.
I uninstalled this Mod but the tab is still showing on my forum! :(
How do I remove that tab?
You will have to edit the index.template.php and remove the contact mod sounds like it didn't fully uninstall.
Swedish translation
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Kontakta';
$txt['permissionname_view_contact'] = 'Visa kontaktsidan';
$txt['permissionhelp_view_contact'] = 'Tillåter medlemar att visa konrakt sidan och skriva mail.';
$txt['cannot_view_contact'] = 'Du kan inte visa kontaktsidan.';
$txt['smfcontact_name'] = 'Ditt namn:';
$txt['smfcontact_subject'] = 'Ämne';
$txt['smfcontact_body'] = 'Meddelande';
$txt['smfcontact_emailaddress'] = 'E-postadress';
$txt['smfcontact_sendemail'] = 'Skicka email';
$txt['smfcontact_messagesent'] = 'Ditt meddelande har skickats!';
$txt['smfcontact_messagesent_click'] = 'Ditt meddelande har skickats! Klicka ';
$txt['smfcontact_messagesent_return'] = 'här</a> för att återvända till forumet.';
$txt['smfcontact_errname'] = 'Du måste ange ditt namn.';
$txt['smfcontact_errsubject'] = 'Du måste skriva ett ämne.';
$txt['smfcontact_errmessage'] = 'Du måste skriva ett meddelande.';
$txt['smfcontact_erremail'] = 'Du måste ange din e-postadress.';
$txt['smfcontact_titlesent'] = ' - Meddelande sänt.';
$txt['smfcontact_form'] = 'Kontakt side formulär för ';
$txt['smfcontact_formname'] = "Namn: ";
$txt['smfcontact_formemail'] = "E-postadress: ";
$txt['smfcontact_formmessage'] = "Meddelande:";
// END Contact Page Text Strings
how come the captcha image does not change? anyone having the same problem?
It normally doesn't change for the same person but for others/browser it does.
oh that explains it thanks great mod that to edit my themes index.template manually but that was a given..
It's great :D
which member group ID does this mod send email to ?
Quote from: F.L.A.M.E.R on August 22, 2008, 08:18:01 AM
which member group ID does this mod send email to ?
Quote from: vbgamer45 on July 06, 2006, 05:53:47 PM
Contact's webmaster via email. Email address is the one that the board uses.
but it happened that we have 2 admins and 2 owners ... so i verified it and we 4 have got the email... and i dont know about the other staff groups or regular members.. i will ask my friends about it... but it should probably go only to the owners..
Why is it that every time I install a mod it never works right?
That was a rhetorical question.
I installed the mod, and the button doesn't show up in the menu.
I went through half the threads here thinking that someone else might have had the same problem, but all everyone is saying is "Great", "Works great".. etc, which irritated me.
One person asked how they can get the mod to show for all users, and the answer was that it's in permissions. I looked in there but there's only a blank spot (which I assume some text for the mod is supposed to show).
I am having the same problem with another (ad management) mod. I install it and all I get is a heap of "blank text areas"..
I was told: "Download language packs"... that doesn't help me much. What language packs? Where? What for? Why isn't it with the mod?
Those were more rhetorical questions..
..but -- could it be that I need to "get language packs" for this too?
If so, what does "get language packs" mean?
I am lost.
There's obviously something that everyone else just "knows".. some unsaid thing about SMF that I haven't caught on to, because 1/2 the mods I install wind up doing nothing but giving me some "blank text spots" on my board.
Please, can someone explain the language packs to me ?
Or explain "something" -- so that when I install mods I get more than blank text spots, like I get with this mod?
Check under Admin -> Server Settings and make sure your language is set to English and not english utf8
Ah -- Huh!
Now several other mods are working fine as well :D
Thanks!
I was about to start damaging stuff around me..
*deep breaths*...
After I updated to 1.1.7 the Captcha-image does not show (se attached image). Any ideas why?
thanks for yhe mod
i'm can't view Captcha option into the form.... (smf 1.1.7)
For the last two posters can you provide a link to your forum.
www.arkeologiforum.se
Your catpcha is broken
http://www.arkeologiforum.se/forum/index.php?PHPSESSID=6292ef08514fef39a9ecef6e25237ece&action=register
Please post in SMF support to help get it fixed.
There was someting wrong with the latest language-files. I uploaded them again and it solved the problem! :)
.....
I installed it and manual edited my index template for my theme but i dont get it working. It makes my board go very wide and colors r diff. Dunno why
IF possible , can you check my php and edit once for me please
Thanks
i am using the old version of it. Please tell me how to use the Catpcha in the old one.
please tell me as I had added few more sections in the old one with offline address.
I am using 1.1.7
I give up.
I've spent the last6 hours reading on the forums here, trying to get what I thought was a SIMPLE machine forum doing what I wanted( and I did not want anything complex)
This thread was my last stop...just wanted to add the contact thing to my forum.
I'm not totally stupid, neither am I a geek, but the complexity of SIMPLE MF boggles my mind.
I tried, I really did....I managed to get lots of mods etc. working....there is just too much "assumed" knowledge in so many answers/solutions....so it's back to J!/Agora for me.
Maybe when I have learned some more of the assumed knowledge I'll give SIMPLEMF another shot.
No hard feelings, just hours and hours of wasted time.
CYAS
Is there posibility to add more fields to form...so they can be shown in template and to generate them and send by mail...as all other fields...
Quote from: Don Pepito on January 19, 2009, 08:20:12 AM
Is there posibility to add more fields to form...so they can be shown in template and to generate them and send by mail...as all other fields...
Thinking about doing that in the future.
Is it possible...??
Possible to do the future not currently built into the mod.
What files would you have to edit in order to add a line at the top of the contact form that says: All form fields required (In red). And were in the file would I add the new code.
The mod installed with no errors and works perfectly ~ Thank you.
You would need to edit Themes/default/Contact.template.php
Running smf 1.1.8 with the default theme.
Installs without errors, but I don't see anything new.
Do I need to turn it on someplace or should I see it right away when I'm signed in as Admin?
thanks,
Edited to add: found my contact page at this link.
http://leathermanforum.com/index.php?action=contact
No button seem to show up though, maybe because the mod is not made for 1.1.8 yet?
thanks,
You should see it when you login. Should be installed on the default theme.
Check the index.template.php and should work fine with 1.1.8 since it was a minor update.
Quote from: vbgamer45 on February 04, 2009, 11:01:21 PM
You would need to edit Themes/default/Contact.template.php
Thank you
Quote from: ApplianceJunk on February 05, 2009, 03:16:47 AM
Running smf 1.1.8 with the default theme.
Installs without errors, but I don't see anything new.
Do I need to turn it on someplace or should I see it right away when I'm signed in as Admin?
thanks,
Edited to add: found my contact page at this link.
http://leathermanforum.com/index.php?action=contact
No button seem to show up though, maybe because the mod is not made for 1.1.8 yet?
thanks,
I had the same problem. Try putting the following code in the Modifications.english-utf8.php file:
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contact';
$txt['permissionname_view_contact'] = 'View Contact Page';
$txt['permissionhelp_view_contact'] = 'Allows members to view contact page and send email.';
$txt['cannot_view_contact'] = 'You can not view the contact page.';
$txt['smfcontact_name'] = 'Your Name:';
$txt['smfcontact_subject'] = 'Subject';
$txt['smfcontact_body'] = 'Message body';
$txt['smfcontact_emailaddress'] = 'Email Address';
$txt['smfcontact_sendemail'] = 'Send e-mail';
$txt['smfcontact_messagesent'] = 'Your message has been sent!';
$txt['smfcontact_messagesent_click'] = 'Your message has been sent! Click ';
$txt['smfcontact_messagesent_return'] = 'here</a> to return to the board.';
$txt['smfcontact_errname'] = 'You need to enter your name.';
$txt['smfcontact_errsubject'] = 'You need to enter a subject.';
$txt['smfcontact_errmessage'] = 'You need to enter a message.';
$txt['smfcontact_erremail'] = 'You need to enter your email address.';
$txt['smfcontact_titlesent'] = ' - Message sent.';
$txt['smfcontact_form'] = 'Contact Page Form for ';
$txt['smfcontact_formname'] = "Name: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_formmessage'] = "Message: \n";
// END Contact Page Text Strings
I hope that works
Quote from: vbgamer45 on February 05, 2009, 08:25:05 AM
You should see it when you login. Should be installed on the default theme.
Check the index.template.php and should work fine with 1.1.8 since it was a minor update.
I had to change the Default Forum Language from English-utf8 to English.
I set permissions so guest and regular members can see it now.
Everything seems to work except one thing.
When I'm signed in as Admin and using Firefox the button no longer shows up and the language on the contact page is no longer there. It's almost like its stuck on English-utf8 when I'm signed in as admin using firefox.
If I log out and view the forum as a guest or regular member using firefox the contact page and button display just fine.
Everything displays just fine all the time using IE.
Thanks,
Interesting.. post 1.1.8 update/grade from 1.1.7 I get the unidentified index 'visual_verification_code' from contacts.php yet the update didnt change any of my lang files. Yet I tried it myself in FF and IE both failing and passing the image and no error.. maybe a spider glitch...
Quote from: vbgamer45 on June 24, 2008, 11:52:35 PM
It normally doesn't change for the same person but for others/browser it does.
This is not good! The problem is that anyone using the same computer even with different IDs, including GUESTS, can use this form to send out unlimited number of messages!
Updates for 2.0 RC1?
when update dont forget portuguese
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings translate candidosa2 suporte smfpt.net
$txt['smfcontact_contact'] = 'Contacto';
$txt['permissionname_view_contact'] = 'Ver Página de contacto';
$txt['permissionhelp_view_contact'] = 'Permite que os membros para visualizar a página dos contactos e enviar e-mail.';
$txt['cannot_view_contact'] = 'Você não pode ver a página contacto.';
$txt['smfcontact_name'] = 'Seu Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Corpo da Mensagem';
$txt['smfcontact_emailaddress'] = 'Endereço de Email';
$txt['smfcontact_sendemail'] = 'Enviar e-mail';
$txt['smfcontact_messagesent'] = 'Sua mensagem foi enviada!';
$txt['smfcontact_messagesent_click'] = 'Sua mensagem foi enviada! Clique ';
$txt['smfcontact_messagesent_return'] = 'Aqui</a> para voltar para o quadro.';
$txt['smfcontact_errname'] = 'Você precisa digitar o seu nome.';
$txt['smfcontact_errsubject'] = 'Você precisa inserir um assunto.';
$txt['smfcontact_errmessage'] = 'Você precisará digitar uma mensagem.';
$txt['smfcontact_erremail'] = 'Você precisa digitar o seu endereço de email.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formulário para Contacto na página ';
$txt['smfcontact_formname'] = "Npme: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_formmessage'] = "Mensagem: \n";
// END Contact Page Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings translate candidosa2 suporte smfpt.net
$txt['smfcontact_contact'] = 'Contacto';
$txt['permissionname_view_contact'] = 'Ver Página de contacto';
$txt['permissionhelp_view_contact'] = 'Permite que os membros para visualizar a página dos contactos e enviar e-mail.';
$txt['cannot_view_contact'] = 'Você não pode ver a página contacto.';
$txt['smfcontact_name'] = 'Seu Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Corpo da Mensagem';
$txt['smfcontact_emailaddress'] = 'Endereço de Email';
$txt['smfcontact_sendemail'] = 'Enviar e-mail';
$txt['smfcontact_messagesent'] = 'Sua mensagem foi enviada!';
$txt['smfcontact_messagesent_click'] = 'Sua mensagem foi enviada! Clique ';
$txt['smfcontact_messagesent_return'] = 'Aqui</a> para voltar para o quadro.';
$txt['smfcontact_errname'] = 'Você precisa digitar o seu nome.';
$txt['smfcontact_errsubject'] = 'Você precisa inserir um assunto.';
$txt['smfcontact_errmessage'] = 'Você precisará digitar uma mensagem.';
$txt['smfcontact_erremail'] = 'Você precisa digitar o seu endereço de email.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formulário para Contacto na página ';
$txt['smfcontact_formname'] = "Npme: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_formmessage'] = "Mensagem: \n";
// END Contact Page Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings translate candidosa2 suporte smfpt.net
$txt['smfcontact_contact'] = 'Contacto';
$txt['permissionname_view_contact'] = 'Ver Página de contacto';
$txt['permissionhelp_view_contact'] = 'Permite que os membros para visualizar a página dos contactos e enviar e-mail.';
$txt['cannot_view_contact'] = 'Você não pode ver a página contacto.';
$txt['smfcontact_name'] = 'Seu Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Corpo da Mensagem';
$txt['smfcontact_emailaddress'] = 'Endereço de Email';
$txt['smfcontact_sendemail'] = 'Enviar e-mail';
$txt['smfcontact_messagesent'] = 'Sua mensagem foi enviada!';
$txt['smfcontact_messagesent_click'] = 'Sua mensagem foi enviada! Clique ';
$txt['smfcontact_messagesent_return'] = 'Aqui</a> para voltar para o quadro.';
$txt['smfcontact_errname'] = 'Você precisa digitar o seu nome.';
$txt['smfcontact_errsubject'] = 'Você precisa inserir um assunto.';
$txt['smfcontact_errmessage'] = 'Você precisará digitar uma mensagem.';
$txt['smfcontact_erremail'] = 'Você precisa digitar o seu endereço de email.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formulário para Contacto na página ';
$txt['smfcontact_formname'] = "Npme: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_formmessage'] = "Mensagem: \n";
// END Contact Page Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings translate candidosa2 suporte smfpt.net
$txt['smfcontact_contact'] = 'Contacto';
$txt['permissionname_view_contact'] = 'Ver Página de contacto';
$txt['permissionhelp_view_contact'] = 'Permite que os membros para visualizar a página dos contactos e enviar e-mail.';
$txt['cannot_view_contact'] = 'Você não pode ver a página contacto.';
$txt['smfcontact_name'] = 'Seu Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Corpo da Mensagem';
$txt['smfcontact_emailaddress'] = 'Endereço de Email';
$txt['smfcontact_sendemail'] = 'Enviar e-mail';
$txt['smfcontact_messagesent'] = 'Sua mensagem foi enviada!';
$txt['smfcontact_messagesent_click'] = 'Sua mensagem foi enviada! Clique ';
$txt['smfcontact_messagesent_return'] = 'Aqui</a> para voltar para o quadro.';
$txt['smfcontact_errname'] = 'Você precisa digitar o seu nome.';
$txt['smfcontact_errsubject'] = 'Você precisa inserir um assunto.';
$txt['smfcontact_errmessage'] = 'Você precisará digitar uma mensagem.';
$txt['smfcontact_erremail'] = 'Você precisa digitar o seu endereço de email.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formulário para Contacto na página ';
$txt['smfcontact_formname'] = "Npme: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_formmessage'] = "Mensagem: \n";
// END Contact Page Text Strings
]]></add>
</operation>
</file>
Update for 1.1.10?
Should work fine for SMF 1.1.10
I already have the following mod working (w/ CAPTCHA) on SMF 1.1.10:
http://custom.simplemachines.org/mods/index.php?mod=1352
Unfortunately I saw it before I saw this one. Is there any advantage to this one over the other one? (besides ongoing development... but what more really needs to be developed?)
Nope I would stick with the other one.
New release!
2.0
+Supports SMF 2.0
+Adds IP of the form submitter in the email
is there a way to make the form send a pm instead?
You would need to edit contact.php and code to send a pm.
I'm not seeing the captcha in the contact plugin....what may be wrong? I'm using SMF 2.0 rc 1.2
Using standard captcha? And do you have enabled for registration?
Admin's I do not think get captcha
Quote from: vbgamer45 on August 31, 2009, 08:04:40 PM
You would need to edit contact.php and code to send a pm.
woul that be hard to do?
Somewhat requires some code you can check the function site on smf which details the sendpm function
I installed this Contact Page and didn't have any errors... but I cannot figure out how to get the button to show up along with the rest of my buttons. Can someone help? I think having a contact page is an awesome idea - now I just need to be able to access it.
I am running version 1.1.10
Are you using a custom theme?
If so you need to edit the index.template.php and add a button/link to the contact page
Yes, I am using a custom theme. I am really hesitant to do things manually - mostly because I'm not sure what the best way is to edit the files.
After I posted this, I came back later and was reading through the posts. I found one where someone had posted what he did and he said it worked so I got brave and tried it. Fortunately, I made a backup copy because whatever I did gave me an error when I went to my forum.
Decided it if worked for someone else, then it has to work for me. So, I tried again.. and it worked! I must have left out a bracket somewhere. Anyway, it is up and running perfectly! I'm not sure how often it will be used but it's nice to have if needed.. and I love that it takes my forum colors! It's really a nice module! THANKS!!! I guess this one can be marked.. problem solved!!
Glad you got it working!
Yeahhhh... me too!!! And I love it that the bots can't send messages. Great job on this one!!!
I installed this mod without any problems.
But it seems that I do not get any mail, (tested twice).
I get the message that "Your message has been sent ...".
Anyone else having the same problem?
(I'm using SMF 1.1.10.)
Check your forum's error log for any errors that might have occured.
One error message since yesterday... user entered wrong password. :) So, it looks like the contact page is working great!!!!
Now, if only I could get my other little problems solve. I should probably put this in a separate post... I wanted to install that AJAX chat but got two test failed messages so I I backed out.
Installed this mod with package manager, tested it and everything was working great. Then all of a sudden the contact button disappeared. ???? Since I don't know php well (hardly at all) I decided to just uninstall and reinstall. Figured that would be easied way to get it up and running again. Got these results when I clicked the uninstall tab in package manager:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.carpenters1715.org%2Fimages%2Fpackage_error.jpg&hash=0ca1bfcf28ec9015477b9e898f135f089e83ff18)
Confused because this is talking about installing the mod when I am trying to uninstall. Will I have to manually uninstall or can I safely use package manager?
No errors in error log. Using v1.1.10. Default theme. Mods installed:
Contact page
View Only Boards
Custom Profile Field Mod
Restrict Email providers on registration
and I think Password Protect Boards
You should be safe to uninstall it may fail on modifications.english.php since you have other mods installed.
Thanks. I used auto uninstall with package manaer, then reinstalled and everthing is working again. ;D
Great mod just the way it is but.....if you ever do any more development on it..... I have the view only boards mod installed and have set up all the boards to be visible to guests and members but only registered members can access. When the forum index (? not sure of terminology here...the first page that shows up) is loaded the contact button does not appear. It only shows up after someone logs in. It would be nice to have it appear even if you are not logged in. That way if someone is trying to register but having problems they could send the administrator a message asking for help or something.
I'm not a coder so the technicalilty of doing this is probably harder than I realize. Happy to use it the way it is. Thanks.
You have to give the membergroup permission to see the contact button
Which can be found under admin -> permissions -> Then modify each group and give them View Contact Page permission
Installed with no errors on the star wars theme.
Am surprised I didn't see this before.
For SMF 2.0.x should work out of the box with every theme
vbgamer45 in case you have misread my previous comment I was referring to the mod itself.
Updated to support SMF 2.0 RC2
Installed it and get this error: "The letters you typed don't match the letters that were shown in the picture. " everytime. I know I have typed the captcha text correctly!!
What SMF version?
How do i make the button, so guests can see it?
at the moment you can only see it if your logged in
P.S. im not using the default theme 1.1.x i coded the button myself, in my themes index.template
Admin -> Permissions -> Guests
Show Contact Page
On RC2 - Contact Page 2.0 - where do I change the setting for this as I am being spamed via the page. I see it is also supposed to send an IP with the mail but i am also not seeing this
how to add new filed??
like "reason of contact"
ok, i have do it
but now i want to add "checkbox" how to make that ??
Hi
I am using the SMF 1.11 version Classic YaBB SE Theme but I do not see the contact button.... what should i do??
You have to modify the index.template.php of your theme add a button/link to the contact page.
Vgamer...I really appreciate your assistance...but I guess I will have to get someone who knows about php ;) I am an economist ;D
regards
Hello,
In the default theme how can I remove the contact tab? I have added a row of tabs in the top right and need to remove the contact tab on the main tabs section. www.mogunowners.com (http://www.mogunowners.com)
For what SMF version?
FOR SMF 1.1.x you just edit the index.template.php of the theme
thank you, I just got it.
Glad you were able to find and get working on how you want it to be.
Thanks,
What I did was move it to the top right where the smf logo goes. Looks great!
Russian translation:
// Contact Page
$txt['smfcontact_contact'] = 'Контакты';
$txt['permissionname_view_contact'] = 'Просмотр страницы контактов';
$txt['permissionhelp_view_contact'] = 'Разрешить пользователям просматривать страницу контактов и отправлять письма.';
$txt['cannot_view_contact'] = 'Вы не можете просматривать страницу контактов.';
$txt['smfcontact_name'] = 'Имя (или ник):';
$txt['smfcontact_subject'] = 'Тема сообщения:';
$txt['smfcontact_body'] = 'Текст сообщения:';
$txt['smfcontact_emailaddress'] = 'E-mail:';
$txt['smfcontact_sendemail'] = 'Отправить';
$txt['smfcontact_messagesent'] = 'Письмо успешно отправлено!';
$txt['smfcontact_messagesent_click'] = 'Письмо отправлено! Кликните ';
$txt['smfcontact_messagesent_return'] = 'здесь</a> для возвращения на форум.';
$txt['smfcontact_errname'] = 'Надо указать имя (или ник).';
$txt['smfcontact_errsubject'] = 'Укажите тему сообщения.';
$txt['smfcontact_errmessage'] = 'А текст за Вас бабушка писать будет?';
$txt['smfcontact_erremail'] = 'Укажите свой email. Мало ли, вдруг Вам захотят ответить.';
$txt['smfcontact_titlesent'] = ' - Сообщение отправлено';
$txt['smfcontact_form'] = 'Страница контактов форума ';
$txt['smfcontact_formname'] = "Имя (ник): ";
$txt['smfcontact_formemail'] = "E-mail: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Сообщение: \n\n";
Again thanks for the translation!
I have Contact page 2.0 installed on SMF 1.1.11. I had a problem with something and it vanished, so I un-installed and then re-installed, but now it shows up twice on the Nav bar.
Any ideas how I can get it back to just one ?
Thanks
Quote from: ABCDiamond on February 12, 2010, 11:18:40 PM
I have Contact page 2.0 installed on SMF 1.1.11. I had a problem with something and it vanished, so I un-installed and then re-installed, but now it shows up twice on the Nav bar.
Any ideas how I can get it back to just one ?
Thanks
I think I just fixed it...
I edited /Themes/default/index.template.php where it had the code twice. I removed one of them.
And it is OK now.
vbagmer, I love you man. You were the answer to my calls, thanks.
Works like a charm! For my guests.
Glad you enjoy the mods!
I needed something like this for my site and you came through! Thanks a 100!
How can i enable visual verification (captcha) for Contact page 2.0?
I am using SMF 2.0 RC2. Thanks!
Later edit: I found that captcha is enabled only for guests, so is ok. Sorry for posting rubbish... :)
Glad you got it!
Gostei e uso muito esse MOD, mas todoa vez que eu respondo uma email do contato o email vai para mim mesmo, eu tenho que colocar o email da pessoa para ir certo, não teria como puxar o email automaticamente?
http://www.tectonny.com/forum/contact/
Updated for SMF 2.0 RC3!
A very useful mod, this one. :)
Just one little whine, the menu button text is all UPPERcase, which looks a bit odd when the rest are Propercase. Where is the text lable 'CONTACT' to be found so I can tweak it?
Should be in themes/default/languages/modifications.english.php
For SMF 2.0 made the contact page form to use the curve style
First off thanks a ton for this mod. It is great !
However, I've got 2 little questions:
1. I've just downloaded and installed the latest version and the visual verification image and input bar for it do not show up. Why is this ? Is there a way to enable this?
2. Is it possible to change the webmaster email that the messages are sent to ? If so how is this possible
Thanks a lot in advance.
Is there anyone who can answer my question ^^ ? :-\
Quote from: Zidane5555 on April 09, 2010, 09:02:00 PM
First off thanks a ton for this mod. It is great !
However, I've got 2 little questions:
1. I've just downloaded and installed the latest version and the visual verification image and input bar for it do not show up. Why is this ? Is there a way to enable this?
2. Is it possible to change the webmaster email that the messages are sent to ? If so how is this possible
Thanks a lot in advance.
please post this in Support forum, this topic is for Contact Page mod.
Sorry about that but I thought this page was for the Contact Page mod itself. I browsed quickly threw the pages and others posted their problems in here so I thought it was alright to ask a question.
Anyhow could you direct me to the support topic for Contact Page mod ? Thanks
my bad, I assumed you are not asking about Contact Page mod, my fault :)
Quote from: Zidane5555 on April 09, 2010, 09:02:00 PM
First off thanks a ton for this mod. It is great !
However, I've got 2 little questions:
1. I've just downloaded and installed the latest version and the visual verification image and input bar for it do not show up. Why is this ? Is there a way to enable this?
2. Is it possible to change the webmaster email that the messages are sent to ? If so how is this possible
Thanks a lot in advance.
Any help is greatly appreciated.
1 You have to it enabled for registration it picks up that captcha setting
2. It is the email found under Server Settings.
I installed and do see contact page...
Tried to send a test mail, but no mail is delivered on my Email ID...
:(
What could go wrong?
Email ID is correct
Italian translation
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contattaci';
$txt['permissionname_view_contact'] = 'Vedi il modulo di contatto';
$txt['permissionhelp_view_contact'] = 'Permetti ai membri di vedere il modulo di contatto e di inviare email.';
$txt['cannot_view_contact'] = 'Non hai i permessi per vedere il modulo di contatto.';
$txt['smfcontact_name'] = 'Il tuo nome:';
$txt['smfcontact_subject'] = 'Oggetto';
$txt['smfcontact_body'] = 'Messaggio';
$txt['smfcontact_emailaddress'] = 'La tua email';
$txt['smfcontact_sendemail'] = 'Invia il messaggio';
$txt['smfcontact_messagesent'] = 'Il messaggio è stato inviato!';
$txt['smfcontact_messagesent_click'] = 'Il messaggio è stato inviato! Clicca ';
$txt['smfcontact_messagesent_return'] = 'qui</a> per tornare al forum.';
$txt['smfcontact_errname'] = 'Devi inserire il tuo nome.';
$txt['smfcontact_errsubject'] = 'Devi inserire l\'oggetto del messaggio.';
$txt['smfcontact_errmessage'] = 'Devi inserire un messaggio.';
$txt['smfcontact_erremail'] = 'Devi inserire il tuo indirizzo email.';
$txt['smfcontact_titlesent'] = ' - Messaggio inviato.';
$txt['smfcontact_form'] = 'Modulo di contatto per ';
$txt['smfcontact_formname'] = "Nome: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Messaggio: \n";
// END Contact Page Text Strings
one question:
when i use the contact page, i receive the email...
but using imap i find it (the email) twice, one time in my inbox, one time in my sentmail...
this because in the header of the email, i find:
[email protected] <
[email protected]>
i would just like to see in the header the name of the sender, not my email!!! and neither the email of my site!
example: Name <
[email protected]>
how can i do it?
thanks for the beautiful mod... :)
My translation complete to spanish_latin-utf8.
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contacto';
$txt['permissionname_view_contact'] = 'Ver Pagina de Contacto';
$txt['permissionhelp_view_contact'] = 'Permitir a los Miembros ver la pagina de contacto y enviar correo.';
$txt['cannot_view_contact'] = 'No puedes ver la pagina de contacto.';
$txt['smfcontact_name'] = 'Tu Nombre:';
$txt['smfcontact_subject'] = 'Asunto';
$txt['smfcontact_body'] = 'Mensaje';
$txt['smfcontact_emailaddress'] = 'Dirección de correo';
$txt['smfcontact_sendemail'] = 'Enviar correo';
$txt['smfcontact_messagesent'] = '¡Tu mensaje ha sido enviado!';
$txt['smfcontact_messagesent_click'] = '¡Tu mensaje ha sido enviado! Clickea ';
$txt['smfcontact_messagesent_return'] = 'Aquí</a> para returnar al foro.';
$txt['smfcontact_errname'] = 'Necesita introducir tu nombre.';
$txt['smfcontact_errsubject'] = 'Necesita introducir un asunto.';
$txt['smfcontact_errmessage'] = 'Necesitas introducir un mensaje.';
$txt['smfcontact_erremail'] = 'Necesitas introducir una direccion de correo.';
$txt['smfcontact_titlesent'] = ' - Mensaje Enviado.';
$txt['smfcontact_form'] = 'Formulario Pagina de Contacto para ';
$txt['smfcontact_formname'] = "Nombre: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Mensaje: \n";
// END Contact Page Text Strings
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contacto';
$txt['permissionname_view_contact'] = 'Ver Pagina de Contacto';
$txt['permissionhelp_view_contact'] = 'Permitir a los Miembros ver la pagina de contacto y enviar correo.';
$txt['cannot_view_contact'] = 'No puedes ver la pagina de contacto.';
$txt['smfcontact_name'] = 'Tu Nombre:';
$txt['smfcontact_subject'] = 'Asunto';
$txt['smfcontact_body'] = 'Mensaje';
$txt['smfcontact_emailaddress'] = 'Direccion de correo';
$txt['smfcontact_sendemail'] = 'Enviar correo';
$txt['smfcontact_messagesent'] = '¡Tu mensaje ha sido enviado!';
$txt['smfcontact_messagesent_click'] = '¡Tu mensaje ha sido enviado! Clickea ';
$txt['smfcontact_messagesent_return'] = 'Aquí</a> para returnar al foro.';
$txt['smfcontact_errname'] = 'Necesita introducir tu nombre.';
$txt['smfcontact_errsubject'] = 'Necesita introducir un asunto.';
$txt['smfcontact_errmessage'] = 'Necesitas introducir un mensaje.';
$txt['smfcontact_erremail'] = 'Necesitas introducir una direccion de correo.';
$txt['smfcontact_titlesent'] = ' - Mensaje Enviado.';
$txt['smfcontact_form'] = 'Formulario Pagina de Contacto para ';
$txt['smfcontact_formname'] = "Nombre: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Mensaje: \n";
// END Contact Page Text Strings
$txt['contact'] = 'contact';
$txt['contact_form_default_dns_check'] = 'domain must have valid A or MX record';
$txt['contact_form_default_email_sender'] = 'Direccion del correo electronico del remitente si no es proporcionada:';
$txt['contact_form_default_guest_access'] = 'No acceso a invitados';
$txt['contact_form_default_member_access'] = 'No acceso a miembros';
$txt['contact_form_default_name'] = 'Nombre del remitente si no es proporcionado:';
$txt['contact_form_default_name_default'] = 'Anonimo';
$txt['contact_form_default_require_email'] = 'Utilizar una configuracion de direccion del correo electronico a continuacion';
$txt['contact_form_default_require_name'] = 'Utilizar una configuracion del nombre del remitente a continuacion';
$txt['contact_form_default_require_subject'] = 'Utilizar una configuracion de la linea de asunto a continuacion';
$txt['contact_form_default_subject'] = 'Linea de asubto si no es proporcionada:';
$txt['contact_form_default_subject_default'] = '(Ningun Asunto)';
$txt['contact_form_default_tab_label'] = 'CONTACTO';
$txt['contact_form_dest_email_addr'] = 'Enviar respuesta del Formulario de Contacto a esta direccion de correo:';
$txt['contact_form_display_title'] = 'Titulo de la Pagina de Formulario de Contacto:';
$txt['contact_form_enable_guest_access'] = 'Permitir acceder a los invitados:';
$txt['contact_form_enable_member_access'] = 'Permitir acceder a los miembros:';
$txt['contact_form_error_invalid_email'] = 'La direccion de correo introducida es invalida.';
$txt['contact_form_error_no_email'] = 'No hay introducida una direccion de correo.';
$txt['contact_form_error_no_message'] = 'No hay un mensaje introducido.';
$txt['contact_form_error_no_name'] = 'No hay ningun nombre introducido.';
$txt['contact_form_error_no_subject'] = 'No hay ningun asunto introducido.';
$txt['contact_form_error_unable_to_send'] = 'Envio de mensaje fallido. No hemos podido enviar su mensaje';
$txt['contact_form_field_optional'] = '(Opcional)';
$txt['contact_form_field_optional_email'] = '(Si quieres una respuesta)';
$txt['contact_form_field_required'] = '(Requerido)';
$txt['contact_form_label_default'] = 'default: ';
$txt['contact_form_label_edit'] = '[edit]';
$txt['contact_form_label_email'] = 'Email ';
$txt['contact_form_label_ip'] = "\r\n\r\n-- \r\nIP: ";
$txt['contact_form_label_message'] = 'Mensaje ';
$txt['contact_form_label_name'] = 'Nombre ';
$txt['contact_form_label_rdns'] = "\r\nrDNS: ";
$txt['contact_form_label_sender'] = "\r\nSender: ";
$txt['contact_form_label_status_email'] = 'Email: ';
$txt['contact_form_label_status_name'] = 'Nombre: ';
$txt['contact_form_label_status_separator'] = "------\r\n\r\n";
$txt['contact_form_label_status_subject'] = 'Asunto: ';
$txt['contact_form_label_subject'] = 'Asunto ';
$txt['contact_form_label_submit_button'] = 'Enviar Mensaje';
$txt['contact_form_label_unchecked'] = 'No Comprobado: ';
$txt['contact_form_label_verification'] = 'Verificando ';
$txt['contact_form_message_sent'] = 'Mensaje Enviado. Gracias por su comentario.';
$txt['contact_form_mods_cat'] = 'Formulario de Contacto';
$txt['contact_form_require_email'] = 'Requerida direccion de correo:';
$txt['contact_form_require_name'] = 'Requirido nombre del remitente:';
$txt['contact_form_require_subject'] = 'Requerido linea de asunto:';
$txt['contact_form_result_error'] = 'Error';
$txt['contact_form_result_message_sent'] = 'Mensaje Enviado';
$txt['contact_form_result_send_mail_failed'] = 'Fallo enviando el mensaje';
$txt['contact_form_sender_email_dont_use_form'] = 'No utilice la dirección de correo electrónico del formulario de contacto como dirección del remitente:';
$txt['contact_form_sender_email_dont_use_form_default'] = 'Utilizar la dirección de correo electrónico del formulario si se proporciona';
$txt['contact_form_sender_is_guest'] = 'Invitado';
$txt['contact_form_sender_name_dont_use_form'] = 'No usar el nombre del formulario de contacto como nombre del remitente:';
$txt['contact_form_sender_name_dont_use_form_default'] = 'Utilizar el nombre del formulatio si se proporciona';
$txt['contact_form_sender_subject_dont_use_form'] = 'No usar la linea de asunto del formulario de contacto como linea de asunto del remitente:';
$txt['contact_form_sender_subject_dont_use_form_default'] = 'Utilizar la linea de asunto del formulario si se proporciona';
$txt['contact_form_skip_dns_check'] = 'Saltarse el checador de dominio de la direccion de correo electronico:';
$txt['contact_form_subject_prefix'] = 'Prefijo Opcional de la Linea de asunto:';
$txt['contact_form_subject_prefix_default'] = 'no prefijo';
$txt['contact_form_tab_label'] = 'Ficha Etiqueta del Contacto del formulario:';
$txt['contact_form_title']='Contacto de Formulario';
Thank you aelmiger for your Spanish translation!
Quote from: vbgamer45 on May 20, 2010, 11:59:39 AM
Thank you aelmiger for your Spanish translation!
Nothing man, now hear a question, how could I do to get on top of the message, I can put any notes for users to read.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffotos.subefotos.com%2Fd051f16c7be8dd639c3b27a937373530o.jpg&hash=56c6257a7ca73e74a9685b3a58b1f31ee4137bb2)
More or less I would like to do that ;)
Edit the Contact.template.php template and just put it above the form.
Quote from: vbgamer45 on May 21, 2010, 08:32:10 PM
Edit the Contact.template.php template and just put it above the form.
Thanks a lot of man
Just wondering if this would ever be a feature in the future: Add name and configure your own extra forms from the Admin CP...
That would probably be the custom form Mod i think one is made already.
From where can I control the settings of that contact form?
Thanks for that mod by the way
There are no settings for this mod. Only one permission
Question before I install
Where does the "Contact" button go once installed?
In the menu bar
Great mod and Enable Great future, specially for guests who want to contact Administrator of Forum without registering.
I have installed latest version, everything is working fine including CAPTCHA verification.
But there are SMF SPAMS which by pass CAPTCHA verification, everyday I am receiving dozens of spam emails.
I had same problem with registration then I installed AntiSPAM Verification Question.
How to add Antispam Question for CONTACT PAGE?
You would need to modify the contact.php and contact.template.php to include the antispam code
Turkish Translate :
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'İletişim';
$txt['permissionname_view_contact'] = 'İletişim Sayfasını görüntüleyebilir';
$txt['permissionhelp_view_contact'] = 'Allows members to view contact page and send email.';
$txt['cannot_view_contact'] = 'İletişim sayfasını göremiyorsunuz.';
$txt['smfcontact_name'] = 'İsim Soysiminiz:';
$txt['smfcontact_subject'] = 'Konu';
$txt['smfcontact_body'] = 'İletiniz';
$txt['smfcontact_emailaddress'] = 'Email Adresiniz';
$txt['smfcontact_sendemail'] = 'Gönder';
$txt['smfcontact_messagesent'] = 'Başarılı bir şekilde gönderildi!';
$txt['smfcontact_messagesent_click'] = 'İletiniz gönderildi Tıklayınız ';
$txt['smfcontact_messagesent_return'] = 'Tıklayınız</a> Sizi geri yönlendirir.';
$txt['smfcontact_errname'] = 'Lütfen İsim Soyisim giriniz.';
$txt['smfcontact_errsubject'] = 'Lütfen Konu giriniz.';
$txt['smfcontact_errmessage'] = 'Lütfen İleti yazınız.';
$txt['smfcontact_erremail'] = 'E mail adresi size geri bildirim için gereklidir.';
$txt['smfcontact_titlesent'] = ' - İletiniz gönderildi.';
$txt['smfcontact_form'] = 'İletişim Sayfası ';
$txt['smfcontact_formname'] = "İsim Soyisim: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "İletiniz: \n";
Thanks for translation
New release
2.1
+Added support for the reCaptcha mod! Will use instead of the normal SMF captcha if installed.
Hi. The CONTACT button is within the menu section buttons. Can you show the coding to actually put the button right justified of the menu buttons so itll be by itself?
Quote from: vbgamer45 on July 09, 2010, 10:37:01 PM
New release
2.1
+Added support for the reCaptcha mod! Will use instead of the normal SMF captcha if installed.
Mine already does that vb. I have reCaptcha and Contact page... and reCaptcha appears on my contact page.
will i come across any problems if i don't upgrade to 2.1?
hmm You can try and see what happens
Error after updating the mod
Apply Filter: Only show the error messages of this URL http://www.afghanistanforums.com/index.php?action=contact
Apply Filter: Only show the errors with the same message
8: Undefined index: recaptcha_enabled
File: /home2/maihanin/public_html/forum/Themes/default/Contact.template.php
Line: 70
maihannijat posted a new fix that should help
Yap solved.
Where can i edit the contact page? I want to insert telephone numbers and addresses.
Edit the contact.template.php found in themes/default/
Quote from: vbgamer45 on July 10, 2010, 10:32:43 AM
hmm You can try and see what happens
Just to let you know vb, im not getting any errors with it. I have the earlier version and reCaptcha installed and all is working fine.
so i don't think i need to upgrade
I have a small proble. i tried using the contact page and i get no emails from it. Is there something that needs to be set up?
It is setup to use the email address under Server Settings the webmaster email. Check error log for any other details
In my error log nothing appears. Its really strange.
I dont know php that well. is there anyone that can help me??
this is a great mod, thanks very much.
i have edited the Contact2.template.php to include an address field, the contact page shows no problems at all, the fields are there and can be filled out.
but once the send button is pressed the mail is sent with out the details of these fields?
do i now need to edit the Contact2.php? some were round here to include the fields
$m = $txt['smfcontact_form'] . $mbname . " \n";
$m .= $txt['smfcontact_formname'] . $from . "\n";
$m .= $txt['smfcontact_formemail'] . $email . "\n";
$m .= $txt['smfcontact_ip'] . $_SERVER['REMOTE_ADDR'] . "\n";
$m .= $txt['smfcontact_formmessage'];
$m .= $message;
$m .= "\n";
Yes you would edit that code in Contact2.php you would need to grab the address field from the request and add it to the $m variable.
thanks for the answer VB
i have editied the Contact2.php but im getting an undifined variable, were would i have to declair this variable?
http://xxxx/index.php?action=contact&sa=save
Undefined variable: address
File: /home/xxxx/public_html/Sources/Contact2.php
Line: 83
on line 83 is this:
$m .= 'Address:' . $address . " \n";
the text 'Address' appears in the e-mail but not the data contained in the variable (that is also not defined)
if i knew were to declair it there would be no problems at all... i think...
change it to $_REQUEST['address']
worked a dream... thanks... ;D
any other added fields would be done in the same manner i presume..
Yup that is correct.
I'm receiving lots of spam emails. How can I add capta to contact page?
I'm using SMF2 RC3
thanks
Capta is already part of Contact page...
only guests get to see it
your users dont see the capta, and why should they, they have already gone through the proses when Registering for an acount.
you are right, thanks and sorry my question...
My host recently got under certain problems.
then he restored the things
but i got that my contact page isnt working anymore
when i am clicking the "Contact" button, it is showing me the default index page of the site, and not the contact page
kindly help me in getting it working
i tried to reinstall it but uninstallation is failing!
before the downtime it was working correctly!
kindly help me.
thankyou!
Is there anyone that can help me to add my numbers on the contact page?
Quote from: NFSMW on September 10, 2010, 08:37:59 AM
Is there anyone that can help me to add my numbers on the contact page?
What do you mean by numbers?
Cellphone number and office number
i would he is on about a post from a few days ago, that he would like to put His phone number and address on the contact page... which i do beleive was answered...
but here you have it again.. you edit the Contact2.template.php
after the </tbody> tag and before the <table> with the text boxes.. then you will have your information at the top of the contact page.
Ok but it looks bad. Take a look. ilnika.com/contact/
i am not supprised at all, you havent even given it any room to be in for example part of the table and you have not even given it a class...
</tbody>
Office: 014 743 3867
Cellphone: 083 778 5045
<tr>
try this, it goes directly after the </tbody> Tag and just befor this tag
<tr>
<td width="100%" class="windowbg2">;
<tr>
<td width="60%" class="windowbg2"><span class="gen">
Office: 014 743 3867 <br>
<br>
</td>
<td width="40%" class="windowbg2"><span class="gen">
Cellphone: 083 778 5045<br>
<br>
</span></td>
</tr>
</table>
<table class="table_list" align="center" width="100%">
Ok i dit it but there is something wrong. Maybe you would know.
i am not here to teach basic HTML....
look at your code... there is a semi colon ; to many.. !!
delete this out of your code... which is after your </tbody> tag , and next time please read what i type..
<tr>
<td width="100%" class="windowbg2">;
Hey im sorry. Jus look at it again quick. The cellphone number is to far right
this is very basic HTML....
you have still left in
<tr>
<td width="100%" class="windowbg2">
after the </tbody>
i told you to delete it in my last post..!! am i talking to my self...
i would suggest you learn HTML coding... in perticular tables http://www.htmlcodetutorial.com/tables/
if you come with another HTML coding question i will ignore it...
probably because you did not do the steps that were told in my very first posting... and then after repeating my self you still have not done what i typed...
I arranged my mail adress on server settings but still i can't get mails. Can you check please?
Check your forum error log. If you have a mailserver log that might work to. If not I would suggest trying another email address such as gmail.
There are some error logs like "mail couldn't be sent to ......"
I tried gmail but it still doesn't work
how should i do?
I would look into the mail couldn't be sent to errors that sounds like an error for your host if the mail is failing
Quote from: vbgamer45 on September 23, 2010, 03:32:05 PM
I would look into the mail couldn't be sent to errors that sounds like an error for your host if the mail is failing
how can i fix that?
when clicking on error code it says " you need to enter your name" but i already entered my name on contact form. :-\ :-\
Quote from: kalamar on September 23, 2010, 04:20:11 PM
Quote from: vbgamer45 on September 23, 2010, 03:32:05 PM
I would look into the mail couldn't be sent to errors that sounds like an error for your host if the mail is failing
how can i fix that?
Depends on what the error. Might be mail server settings error with the host so your host would need to fix it.
Translation by MOD Translator SirtLanVadisi in turkish and turkish-utf8 languages
<file name="$themedir/languages/Modifications.turkish.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Mod Contact Page MOD Translation by SirtLanVadisi.NeT
$txt['smfcontact_contact'] = 'Iletişim';
$txt['permissionname_view_contact'] = 'Iletişim Sayfasını Görebilir';
$txt['permissionhelp_view_contact'] = 'Üylerin İletişim Sayfasını görmesini ve e-mail göndermesini sağlar';
$txt['cannot_view_contact'] = 'Iletişim Sayfasını Göremessiniz.';
$txt['smfcontact_name'] = 'Isminiz:';
$txt['smfcontact_subject'] = 'Konu';
$txt['smfcontact_body'] = 'Mesajınız';
$txt['smfcontact_emailaddress'] = 'E-Mail Adresiniz';
$txt['smfcontact_sendemail'] = 'E-mail Gönder';
$txt['smfcontact_messagesent'] = 'Mesajınız başarıyla gönderildi!';
$txt['smfcontact_messagesent_click'] = 'Foruma dönmek için';
$txt['smfcontact_messagesent_return'] = 'tıklayın.</a>';
$txt['smfcontact_errname'] = 'Bir isim vermelisiniz.';
$txt['smfcontact_errsubject'] = 'Konu yazmalısınız.';
$txt['smfcontact_errmessage'] = 'Mesaj yazmalısınız.';
$txt['smfcontact_erremail'] = 'E-mail adresi yazmalısınız.';
$txt['smfcontact_titlesent'] = ' - Mesajınız Gönderildi.';
$txt['smfcontact_form'] = 'Iletişim sayfası ';
$txt['smfcontact_formname'] = "Isim: ";
$txt['smfcontact_formemail'] = "E-mail: ";
$txt['smfcontact_formmessage'] = "Mesaj: \n";
// End Mod Contact Page MOD Translationby SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Begin Contact Page MOD Translation SirtLanVadisi.NeT
$txt['smfcontact_contact'] = 'İletişim';
$txt['permissionname_view_contact'] = 'İletişim Sayfasını Görebilir';
$txt['permissionhelp_view_contact'] = 'Üyelerin İletiÅŸim Sayfasını Görmesini ve E-Mail Göndermesini SaÄŸlar.';
$txt['cannot_view_contact'] = 'İletiÅŸim Sayfasını Göremezsiniz.';
$txt['smfcontact_name'] = 'İsminiz:';
$txt['smfcontact_subject'] = 'Konu';
$txt['smfcontact_body'] = 'Mesajınız';
$txt['smfcontact_emailaddress'] = 'E-mail Adresiniz';
$txt['smfcontact_sendemail'] = 'E-Mail Gönder';
$txt['smfcontact_messagesent'] = 'Mesajınız başarıyla gönderildi!';
$txt['smfcontact_messagesent_click'] = 'Foruma dönmek için';
$txt['smfcontact_messagesent_return'] = 'tıklayınız</a> Bölüme Geri Döner.';
$txt['smfcontact_errname'] = 'Bir İsim vermelisinÄiz.';
$txt['smfcontact_errsubject'] = 'Konu yazmalısınız.';
$txt['smfcontact_errmessage'] = 'Mesaj yazmalısınız.';
$txt['smfcontact_erremail'] = 'E-Mail Adresinizi yazmalısınız.';
$txt['smfcontact_titlesent'] = ' - Mesaj Gönderildi.';
$txt['smfcontact_form'] = 'İletişim Sayfası';
$txt['smfcontact_formname'] = "İsim: ";
$txt['smfcontact_formemail'] = "E-Mail: ";
$txt['smfcontact_formmessage'] = "Mesaj: \n";
// END Contact Page MOD Translation SirtLanVadisi.NeT
]]></add>
</operation>
</file>
Translation by MOD Translator SirtLanVadisi in german and german-utf8 languages
<file name="$themedir/languages/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Mod Contact Page MOD Translation by SirtLanVadisi.NeT
$txt['smfcontact_contact'] = 'Kontakt';
$txt['permissionname_view_contact'] = 'Kann die Kontaktseite sehen';
$txt['permissionhelp_view_contact'] = 'Erlaubt es den Mitglieder, die Kontaktseite zu sehen und ein Nachricht zu senden';
$txt['cannot_view_contact'] = 'Sie haben nicht die Berechtigung den Kontaktseite zu sehen.';
$txt['smfcontact_name'] = 'Name:';
$txt['smfcontact_subject'] = 'Thema';
$txt['smfcontact_body'] = 'Ihre Nachricht';
$txt['smfcontact_emailaddress'] = 'e-Mail Adresse';
$txt['smfcontact_sendemail'] = 'e-Mail senden';
$txt['smfcontact_messagesent'] = 'Ihre Nachricht wurde gesendet!';
$txt['smfcontact_messagesent_click'] = 'zurück zu Hauptseite';
$txt['smfcontact_messagesent_return'] = 'klicken.</a>';
$txt['smfcontact_errname'] = 'Sie müssen Ihre Name eingeben.';
$txt['smfcontact_errsubject'] = 'Sie müssen den Thema angeben.';
$txt['smfcontact_errmessage'] = 'Sie müssen eine Nachricht schreiben.';
$txt['smfcontact_erremail'] = 'Sie müssen eine e-mail Adrese eingeben.';
$txt['smfcontact_titlesent'] = ' - Ihre Nachricht wurde gesendet.';
$txt['smfcontact_form'] = 'Kontaktseite ';
$txt['smfcontact_formname'] = "Name: ";
$txt['smfcontact_formemail'] = "E-mail: ";
$txt['smfcontact_formmessage'] = "Nachricht: \en";
// End Mod Contact Page MOD Translationby SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Mod Contact Page MOD Translation by SirtLanVadisi.NeT
$txt['smfcontact_contact'] = 'Kontakt';
$txt['permissionname_view_contact'] = 'Kann die Kontaktseite sehen';
$txt['permissionhelp_view_contact'] = 'Erlaubt es den Mitglieder, die Kontaktseite zu sehen und ein Nachricht zu senden';
$txt['cannot_view_contact'] = 'Sie haben nicht die Berechtigung den Kontaktseite zu sehen.';
$txt['smfcontact_name'] = 'Name:';
$txt['smfcontact_subject'] = 'Thema';
$txt['smfcontact_body'] = 'Ihre Nachricht';
$txt['smfcontact_emailaddress'] = 'e-Mail Adresse';
$txt['smfcontact_sendemail'] = 'e-Mail senden';
$txt['smfcontact_messagesent'] = 'Ihre Nachricht wurde gesendet!';
$txt['smfcontact_messagesent_click'] = 'zurück zu Hauptseite';
$txt['smfcontact_messagesent_return'] = 'klicken.</a>';
$txt['smfcontact_errname'] = 'Sie müssen Ihre Name eingeben.';
$txt['smfcontact_errsubject'] = 'Sie müssen den Thema angeben.';
$txt['smfcontact_errmessage'] = 'Sie müssen eine Nachricht schreiben.';
$txt['smfcontact_erremail'] = 'Sie müssen eine e-mail Adrese eingeben.';
$txt['smfcontact_titlesent'] = ' - Ihre Nachricht wurde gesendet.';
$txt['smfcontact_form'] = 'Kontaktseite ';
$txt['smfcontact_formname'] = "Name: ";
$txt['smfcontact_formemail'] = "E-mail: ";
$txt['smfcontact_formmessage'] = "Nachricht: \en";
// End Mod Contact Page MOD Translationby SirtLanVadisi.NeT
]]></add>
</operation>
</file>
Thank you very much for the translation
Where to edit that contact is not the webmaster if another user?
Thanks you :)
My Version SMF 1.1.11
hei,
new translation into German
http://www.simplemachines.org/community/index.php?topic=97782.msg2797140#msg2797140
Thanks for translation for German!
Just curious. I run the reCAPTCHA mod (and it is set in the forum software to use it, and does so on the registration form without issues).
Unfortunately, when I view the contact page as a guest, no reCAPTCHA form is shown. If I try to email via the form as a guest, it gives me an error indicating invalid captcha response.
What SMF Version?
Sorry, was version 1.1.11.
I've temporarily just commented out the if/else statements regarding visual verification in the contact.template file to manually force it to use reCAPTCHA at the moment.
This does in fact work. the reCAPTCHA form is showing at the moment and works properly.
Can you attach your contact.template.php would like to see what you did.
File is attached. its a very....bad solution, what I did. It really only works so long as I always have reCAPTCHA enabled (i do intent to investigate further on my SMF install to see what might cause it)
Basically, one of the following If statements in the file was returning false rather than true as it should have by the way it is set up.
if ($context['visual_verification'])
{
if (isset($modSettings['recaptcha_enabled']) && $modSettings['recaptcha_enabled'])
{
This MOD have been installed on the default theme successfully. Now what do I do to make it work with my current theme. I am using mobile theme. Please help.
Praveer
did you copy the Contact.template.php into your mobile theme
if your using SMF2 RC3 then you should copy Contact2.template.php into your mobile theme..
Where do I have to place that file in my mobile theme? And yes I am using SMF 2 RC3
Place it in your mobile theme main folder, then it will work.....
i suppose you have a link in your SMF site... that will take you to your contact page ?
if not then put one in your Subs.php this would look something like this;
// [Contact Page] button
'contact' => array(
'title' => $txt['smfcontact_contact'],
'href' => $scripturl . '?action=contact',
'show' => $context['allow_view_contact'],
'icon' => '',
),
I have not installed the MOD yet but want to clarify my doubts before installing.
So I place that file in the theme folder inside no sub folder. Am I rite?
if you already have it in your default theme, you will see exactly were it is..!!
yes you would be right, it gets placed in the themes folder---- no sub folder
in the themes folder you should see "index.template.php" and the such likes... the "Contact2.template.php" gets placed there along with the other php files.
So after installing it in the default theme, I just copy the contact2.template.php in my mobile theme folder.
yes
Thanks a lot. Installed it successfully.
forget that edit, if it installs OK on your default theme....
it would depend on your mobile theme, as to what edits would need to be compleated
if you have a subs.php in the mobile theme that that would need to be edited...
Everything is fine. Now I want to change the email address to which it sends as I have to email accounts on the Server. How do I go about it.
There is no Subs.php in the theme folder.
the e-mail address that is used to send the contact page.. is the one you have setup with your SMF installation.
Admin - Configuration - General - Webmaster Email Address
if you want to send the mail to a different Email address, you will need a little knowledge in PHP
find this in your \Sources\contact2.php and edit it..
// Send email to webmaster
sendmail($webmaster_email, $subject, $m,$email);
Thanks a lot once again.
Quote from: deansmar on October 04, 2010, 11:59:36 AM
the e-mail address that is used to send the contact page.. is the one you have setup with your SMF installation.
Admin - Configuration - General - Webmaster Email Address
if you want to send the mail to a different Email address, you will need a little knowledge in PHP
find this in your \Sources\contact2.php and edit it..
// Send email to webmaster
sendmail($webmaster_email, $subject, $m,$email);
Same sample?
[email protected] how?
Change
sendmail($webmaster_email, $subject, $m,$email);
sendmail('[email protected] ', $subject, $m,$email);
I finaly got around to do this. It looks better now.
Quote from: deansmar on September 13, 2010, 11:11:07 AM
this is very basic HTML....
you have still left in
<tr>
<td width="100%" class="windowbg2">
after the </tbody>
i told you to delete it in my last post..!! am i talking to my self...
i would suggest you learn HTML coding... in perticular tables http://www.htmlcodetutorial.com/tables/
if you come with another HTML coding question i will ignore it...
probably because you did not do the steps that were told in my very first posting... and then after repeating my self you still have not done what i typed...
Is there a way to add a box where the user can imput his telephone number in the contact page.
You would need to modify the template and the main source file to collect that information
How is that done?
By editing the files adding the html and php code.
Nice mod...
Here is the Danish translation
<file name="$languagedir/Modifications.danish-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Kontakt';
$txt['permissionname_view_contact'] = 'Vis kontakt siden';
$txt['permissionhelp_view_contact'] = 'Tillad medlemmer af se kontakt side og sende e-mail.';
$txt['cannot_view_contact'] = 'Du har ikke adgang til kontakt siden.';
$txt['smfcontact_name'] = 'Dit navn:';
$txt['smfcontact_subject'] = 'Emne:';
$txt['smfcontact_body'] = 'Besked:';
$txt['smfcontact_emailaddress'] = 'Din e-mail adresse:';
$txt['smfcontact_sendemail'] = 'Send e-mail';
$txt['smfcontact_messagesent'] = 'Din besked blev sendt!';
$txt['smfcontact_messagesent_click'] = 'Din besked blev sendt! Klik ';
$txt['smfcontact_messagesent_return'] = 'her</a> for at returnere til forum.';
$txt['smfcontact_errname'] = 'Du skal indtaste dit navn.';
$txt['smfcontact_errsubject'] = 'Du skal indtaste et emne.';
$txt['smfcontact_errmessage'] = 'Du skal skrive en besked.';
$txt['smfcontact_erremail'] = 'Du skal indtaste din e-mail adresse.';
$txt['smfcontact_titlesent'] = ' - Besked sendt.';
$txt['smfcontact_form'] = 'Kontakt side formular for ';
$txt['smfcontact_formname'] = "Navn: ";
$txt['smfcontact_formemail'] = "E-mail: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Besked: \n";
// END Contact Page Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.danish.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Kontakt';
$txt['permissionname_view_contact'] = 'Vis kontakt siden';
$txt['permissionhelp_view_contact'] = 'Tillad medlemmer af se kontakt side og sende e-mail.';
$txt['cannot_view_contact'] = 'Du har ikke adgang til kontakt siden.';
$txt['smfcontact_name'] = 'Dit navn:';
$txt['smfcontact_subject'] = 'Emne:';
$txt['smfcontact_body'] = 'Besked:';
$txt['smfcontact_emailaddress'] = 'Din e-mail adresse:';
$txt['smfcontact_sendemail'] = 'Send e-mail';
$txt['smfcontact_messagesent'] = 'Din besked blev sendt!';
$txt['smfcontact_messagesent_click'] = 'Din besked blev sendt! Klik ';
$txt['smfcontact_messagesent_return'] = 'her</a> for at returnere til forum.';
$txt['smfcontact_errname'] = 'Du skal indtaste dit navn.';
$txt['smfcontact_errsubject'] = 'Du skal indtaste et emne.';
$txt['smfcontact_errmessage'] = 'Du skal skrive en besked.';
$txt['smfcontact_erremail'] = 'Du skal indtaste din e-mail adresse.';
$txt['smfcontact_titlesent'] = ' - Besked sendt.';
$txt['smfcontact_form'] = 'Kontakt side formular for ';
$txt['smfcontact_formname'] = "Navn: ";
$txt['smfcontact_formemail'] = "E-mail: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Besked: \n";
// END Contact Page Text Strings
]]></add>
</operation>
</file>
Hello all,
I have installed while I was having the Greek language in smf. Then I have returned to English language and the Contact page gave the following error:
Fatal error: require_once() [function.require]: Failed opening required '/home/domain/public_html/forum/Sources/Contact.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/domain/public_html/forum/index.php on line 359
I tried to uninstall it but i get the errors attached.
If I continue to uninstall it will I have any other problems? I need to uninstall it and install it again or some other Contact mod.
Thanking you in advance.
I have tried to uninstall it again and now it gives one more error!! (see attached)
Problem solved! I have uninstall all mods and it was removed.
It doesn't support the greek characters in a "ISO-8859-1" forum.
Installed manually and working well.
Many thanks
Glad you have it working.
vbgamer,
I have this mod installed, as well. It, too, does not validate XHTML. If you go to my contact page and click the XHTML validation link at the bottom of the page, you will see where your errors are.
It would seem you are using the term "POST" when you should be using "post" and you're also using just an "&" when it should be "&".
Now...I know the mod works but, I'm a stickler when it comes to mods being XHTML compliant.
By the way...thanks for the quick replies to my posts...I really didn't expect them...having previously migrated from vBulletin to SMF.
It's been a few days...so, thought I'd bump this for a reply, please...
Updated
2.1.2
!Fixed some xhtml validation issues.
The contact page is still failing XHTML validation based on the following:
Line 175, Column 33: value of attribute "align" cannot be "top"; must be one of "left", "center", "right", "justify", "char"
<td width="40%" align="top" class="windowbg2">
B-U-M-P!
Again...it's been a couple of days. The issue with the xhtml validation is being caused by the Contact2.template.php file and needs to be updated. I have, since, made the appropriate modifications to the code for that template...and now...the form validates as XHTML compliant.
vbgamer,
If you have any questions as to the modifications I made...please...don't hesitate to contact me (via PM) and I will be more than happy to help.
Can I modify this so that it sends email as a different email account? Even if it's a dummy account. What i mean is my Blackberry makes the "ding" noise (my email comes to my phone) but you don't see a new message because it shows up like i sent it to myself. I have to hunt for it. Now if the emails came in from say
[email protected] then they would show up all bright and shiney as a new, normal email.
The best would be if it showed that it came from the users email, because then i would only need to hit reply instead of reply to.
Updates
3.0
+Added new setting to allow you to set a custom email address to send contact form results to.
!Fixed some xhtml validation issues hopefully last ones
Thanks!
vbgamer,
Uninstalled the older mod and downloaded/uploaded this one via the Package Manager.
After installation of your latest version, I've run into a couple of issues...
First...
I'm getting two errors in the Admin Error Log (see below)...
Error 1:
http://xxxxxxxx.xxx/index.php?action=admin;area=packages;sa=install;package=smfcontactpage3.0.zip
2: fclose() expects parameter 1 to be resource, boolean given
File: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Sources/Subs-Package.php
Line: 2502
Error 2:
http://xxxxxxxx.xxx/index.php?action=admin;area=packages;sa=install;package=smfcontactpage3.0.zip
2: fopen(/xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Sources/ManageSettings.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Sources/Subs-Package.php
Line: 2495
Could you please advise?
Second...
The Contact page still does not pass XHTML validation due to a few issues I have found in the coding of the Contact.php and Contact2.php files. If you go to my site's Contact page and click the link at the bottom to validate the XHTML, you will see just what those errors are.
You have included an extra space in a few lines of your coding which breaks the validation.
You're also missing a <tbody> element in the coding of the Contact templates.
I appreciate any answers and advice you have to give regarding the issues I have described above.
The errors are not related to the mod itself but looks lke SMF's package manager and those are caused by file permission issues on the website.
Quote from: vbgamer45 on June 04, 2011, 09:52:27 AM
The errors are not related to the mod itself but looks lke SMF's package manager and those are caused by file permission issues on the website.
Does the above comment relate to my entire post or, just the package install errors? Upon installation of the mod, the Sources directory already had permissions set at 777 and the Subs-Package.php file was set at 755.
What about the coding of Contact.template.php and Contact2.template.php files which are causing the XHTML validation issues?
The Sources Directory has been CHMOD to 777 and the Subs-Package.php file is 755.
I need to know what changes need to be made to fix the xhtml issues that I can update the package.
Just installed this mod, great, thx vbgamer45
Glad you enjoy the mod!
Can someone please tell me how to activate the "contact page" mod, or where the settings are for it. I have downloaded it already to my forum. It's there but I cannot find any settings. HELP ! Sorry I am a newb to SMF.
It should add a tab to the default theme with a button called contact
Where is custom email address settings' option to edit email ID for Contact Page.
I've installed successfully and tried to search out email ID's field, but failed.
Please guide me where is these settings / option ?
I am still checking the W3C acceptance - it fails on Contact2.template.php - the mod itself works fine - thx for that
There are 2 errors:
Markup Validation Service (testforum) (http://validator.w3.org/check?uri=http%3A%2F%2Faida32-inventory.netboom.de%2Fsmf%2Findex.php%3Faction%3Dcontact&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.2)
Could you please check it?
ups... - haven't seen that GlitchPC has also asked for....
Also the 3.0 version has set in Contact2.template.php version 2.0...
thank you,
Inti31
Addition:
okay - problem solved - I tried a little bit - now it is valid but there is one thing:
membername, subject, messagetext, verification text is now white-colored - see here (testforum) (http://aida32-inventory.netboom.de/smf/index.php?action=contact)
now I've to learn how to colorize the text items... :( - that it looks like before...
to get it valid just open Contact2.template.php and remove first
</tbody> in line 21 and add </tbody> in line 62 that it looks like "</tbody></table>"
cheers inti31
Awesome mod, ty!
I have a question though, I dont see Captcha in Contact form. Where am I making a mistake?
Thanks!
if your logged in, you wont see it, only guests see the Captcha..
Quote from: vbgamer45 on June 03, 2011, 10:16:20 AM
Updates
3.0
+Added new setting to allow you to set a custom email address to send contact form results to.
!Fixed some xhtml validation issues hopefully last ones
Where do I set a custom email address?
Thanks,
Check either modifications settings or features and options.
Quote from: vbgamer45 on September 16, 2011, 08:41:33 PM
Check either modifications settings or features and options.
Found it, Modification Settings.
Works great, thanks!
good work, thanks.
persian (فارسی):
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'تماس با ما';
$txt['permissionname_view_contact'] = 'نمایش صفحه تماس';
$txt['permissionhelp_view_contact'] = 'کاربران اجازه مشاهده صفحه ی تماس و ارسال ایمیل را داشته باشند.';
$txt['cannot_view_contact'] = 'شما قادر به مشاهده صفحه تماس نیستید.';
$txt['smfcontact_name'] = 'نام:';
$txt['smfcontact_subject'] = 'موضوع';
$txt['smfcontact_body'] = 'پیام';
$txt['smfcontact_emailaddress'] = 'آدرس رایانامه (ایمیل)';
$txt['smfcontact_sendemail'] = 'ارسال پیام';
$txt['smfcontact_messagesent'] = 'پیام شما ارسال شد!';
$txt['smfcontact_messagesent_click'] = 'پیام شما ارسال شد! اینجا را ';
$txt['smfcontact_messagesent_return'] = 'برای بازگشت به انجمن</a> کلیک کنید.';
$txt['smfcontact_errname'] = 'شما می بایست نام خود را وارد کنید.';
$txt['smfcontact_errsubject'] = 'شما می بایست عنوان موضوع رو وارد کنید.';
$txt['smfcontact_errmessage'] = 'شما باید متن پیام خود را وارد کنید.';
$txt['smfcontact_erremail'] = 'شما می بایست ایمیل خود را وارد کنید.';
$txt['smfcontact_titlesent'] = ' - پیام ارسال شد.';
$txt['smfcontact_form'] = 'فرم صفحه ی تماس برای ';
$txt['smfcontact_formname'] = "نام: ";
$txt['smfcontact_formemail'] = "ایمیل: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "پیام: \n";
$txt['smfcontactpage_email'] = 'SMF ایمیل صفحه تماس: ';
// END Contact Page Text Strings
Thanks again for translation
an absolute fantastic Mod.....
i know that this mod only produces a Plain Text Mail sent to the Mail address ....
i would like to make parts of the Plain text mail
Bold, for example the "Vorname" or "Straße", as far as i know this can only be achieved if the Mail is sent in HTML and that a couple of headers must be added to convert the plaintext mail into HTML.
$m = $txt['smfcontact_form'] . $mbname . " \n";
$m .= $txt['smfcontact_ip'] . $_SERVER['REMOTE_ADDR'] . "\n";
$m .= $txt['smfcontact_formemail'] . $email . "\n";
$m .= $txt['smfcontact_formname'] . $from . " | " . $Vorname . "\n";
$m .= 'Straße: ' . $_REQUEST['Strsse'] . "\n";
$m .= 'PLZ: ' . $_REQUEST['PLZ'] . " | Ort: " . $_REQUEST['Ort'] . "\n";
my question is: were do the Headers have to be inserted into Contact2.php, i would imagine some were here..?
// Send email to webmaster
if (empty($modSettings['smfcontactpage_email']))
sendmail($webmaster_email, $subject, $m,$email);
else
sendmail($modSettings['smfcontactpage_email'], $subject, $m,$email);
this is a quote out of a different forum:
QuoteI got round it by adding this into the headers for the email() function in php.
$strHeaders = "MIME-Version: 1.0\r\n";
$strHeaders .= "Content-type: text/html; charset=iso-8859-1\r\n";
i would appreciate a little help...
The sendmail function has a parameter to send as html just turn that on and it will work that way.
i have been looking through the code in contact2.php, but don't seem to be able to find anything...
but then i realised that the sub-post.php is called..
somewere near line 613;
// Send off an email.
function sendmail($to, $subject, $message, $from = null, $message_id = null, $send_html = true,
$priority = 3, $hotmail_fix = null, $is_private = false)
{
global $webmaster_email, $context, $modSettings, $txt, $scripturl;
global $smcFunc;
changed the $send_html from false to true.... hope it works... :o
update:
jup... works a treat, now all i have to do is add the HTML text codeing to the lines in the Contact2.php
thanks.. 8)
2.0.2 and this failure? any ideas?
1. Execute Modification ./index.php Test failed
1. Add Before ./index.php Test failed
* 2. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
* 3. Execute Modification ./Sources/ManageMembergroups.php Test failed
1. Replace ./Sources/ManageMembergroups.php Test failed
2. Add After ./Sources/ManageMembergroups.php Test successful
3. Replace ./Sources/ManageMembergroups.php Test failed
4. Add After ./Sources/ManageMembergroups.php Test successful
* 4. Execute Modification ./Themes/default/ManageMembergroups.template.php Test failed
1. Replace ./Themes/default/ManageMembergroups.template.php Test failed
* 5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Extract File ./Themes/default/ModReporting.template.php
7. Extract File ./Sources/ModReport.php
8. Execute Code addsql.php
That code does not look like it is from contact page system but another mod.
I wanted to update my forums. Can I update my forum and update this mod for my forum. Or do I have to uninstall this mod and reinstall it after I update my forums.
If you are doing a large upgrade yes such as 1.1.x to 2.0.x
If is a minor patch you do not need to uninstall.
Quote from: vbgamer45 on July 06, 2006, 12:59:38 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=377)
Adds a contact page to the default theme. Allows people to contact the webmaster from the forum.
3.0
+Added new setting to allow you to set a custom email address to send contact form results to.
!Fixed some xhtml validation issues hopefully last ones
I get the following error when trying to install this mod SMF 2.0.2
Quote
Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
1. Add Before ./Themes/default/languages/Modifications.english.php Test failed
2. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
2.1.2
!Fixed some xhtml validation issues.
2.1
+Added support for the reCaptcha mod! Will use instead of the normal SMF captcha if installed.
Place all bug reports and feature requests on this site:
http://www.smfhacks.com/index.php?action=modtracker
You have to alter you language file find ?> and make sure it is on it's own line in /Themes/default/languages/Modifications.english.php
Hello,
I am using 2.0.2.
Just install your mod.
Bud have a question.
Is it possible to install captcha in the mod?
And is it possible to change the language?
Our can I do it my self?
In the meanwhile I adjust Modifications.english.php to mine own language.
So the words in the contact page are now in Dutch.
I hope you don't mind. ;)
Capcha is enabled if you have for registration
You are free to translate the mod.
Quote from: vbgamer45 on February 05, 2012, 12:21:52 PM
Capcha is enabled if you have for registration
You are free to translate the mod.
So I can integrate it in the mod?
How can I do that?
Yes you just have the register settings on SMF to have captcha then it picks up SMF's built in captcha
Quote from: vbgamer45 on February 05, 2012, 01:03:28 PM
Yes you just have the register settings on SMF to have captcha then it picks up SMF's built in captcha
Ok thanks.
Bud I have one other question for you.
When I am not login the button contact(tekst) is not visible.
Can I make it visible?
Under Admin -> Permissions you have to setup permissions for each group
Quote from: vbgamer45 on February 02, 2012, 02:26:12 PM
You have to alter you language file find ?> and make sure it is on it's own line in /Themes/default/languages/Modifications.english.php
I have done that and it installed without error, However I can only see the contact button while in Admin panel Cannot see the contact button as a normal user. any suggestions. I really need this mod to work.
Under Admin -> Permissions you have to setup permissions for each group
Thank You Very Much. That did the trick. Great Mod and just what I needed.
Thanks Again
:)
Glad to help
german
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Kontakt';
$txt['permissionname_view_contact'] = 'zeige Kontaktformular';
$txt['permissionhelp_view_contact'] = 'Erlaube Mitgliedern das Kontaktformular zu nutzen.';
$txt['cannot_view_contact'] = 'Du kannst das Kontaktformular nicht aufrufen.';
$txt['smfcontact_name'] = 'Mitgliedsname:';
$txt['smfcontact_subject'] = 'Betreff';
$txt['smfcontact_body'] = 'Deine Nachricht';
$txt['smfcontact_emailaddress'] = 'Deine Email-Adresse';
$txt['smfcontact_sendemail'] = 'Sende Email';
$txt['smfcontact_messagesent'] = 'Deine Nachricht wurde versandt!';
$txt['smfcontact_messagesent_click'] = 'Deine Nachricht wurde versandt! Klicke ';
$txt['smfcontact_messagesent_return'] = 'hier</a> um zurückzukehren zum Board.';
$txt['smfcontact_errname'] = 'Du musst schon Deinen Namen angeben...';
$txt['smfcontact_errsubject'] = 'Du musst schon einen Betreff angeben...';
$txt['smfcontact_errmessage'] = 'Du musst mir auch schon was mitteilen...';
$txt['smfcontact_erremail'] = 'Du musst schon Deine Email-Adresse angeben...';
$txt['smfcontact_titlesent'] = ' - Nachricht wurde versendet.';
$txt['smfcontact_form'] = 'Kontaktaufnahme per Formular von ';
$txt['smfcontact_formname'] = "Mitglied: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Nachricht: \n";
$txt['smfcontactpage_email'] = 'SMF Kontaktseite Email: ';
// END Contact Page Text Strings
cheers & Thanks you for this mod
Inti31
Thanks for the translation.
I'm installing in 2.0.2 in Green Bean theme. I got a test failed and made the manual edits given.
Find:
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
and add after:
'',
// SMFHacks.com Contact Page
array('text', 'smfcontactpage_email'),
When I installed with those edits it caused my Configuration settings pages to be blank. Any idea how to fix this issue?
Hello! I want to translate this mod to Norwegian. Which file do I have to modify??
Thanks in advance!
Try themes/default/languages/modifications.english.php for contact page
I've tried to install and uninstall a couple times as I keep getting the error "The letters you typed don't match the letters that were shown in the picture."
Any suggestions? Captcha still works on registration, as I test that before posting here.
Are you using normal SMF captcha or recaptcha?
Just what comes in the box. :) My registration page uses the reason for joining mod, plus I use a set of three questions to be answered. The questions show up on the contact page for guests, and I'm wondering if the reason for joining mod might be a contributing factor, but its a pretty significant tool for us, so I don't want to loose it. I don't use the regular custom profile fields for that, because the other mod gives you the reason for joining on the admin registration approval page. We do all manual approval on our forum.
The error I get does, state that the text is different, so the error is pointing at the captcha field.
Hi all,
I am having a problem getting the contact mod to work on my new forum. I use a non default theme pro-side bar. It installs perfectly, I managed to access the contact page via http://www.myforum.com/index.php?action=contact. I copied the url and used menu lite mod to create a menu button for it. Everytime the contact button is clicked, it shows the contact page looking ok but if I Send a test message, it shows message sent but when I check my inbox it is not delivered. Also the default admin email which is in server settings doesn't appear automatically in the email address box, I have to type it in manually. Am I doing something wrong? What do I do to get it to show the default email address automatically without typing it and to get it to deliver messaging sent. Thanks in advance for any help.
I use smf 2.0.2. Any help?
Installed on my forum, yet when try to test it, do not receive the email.
Any ideas?
Quote from: phlexx on May 25, 2012, 01:11:59 PM
I use smf 2.0.2. Any help?
You won't get any help if you bump topics less than 24 hours again.
Quote from: phlexx on May 25, 2012, 01:02:38 PM
...
Also the default admin email which is in server settings doesn't appear automatically in the email address box, I have to type it in manually
...
The email address box is for the person filling out the form to leave their contact details; it's not meant to be the email address of the forum administrator 8)
I have been using this mod for a long time now as its a great kick to the forum.
Now I am at a point where I have to minimize the number of buttons in manu. for instance I replaced smf staff mod with Enhanced About Page mod (another great mod) that combines both about us and staff list. it also has the ability to add pages to its template.
my question is, since Enhanced About Pages can be BBC, html or php, can I get a code from contact us mod to make it an independent page?
Norwegian translation:
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Kontakt';
$txt['permissionname_view_contact'] = 'Vis kontaktside';
$txt['permissionhelp_view_contact'] = 'Tillat medlemmer å se kontaktsiden og sende e-post.';
$txt['cannot_view_contact'] = 'Du kan ikke se kontaktsiden.';
$txt['smfcontact_name'] = 'Ditt navn:';
$txt['smfcontact_subject'] = 'Emne';
$txt['smfcontact_body'] = 'Melding';
$txt['smfcontact_emailaddress'] = 'E-post adresse';
$txt['smfcontact_sendemail'] = 'Send e-post';
$txt['smfcontact_messagesent'] = 'Din melding er blitt sendt!';
$txt['smfcontact_messagesent_click'] = 'Din melding er blitt sendt! Klikk ';
$txt['smfcontact_messagesent_return'] = 'her</a> for å returnere til forumet.';
$txt['smfcontact_errname'] = 'Du må skrive navnet ditt.';
$txt['smfcontact_errsubject'] = 'Du må skrive et emne.';
$txt['smfcontact_errmessage'] = 'Du må skrive en beskjed.';
$txt['smfcontact_erremail'] = 'Du må skrive e-post adressen din.';
$txt['smfcontact_titlesent'] = ' - Melding sendt.';
$txt['smfcontact_form'] = 'Kontaktskjema for ';
$txt['smfcontact_formname'] = "Navn: ";
$txt['smfcontact_formemail'] = "E-post: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Beskjed: \n";
$txt['smfcontactpage_email'] = 'SMF Kontaktskjema e-post: ';
// END Contact Page Text Strings
Thank you so much for the translation!
Quote from: BaghdadGhost on July 16, 2012, 07:59:52 PM
I have been using this mod for a long time now as its a great kick to the forum.
Now I am at a point where I have to minimize the number of buttons in manu. for instance I replaced smf staff mod with Enhanced About Page mod (another great mod) that combines both about us and staff list. it also has the ability to add pages to its template.
my question is, since Enhanced About Pages can be BBC, html or php, can I get a code from contact us mod to make it an independent page?
All it does is point to action=contact so easy to make a sub menu or link it from another page.
Quote from: maihannijat on June 11, 2010, 01:27:06 AM
Great mod and Enable Great future, specially for guests who want to contact Administrator of Forum without registering.
I have installed latest version, everything is working fine including CAPTCHA verification.
But there are SMF SPAMS which by pass CAPTCHA verification, everyday I am receiving dozens of spam emails.
I had same problem with registration then I installed AntiSPAM Verification Question.
How to add Antispam Question for CONTACT PAGE?
I am in the same position (but have no idea how to add the anti spam question, or if this will work, or if there is a better way). I've had the mod installed for a week and i started getting spam through there since day 2 (even with captcha/recaptcha).
Are the spambots searching for sites/pages with the "Powered by Contact Page" link/notice?
Has anyone found a method to reduce the spam, because its so annoying and risks host problems because of the amount of emails and spam? Also is this spam only going to me (admin email) or could they be using this form to send bulk email?
Thanks for any help.
Install reCAPTCHA mod this mod also supports it.
all you have to do is switch the SMF anti spam question on...
by putting in 1 in the "Configure Verification Methods" under Configeration -> Security and Moderation -> Anti-Spam
and enter a question and answer in "Verification Questions"
i have had this set up for months, and have never had spam mails...
works now by setting above. Thanks.
The recaptcha/captcha of this mod is no longer working for SMF 2.0.2.
Spammed like other people posted above.
Hi guys
It's possible to add other fields in contact page?
If so, how I do that?
Thanks in advance.
Yes you could edit the template and the sources file just requires some php knowledge to make changes.
I've managed how to add the fields on templates, that was easy. The problem is add that to sources files. I don't know so much. It's possible to help me on that matter?
Ty
Quote from: Costa on January 09, 2013, 02:37:48 PM
I've managed how to add the fields on templates, that was easy. The problem is add that to sources files. I don't know so much. It's possible to help me on that matter?
Can someone help me? :|
You would have to look at the Sources/Contact.php file and then duplicate code such as the email address or comments code
I've managed. Thanks.
For further questions on "how to".
Just duplicate the following parts in Contact.php
$from = $_POST['from'];
if ($from == '')
fatal_error($txt['smfcontact_errname'], false);
$from = htmlspecialchars($from, ENT_QUOTES);
$m .= $txt['smfcontact_formname'] . $from . "\n";
Give them other id(instead $from use $test for example).
Like this.
$test = $_POST['test'];
if ($test== '')
fatal_error($txt['smfcontact_errtest'], false);
$test = htmlspecialchars($test, ENT_QUOTES);
$m .= $txt['smfcontact_formname'] . $test . "\n";
Then you need to add them to the template.
Duplicate this entry.
<tr>
<td width="28%" class="windowbg2"><span class="gen"><b>',$txt['smfcontact_name'],'</b></span></td>
<td width="72%" class="windowbg2"><input type="text" name="from" size="64" /></td>
</tr>
Then use something like this
<tr>
<td width="28%" class="windowbg2"><span class="gen"><b>',$txt['smfcontact_test'],'</b></span></td>
<td width="72%" class="windowbg2"><input type="text" name="test" size="64" /></td>
</tr>
This code will add a input area, if you want an text area use the following one.
<tr>
<td width="28%" class="windowbg2"><span class="gen"><b>',$txt['smfcontact_test'],'</b></span></td>
<td width="72%" class="windowbg2"><textarea rows="6" name="message" cols="54"></textarea></td>
</tr>
After this, you need to add the text strings to you Modifications.[language].php file.
$txt['smfcontact_errtest'] = 'Error message.';
$txt['smfcontact_formrules'] = "The text in contact page ";
$txt['smfcontact_rules'] = 'The text in email';
Attached is the result of my edits.
Also, an email testing.
Looks great! Great Tutorial!
Portuguese translation
*portuguese_pt
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contacto';
$txt['permissionname_view_contact'] = 'Ver a página de contacto';
$txt['permissionhelp_view_contact'] = 'Permite aos membros ver a página de contacto e enviar o e-mail.';
$txt['cannot_view_contact'] = 'Não pode ver a página de contacto.';
$txt['smfcontact_name'] = 'Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Mensagem';
$txt['smfcontact_emailaddress'] = 'E-mail';
$txt['smfcontact_sendemail'] = 'Enviar E-mail';
$txt['smfcontact_messagesent'] = 'A sua mensagem foi enviada!';
$txt['smfcontact_messagesent_click'] = 'A sua mensagem foi enviada! Clique ';
$txt['smfcontact_messagesent_return'] = 'aqui</a> para voltar ao fórum.';
$txt['smfcontact_errname'] = 'É necessário preencher o nome.';
$txt['smfcontact_errsubject'] = 'É necessário preencher o assunto.';
$txt['smfcontact_errmessage'] = 'É necessário escrever a mensagem.';
$txt['smfcontact_erremail'] = 'É necessário preencher o E-mail.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formulário de contacto por ';
$txt['smfcontact_formname'] = "Nome: ";
$txt['smfcontact_formemail'] = "E-mail: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Mensagem: \n";
$txt['smfcontactpage_email'] = 'SMF Contact Page E-mail: ';
// END Contact Page Text Strings
*portuguese_pt-utf8
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contacto';
$txt['permissionname_view_contact'] = 'Ver a página de contacto';
$txt['permissionhelp_view_contact'] = 'Permite aos membros ver a página de contacto e enviar o e-mail.';
$txt['cannot_view_contact'] = 'Não pode ver a página de contacto.';
$txt['smfcontact_name'] = 'Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Mensagem';
$txt['smfcontact_emailaddress'] = 'E-mail';
$txt['smfcontact_sendemail'] = 'Enviar E-mail';
$txt['smfcontact_messagesent'] = 'A sua mensagem foi enviada!';
$txt['smfcontact_messagesent_click'] = 'A sua mensagem foi enviada! Clique ';
$txt['smfcontact_messagesent_return'] = 'aqui</a> para voltar ao fórum.';
$txt['smfcontact_errname'] = 'É necessário preencher o nome.';
$txt['smfcontact_errsubject'] = 'É necessário preencher o assunto.';
$txt['smfcontact_errmessage'] = 'É necessário escrever a mensagem.';
$txt['smfcontact_erremail'] = 'É necessário preencher o E-mail.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formulário de contacto por ';
$txt['smfcontact_formname'] = "Nome: ";
$txt['smfcontact_formemail'] = "E-mail: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Mensagem: \n";
$txt['smfcontactpage_email'] = 'SMF Contact Page E-mail: ';
// END Contact Page Text Strings
Do you have any problem if I upload a package only with translation in portuguese board?
Go ahead you can repost it anywhere.
Quote from: vbgamer45 on January 17, 2013, 06:33:08 PM
Looks great! Great Tutorial!
I've edited the "tutorial" with more information
Attach is the translation "liike" mod
thank alot. i have been looking for this. one question
i have created a contact page already with some information in it. is there anything like "contact hook" or any way i can add the contact page in my already created page???
or any way i can add additional information on this contact mod , so i can copy my own in it???
thanks
Is it possible to have two contact forms? but for different purposes?
I.e, I have the default contact form already in use on my forum. However, I would like a secondary contact form with different fields for advertising. So in the advertising one, I would like the form customised to suit my requirements (additional fields added). I would like the second form as a drop down to the default contact button.
Can anyone help?
My PHP skills are terrible. Can I attach any files, and could someone do this for me? I dont mind paying.
Thanks
You could but would require some work such as renaming the actions for the second called contact2 etc
i will love to edit the indec "contact" and add something like Contact Us ??
The text you can edit by editing themes/default/languages/modificaitons.english.php
Quote from: vbgamer45 on February 28, 2013, 12:10:44 PM
The text you can edit by editing themes/default/languages/modificaitons.english.php
worked
please one more thing
Quote from: johnpaul2k2 on February 11, 2013, 03:38:56 PM
thank alot. i have been looking for this. one question
i have created a contact page already with some information in it. is there anything like "contact hook" or any way i can add the contact page in my already created page???
or any way i can add additional information on this contact mod , so i can copy my own in it???
thanks
Some posts before yours, I've posted how to add fields to contact page.
http://www.simplemachines.org/community/index.php?topic=97782.msg3472882#msg3472882
New update posted
3.1
+Minor style tweaks for display for SMF 2.0
It doesn't support the greek characters. The email that i receive shows strange characters. Is there any easy way to fix this problem? Thnx
Question...
Would it be possible to do something like this. Have multiple contacts for eg:
Contact COD Admin --> /index.php?action=contactcod
Contact BF Admin --> /index.php?action=contactbf
Contact WOW Admin --> /index.php?action=contactwow
Contact Membership Admin --> /index.php?action=contactmem
etc, etc....
with different emails for different admins within a (Gaming Clan) and make the links using the MOD called Menu Editor Lite
if so how ?
Quote from: searchgr on April 02, 2013, 01:26:08 AM
It doesn't support the greek characters. The email that i receive shows strange characters. Is there any easy way to fix this problem? Thnx
3.2
!Improved support for other languages/utf8
DasVON not easily you would need to duplicate the mod code a couple times.
Perfect! Thank you very much.
Quote from: SMFHacks.com Team on April 02, 2013, 11:14:18 AM
DasVON not easily you would need to duplicate the mod code a couple times.
Not sure how to do this
but thanks for the reply anyway..
???
Quote from: Costa on January 17, 2013, 06:26:13 PM
I've managed. Thanks.
For further questions on "how to".
Just duplicate the following parts in Contact.php
$from = $_POST['from'];
if ($from == '')
fatal_error($txt['smfcontact_errname'], false);
$from = htmlspecialchars($from, ENT_QUOTES);
$m .= $txt['smfcontact_formname'] . $from . "\n";
Give them other id(instead $from use $test for example).
Like this.
$test = $_POST['test'];
if ($test== '')
fatal_error($txt['smfcontact_errtest'], false);
$test = htmlspecialchars($test, ENT_QUOTES);
$m .= $txt['smfcontact_formname'] . $test . "\n";
Then you need to add them to the template.
Duplicate this entry.
<tr>
<td width="28%" class="windowbg2"><span class="gen"><b>',$txt['smfcontact_name'],'</b></span></td>
<td width="72%" class="windowbg2"><input type="text" name="from" size="64" /></td>
</tr>
Then use something like this
<tr>
<td width="28%" class="windowbg2"><span class="gen"><b>',$txt['smfcontact_test'],'</b></span></td>
<td width="72%" class="windowbg2"><input type="text" name="test" size="64" /></td>
</tr>
This code will add a input area, if you want an text area use the following one.
<tr>
<td width="28%" class="windowbg2"><span class="gen"><b>',$txt['smfcontact_test'],'</b></span></td>
<td width="72%" class="windowbg2"><textarea rows="6" name="message" cols="54"></textarea></td>
</tr>
After this, you need to add the text strings to you Modifications.[language].php file.
$txt['smfcontact_errtest'] = 'Error message.';
$txt['smfcontact_formrules'] = "The text in contact page ";
$txt['smfcontact_rules'] = 'The text in email';
Attached is the result of my edits.
Also, an email testing.
i am still learning coding here. so these things are kinda strange. i have tried adding them to my template but still making mistakes :(
john, what are you trying to add?
1.adding more details to my contact page??
2. how can i disable the verification question on the same contact page??
Where abouts do I add the email for it to send to when I manually install it??
It should add a text field under features and options
Quote from: vbgamer45 on May 19, 2013, 11:46:24 PM
It should add a text field under features and options
There is though doesnt seem to be working. So i want to add it into the code manually to see if that fixes it
Quote from: cotty on May 19, 2013, 11:48:36 PM
Quote from: vbgamer45 on May 19, 2013, 11:46:24 PM
It should add a text field under features and options
There is though doesnt seem to be working. So i want to add it into the code manually to see if that fixes it
Have you looked at the mods parser?
Quote from: Old Fossil on May 19, 2013, 11:50:59 PM
Quote from: cotty on May 19, 2013, 11:48:36 PM
Quote from: vbgamer45 on May 19, 2013, 11:46:24 PM
It should add a text field under features and options
There is though doesnt seem to be working. So i want to add it into the code manually to see if that fixes it
Have you looked at the mods parser?
Ill have to have another look, though all appeared to be ok. I have checked the email address and also checked all folders in the email account ie spam folder
Edit, seems to not be working with any new email i use with it, though putting it back to my old email address that i was using seems to work... strange.
Check your forum's error log might be a clue or some thing on your server side is rejecting the email from going though.
Well I didn't resolve why the contact page mod didn't work with any new address (tried gmail & hotmail, the one the works is a hotmail account to), so ive just left it as the address I was first using and it seems to work fine. Now what im after is making it post the content of form when someone fills it out into a topic in the mods sections.
Thanks
The source code in this mod seems slightly different to what I'm using right now, so I'll adjust what I did according to what you have.
Sources/Contact2.php
// For send mail function
require_once($sourcedir . '/Subs-Post.php');
$icon = '';
$board = 112; // Change to match your desired board number
$msgOptions = array(
'id' => 0,
'subject' => '(' . $from . ') ' . $subject,
'icon' => $icon,
'body' => $message . ' (email ' . $email . ') (IP ' . $_SERVER['REMOTE_ADDR'] . ')',
'smileys_enabled' => false,
);
$topicOptions = array(
'id' => 0,
'board' => $board,
'mark_as_read' => true,
);
$posterOptions = array(
'id' => '',
);
createPost($msgOptions, $topicOptions, $posterOptions);
Just tinker around with the message/body until it suits your style.
I actually created a formatted table within the created post, but that's something you can experiment with.
Thanks Shambles! Will see how it goes!
SMF 2.0.4
Does not send the email. Shows in error log:
Unable to send mail to the email address (Address here)
Using the same email the site uses.
Does your site send any email to that address using SMF? Contact page uses the sendemail function in SMF
No. Hmmm.... How can I get the site to email without using sendmail?
Not sure for general email issues post in the SMF support forums
Hi, How do I update the email address on this mod? thankx
Should be in Edit Features and Options the contact field.
Hello,
I don't have read all the postings - but there is a mistake in contact2.php:
Search:
$context['require_verification'] = (!empty($modSettings['reg_verification']) && $context['user']['is_guest'] == true);
Replace:
$context['require_verification'] = (!empty($modSettings['reg_verification']) || $context['user']['is_guest'] == true);
Now the visual verification works.
I am not sure. It should only show for guests and only if visual verification is enabled
Just installed this mod and everytime I click the contact button it says: "Unable to load the 'main' template."
Hey,
When I installed this, I got an error saying:
Quote
Unable to load 'main' template
So I uninstalled it....while it was uninstalling...it said error and said "Hacker?". It didn't not uninstall properly. It kept showing up after I clicked Delete. Now, the files aren't installed but the contact page button shows up and the "SMF contact email" field on the admin page shows up as well. What to do?
Thanks,
-Mstcool. :)
Do the manual install instructions by uploading the package to
http://www.smfhacks.com/smf-package-parser.html
Quote from: vbgamer45 on January 03, 2014, 06:59:38 PM
I am not sure. It should only show for guests and only if visual verification is enabled
In 2.0.7 I cannot find anything related to configuration of this mod except for setting mail address (in miscellaneous). Also it doesn't show for guests which is main reason for me to install this mod.
EDIT: Using english-utf8, installation went without issues.
Nicely done!
Thanks
How to add icon in top menu for this contact page ??
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Femrv7iV.jpg&hash=564806f84d9570f6c92f55bb6499ee4b117f8bb2)
Help Needed !
You would have to edit the source/subs I believe since i think you are using an menu icon mod
Quote from: vbgamer45 on February 03, 2014, 11:37:26 AM
You would have to edit the source/subs I believe since i think you are using an menu icon mod
Yes i am using menu icon mod !!
Any advice how to add extra icons ?
Kindly tell in detailed steps.... :)
Not sure ask in the mods topic.
How to remove : "Powered by Contact Page",..From that page ?... :'(
Quote from: GamePersia on February 06, 2014, 07:59:00 AM
How to remove : "Powered by Contact Page",..From that page ?... :'(
You are not permitted by the mods author to do so.
Link to order copyright removal
http://www.smfhacks.com/copyright_removal.php
Hi there,
Is the Catpcha supposed to work >
I have 2.0.07 installed fine no errors seems there is only two settings one in permission and one for email.
I have he default theme nothing special and use Captcha on registration.
If this is not active, going to uninstall, but says it should from what I read is there a missed setting ??
Thanks
1. Default SMF captcha should work fine if you use a custom captcha that would depend on how the mod did it.
Quote from: Raffaele1977 on April 26, 2010, 11:38:26 PM
one question:
when i use the contact page, i receive the email...
but using imap i find it (the email) twice, one time in my inbox, one time in my sentmail...
this because in the header of the email, i find:
[email protected] <[email protected]>
i would just like to see in the header the name of the sender, not my email!!! and neither the email of my site!
example: Name <[email protected]>
how can i do it?
thanks for the beautiful mod... :)
I have been using this mod for awhile without any problems, but just noticed the
From:
[email protected] <
[email protected]> issue too.
It only seems to be a problem when I use gmail through a browser and click reply.
It then uses the address <
[email protected]> as if the reply is to myself and ignores the
[email protected] address.
If I used gmail though Mailbox app on my phone or though Mail on my Mac and click replay it used the correct
[email protected] as the reply address.
Any suggestions on how this could be corrected?
Thanks!
The mod does the following:
sendmail($modSettings['smfcontactpage_email'], $subject, $m,$email);
Function definition:
function sendmail($to, $subject, $message, $from = null, $message_id = null, $send_html = false, $priority = 3, $hotmail_fix = null, $is_private = false)
$email - is passed as the from address from the form they enter
Just checked my package manager and see I'm currently using Contact Page 3.0
Guess it's time for me to update. :)
Yeah just i don't think I changed that behavior for reference that code is in Sources/Contact2.php
Quote from: vbgamer45 on July 12, 2014, 11:08:43 PM
The mod does the following:
sendmail($modSettings['smfcontactpage_email'], $subject, $m,$email);
Is that what this part is that I found in Contact2.php
Does mine look correct? Don't believe I ever changed anything, but who knows.
// Send email to webmaster
if (empty($modSettings['smfcontactpage_email']))
sendmail($webmaster_email, $subject, $m,$email);
else
sendmail($modSettings['smfcontactpage_email'], $subject, $m,$email);
Thanks!
That's the default for the mod
You can try taking out the ,$email part and see if it helps
Quote from: vbgamer45 on July 12, 2014, 11:35:21 PM
That's the default for the mod
You can try taking out the ,$email part and see if it helps
Hmm, just tried that and now in the header it just shows from <
[email protected]> and to <
[email protected]> with out showing the
[email protected] in the header
Maybe it's just a fluke thing when using gmail in a browser, seem to work great other wise.
hmm not sure I use the default sendmail function built into SMF so it should do the same thing that all the SMF emails do.
Yea, I don't believe it's probably has anything to do with your mod now.
Just thought this would be a good place to ask first, thanks for taking the time to reply and thanks again for this great mod. it gets used often on my site. Sometimes to often. :)
Where can I find settings or something for this mod? I only found "SMF Contact Page Email: " in Mod settings > Misc
I can't even see the Contact page anywhere. And I installed the mod successfully. Tried uninstalling then installing it again but I still can't find the contact page nor the settings page...
That is the only setting.
It adds a button to the menu called Contact Page. It might also add one permission as well.
Quote from: vbgamer45 on August 28, 2014, 05:38:22 PM
That is the only setting.
It adds a button to the menu called Contact Page. It might also add one permission as well.
But there's no button either
Check the manual install instructions make sure all the mod edits where made to the files.
Quote from: vbgamer45 on August 28, 2014, 06:28:24 PM
Check the manual install instructions make sure all the mod edits where made to the files.
I just double checked them all and every change was made correctly... :o
Then it might a language text string issue make sure your language is set to english not english utf8
Quote from: vbgamer45 on August 28, 2014, 07:01:32 PM
Then it might a language text string issue make sure your language is set to english not english utf8
Oh then this changes everything. My forum is Macedonian so the language is Cyrillic. If I change to standard English all of the Cyrillic text will get screwed up.
Any other way around this?
You need to copy the text added to modifications.english.php to modifications.yourlanguage.php in the languages folder
What files would I need to access in order to change the order of the text fields? As an example, I think it would look better to have the "Email Address" located under "Your Name" versus where it is located now at the bottom of the form. Thanks
Contact2.template.php in the themes/default folder
Thanks VBGamer45!
Glad to help
I noticed that on the Contact Page that only "Your Name" has a colon after it. I would like to add the colon after "Email Address", "Subject" and "Address". I have been looking for the files to add the colon to the end of these words with no avail. Any idea on which file contains the text for the Contact Page? Thanks!
It would be in the contact.english.php or modifications.english.php I do not remember if I made it's own contact.english.php file or not.
Thanks once again vbgamer45! It was in modifications.english.php!
Glad to help
Quote from: vbgamer45 on October 13, 2014, 04:23:37 PM
Glad to help
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fbkd.pw%2Fdk_like.png&hash=acceea932aa47adbd56a69a05502ed0a9817987a)
I like that graphic!
I have the Likes system on my site, and just grabbed a screenshot of a post I had liked....LOL
Pretty neat! Should start that trend.
I was wondering how to add the captcha that is pictured in your promos of the mod? I have turned on security/moderation in admin, captcha is selected but although it showed on the registration page (I have since turned off registration to forum) it never showed up on the contact form.
Are you using standard captcha or a modified version?
Need a little help. I upgraded my SMF version. Uninstalled/deleted mods. Then reinstalled all my mods.
I am having an issue getting this one to work. It is not giving me an install option after I reuploaded it.
Thanks in advance for the help :-)
You redownloaded the lastest version from the mod site?
Make sure you are not emulating any old smf version
Quote from: vbgamer45 on May 04, 2015, 09:46:12 PM
You redownloaded the lastest version from the mod site?
Make sure you are not emulating any old smf version
Correct, I uninstalled and deleted the old version. Then uploaded and couldn't install a newly downloaded version.Not sure what you mean by emulating an old version :-)
great mod! I do have a question. The contact tab only shows up when you are logged in. How do you set it to where it shows up for guests?
I believe there is a permission you need to setup for each membergroup
Hi .
I schedule to update my forum to 2.0.1 .
Now i run in 1.1.21 with 'Contact Page 2.0 " working great
My greek-utf8 translation
<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Επικοινωνία';
$txt['permissionname_view_contact'] = 'Εμφάνιση της σελίδας επικοινωνίας';
$txt['permissionhelp_view_contact'] = 'Επιτρέπεται στα μέλη να βλέπουν την σελίδα επικοινωνίας και να στέλνουν email.';
$txt['cannot_view_contact'] = 'Δεν μπορείτε να δείτε την σελίδα επικοινωνίας.';
$txt['smfcontact_name'] = 'Όνομα:';
$txt['smfcontact_subject'] = 'Θέμα';
$txt['smfcontact_body'] = 'Μήνυμα';
$txt['smfcontact_emailaddress'] = 'Διεύθυνση e-mail';
$txt['smfcontact_sendemail'] = 'Αποστολή e-mail';
$txt['smfcontact_messagesent'] = 'Το μήνυμά σας εστάλη επιτυχώς!';
$txt['smfcontact_messagesent_click'] = 'Το μήνυμά σας εστάλη επιτυχώς! Πατήστε ';
$txt['smfcontact_messagesent_return'] = 'εδώ</a> για να επιστρέψετε στην Δημόσια Συζήτηση.';
$txt['smfcontact_errname'] = 'Πρέπει να εισάγετε το όνομά σας.';
$txt['smfcontact_errsubject'] = 'Πρέπει να εισάγετε ένα θέμα.';
$txt['smfcontact_errmessage'] = 'Πρέπει να εισάγετε ένα μήνυμα.';
$txt['smfcontact_erremail'] = 'Πρέπει να εισάγετε τη διεύθυνση e-mail σας.';
$txt['smfcontact_titlesent'] = ' - Το μήνυμα εστάλη.';
$txt['smfcontact_form'] = 'Σελίδα επικοινωνίας του ';
$txt['smfcontact_formname'] = "Όνομα: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Μήνυμα : \n";
$txt['smfcontactpage_email'] = 'SMF Contact Page Email: ';
// END Contact Page Text Strings
]]></add>
</operation>
</file>
Thanks for the translation.
OK got installed and seems to work OK i.e. send email. But I don't get the captcha option and struggling to find the enable on. I have on for registration ???
It uses the default SMF captcha if it is enabled. There is no setting for it.
Quote from: vbgamer45 on June 15, 2015, 11:57:22 AM
It uses the default SMF captcha if it is enabled. There is no setting for it.
Ok it is already enabled and it appears for user registration. I did have a question set but removed it and still does not appear, anything else I can check ?
This might be asked before, but couldn't find it. Would it be possible to send a confimation email to the user?
This way, a user knows that everything has been received correctly, and the email they provided is also working.
It has happened before that someone was angry because we didn't reply to his question. This was because he made a small error in his email address.
Possible but would need to be modified as of right now that feature is not included.
The idea of a confirmation email is good, it would be helpful when they do mess up their email---I myself on occasion leave out or transpose a letter or two...LOL
But like my forum is an open forum, I allow visitors to see the nuthouse then decide if they want to join in the antics there...they may also contact me with questions or problems with downloads that are also for all.
Maybe there could be a banner to show on the page (like the one for a pm being successfully sent) that states the form has been sent and if there are no problems with the return email ......something along those lines. Until now I never even though of looking to see the files installed to hopefully add myself a line telling them to check their email before sending to make sure it is correct.
Thank you for the mod.
I will revisit this mod sometime soon and see what i can improve.
I've translated this Mod to spanish_es due to an user request. If you want...
Thanks for the translation!
When I try to install this from SMF's package manager, I the following error message:
Quote
An Error Has Occurred!
Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF
I don't have any permissions problems, and I suspect there is problem with the package on SMF's server. Maybe you can re-upload it?
Quote from: badon on August 09, 2016, 04:39:55 PM
When I try to install this from SMF's package manager, I the following error message:
Quote
An Error Has Occurred!
Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF
I don't have any permissions problems, and I suspect there is problem with the package on SMF's server. Maybe you can re-upload it?
When I get this I open the zip to my computer then just upload the entire folder to the packages folder of the forum it will go into.
Then when I go to admin/package manager it shows in the list with an install link. You could try that.
I think it was some temporary problem with simplemachines.org, because it works now. Thanks DarkAngel612.
Glad it works now.
no problem and yes glad it works now. That is how I have to do some mods, especially when there are some misspelled words or a site update (I always do a fresh install of forum version updates) cause I forget about the edits otherwise...LOL
I have just started a new SMF 2.0.13 forum and on the 'Contact Page' 'reCAPTCHA' always shows the error
QuoteThe letters you typed don't match the letters that were shown in the picture.
but it works fine on 'Registration', I'm using the 'Curve' default theme.
I only have 3 Mods installed:
1. SimplePortal 2.3.6
2. Contact Page 3.2
3. reCAPTCHA for SMF 1.0.0
I have searched this Topic but can't find an answer, please can anyone help?
Quote from: Tonyvic on April 21, 2017, 02:26:43 PM
I have just started a new SMF 2.0.13 forum and on the 'Contact Page' 'reCAPTCHA' always shows the error QuoteThe letters you typed don't match the letters that were shown in the picture.
but it works fine on 'Registration', I'm using the 'Curve' default theme.
I only have 3 Mods installed:
1. SimplePortal 2.3.6
2. Contact Page 3.2
3. reCAPTCHA for SMF 1.0.0
I have searched this Topic but can't find an answer, please can anyone help?
I have this problem also
Will do some testing.
New update and bug fix for reCAPTCHA!!!!
4.0
Now supports the latest version of the reCAPTCHA mod when guests are submitting contact forms.
Thank you so much for the fast response and fix, works great now. :)
Glad to help
Hello,
I have just installed Contact Page mod and set a valid e-mail adress in Admin panel. I tried to send e-mails through different users (or as a guest). However, the messages don't seem to reach the target e-mail adress.
Later I found that there is a permission setting which allows users to send e-mails. I checked it and tried again, but it didn't change anything.
What could be the reason?
Thank you in advance.
Could be going to junk/bulk folder.
Check your sites error log as well.
I often get the following error:
551 Sender address is not valid for your login. Check your email program settings.
Edit:
https://karamigfer.com/index.php?action=contact;sa=save
2: mail() has been disabled for security reasons
You would need to contact your host they are disabling the sending of email.
I migrated from my host, and this mod stopped working.
How so
I can't find any mail sent to my email box..
It confirms sent, I don't know why.
Could be going to junk/bulk folder.
Check your sites error log as well.
Quote from: vbgamer45 on December 15, 2017, 01:49:55 PM
You would need to contact your host they are disabling the sending of email.
It turned out that my e-mail settings in SMF admin panel were incorrect. Now I corrected this problem.
I thought they were correct, because contact page always shows a "successfully sent" message every time.
Thanks for your assistance.
Glad you have it working.
I've read through and I see the same trend.....
This isn't sending email. I've tried 2 different emails. My domain email and gmail. Nothing is being sent to the inbox, spam or bulk. I've also tested both email addresses with various other addresses outside of the MOD and everything works fine. It seems to be a problem with the mod.
I tested on my site and works. It uses SMF's built in sendmail function.
If you do not choose a notification email address for contact page it uses the webmasters email
Update:
4.5
!Fixed some template html for SMF 2.0.x
!SMF 1.1.x now supports new version of reCAPTCHA
French translation (basic and UTF-8)
Added a TXT variable for adaptation of reCAPTCHA with : $txt['lang_recaptcha']
src="https://www.google.com/recaptcha/api.js?hl='. $txt['lang_recaptcha']. '">
Quote from: SMFHacks.com Team on May 09, 2018, 02:43:52 PM
I tested on my site and works. It uses SMF's built in sendmail function.
If you do not choose a notification email address for contact page it uses the webmasters email
Update:
4.5
!Fixed some template html for SMF 2.0.x
!SMF 1.1.x now supports new version of reCAPTCHA
Hmmm, my hosting is godaddy. I tested again, still doesn't work either way, with or without an email address assigned in the ACP.
Do you get other emails? from your forum? Anything in the error logs?
Quote from: vbgamer45 on May 10, 2018, 09:36:49 AM
Do you get other emails? from your forum? Anything in the error logs?
I don't get any notifications from the site. I checked notify me and used two different admin accounts, one with a gmail address and the other with my domain address.
So, does that mean it's the scripts SMTP settings that don't work with godaddy hosting?
Maybe you need change your SMTP Settings if you are not getting any emails at all.. from any part of SMF
Quote from: vbgamer45 on May 10, 2018, 01:39:13 PM
Maybe you need change your SMTP Settings if you are not getting any emails at all.. from any part of SMF
It's PHP default. I shouldn't need any SMTP config for web mail.
If it is not working for goddady you might. Check the support aarea for godaddy email issues
Quote from: vbgamer45 on May 10, 2018, 01:50:29 PM
If it is not working for goddady you might. Check the support aarea for godaddy email issues
It was Godaddy. over an hour on the phone. They fixed it.
Glad you have it working.
Not sure if this has been addressed in the 28 pages...... Has the contact page been made responsive? If so, please post the permalink, if not will it be addressed?
Thank you
No, Probably not till SMF 2.1
Hey bro,... Im using the reCaptcha mod and SMFcontact. They both install flawless but i get an error when sending mail.
Fatal error: require_once(): Failed opening required '/home/idesig58/public_html/Sources/recaptchalib.php' (include_path='.:/usr/local/php71/pear') in /home/idesig58/public_html/Sources/Contact2.php on line 32
https://www.idesignsmf.com/index.php?action=contact
Ive installed and uninstall several times and nothing and once did it manually lol but no change. I noticed the vesion is 4.5 and you mentioned in your update that 4.0 is compatible with reCapatcha.
Am i missing something? lol
What version of the recaptcha mod are you using?
Quote from: vbgamer45 on August 21, 2018, 11:36:23 AM
What version of the recaptcha mod are you using?
His latest version, 2.0.0
@vbgamer funny, i have this folder where it suppose to be at 755
https://www.idesignsmf.com/index.php?action=contact;sa=save
require_once(/home/******/public_html/Sources/recaptchalib.php): failed to open stream: No such file or directory
/home/*******/public_html/Sources/Contact2.php
Line: 32
I will have to look at the new mod. They might have removed that file so will have to do changes then.
Quote from: vbgamer45 on August 21, 2018, 01:19:13 PM
I will have to look at the new mod. They might have removed that file so will have to do changes then.
The mod was updated on August 4th, hard to believe that i'm the only one who encountered this? Bahahahaha!
But yeah bro, whenever you can.
5.0
!Fixed to work with latest version of reCAPTCHA mod
Awesome bro. The new update fixed the issue :P Rock on!
Glad to help
Made it responsive too ;) https://www.idesignsmf.com/index.php?action=contact Got rid of that old table and it's all css now.
Nice, that's black magic to me. I think of grids in my mind.
Quote from: vbgamer45 on August 21, 2018, 08:38:55 PM
Nice, that's black magic to me. I think of grids in my mind.
Easy peasy bruh! hehehe
Quote from: Mick. on August 22, 2018, 07:20:27 AM
Quote from: vbgamer45 on August 21, 2018, 08:38:55 PM
Nice, that's black magic to me. I think of grids in my mind.
Easy peasy bruh! hehehe
Cool, I tried this mod with the old version of the recaptcha mod and it wasn't responsive at all. I wound up using something else to suit my need at the time, so this is good to know.
Yeah you can do it if you make file changes. I think responsive is very theme dependent.
In 2.1 I will look into it as the main theme is responsive.
Update
5.0.1
!Fixed email sent in SMF 2.0.x to include message-id
Update!
5.0.1a
+Added support for SMF 2.1.x
Cool fact this mod still installs for SMF 1.0.x which was released in 2004 and still works with every page release.
Can you include the translation in fashion?
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'İletişime Geç';
$txt['permissionname_view_contact'] = 'İletişim Sayfasını Göster';
$txt['permissionhelp_view_contact'] = 'Üyelerin iletişim sayfasını görüntülemesini ve e-posta göndermesini sağlar.';
$txt['cannot_view_contact'] = 'İletişim sayfasını görüntüleyemezsiniz.';
$txt['smfcontact_name'] = 'Adınız:';
$txt['smfcontact_subject'] = 'Konu Başlıgı:';
$txt['smfcontact_body'] = 'Mesajınız:';
$txt['smfcontact_emailaddress'] = 'Email Adresiniz:';
$txt['smfcontact_sendemail'] = 'Eposta gönder';
$txt['smfcontact_messagesent'] = 'Mesajınız gönderildi!';
$txt['smfcontact_messagesent_click'] = 'Mesajınız gönderildi! Click ';
$txt['smfcontact_messagesent_return'] = 'here</a> kuruluna dönmek için.';
$txt['smfcontact_errname'] = 'Adınızı girmeniz gerekiyor.';
$txt['smfcontact_errsubject'] = 'Bir konu girmelisin.';
$txt['smfcontact_errmessage'] = 'Bir mesaj girmelisin.';
$txt['smfcontact_erremail'] = 'E-posta adresinizi girmeniz gerekiyor.';
$txt['smfcontact_titlesent'] = ' - Mesaj gönderildi.';
$txt['smfcontact_form'] = 'İletişim Sayfası Formu ';
$txt['smfcontact_formname'] = "isim: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Message: \n";
$txt['smfcontactpage_email'] = 'SMF İletişim Sayfası E-posta: ';
// END Contact Page Text Strings
what language
Where are the settings located for this mod? All I could find was the custom email address.
That is the only setting for this mod.
Is there any way to set the files to show the senders email address vs the stores email address? Spammers just love contact pages/forms.
Like in the reply to the form?
It should be in the email message sent to the contact address.
I think we support the built in SMF captcha or reCaptcha as well
Quote from: vbgamer45 on September 03, 2019, 03:20:34 PM
Like in the reply to the form?
It should be in the email message sent to the contact address.
I think we support the built in SMF captcha or reCaptcha as well
ok, will try those later on.
It's just that some contact forms have it so that when you send a form to the site you enter your email. not add your name and the form use the cont to address as yours. I could be mistaken.
This one does have an email field.
Along with name, subject, and message
If you set the "from" like that, there's a good chance it'll be rejected as spam.
Quote from: Arantor on September 03, 2019, 06:26:52 PM
If you set the "from" like that, there's a good chance it'll be rejected as spam.
Very true. The default is the webmasters email. It should match the same domain as your forum is on if you can. Otherwise you can run into issues like Arantor said.
OK, that is how I have it set up and it is harder to stop the spammer...more steps and for a lazy person...LOL...it is obnoxious...thanks guys
Just curious, but installed mod on clean 2.0.15 install and only first part of copyright is displayed, rest is missing.
echo '<br /><div align="center"><span class="smalltext">Powered by <a href="https://www.smfhacks.com" target="blank">Contact Page</a> by <a href="https://www.createaforum.com" title="Forum Hosting">CreateAForum.com</a></span> </div>';
Strange I can't see why it would be missing that code looks ok.
http://www.thekrashsite.com/smf20/index.php?action=contact
Looks like not part of SMF 2.0.x no a big deal for me but thanks for pointing it out.
But why doesn't it display? Nothing wrong with the code, it's just basic html.
I think I have two different conditionals based on different copyright text since it changed and some part.
Ok, there's one copyright in function template_main() and different one in function template_send(), it's displaying the first one.
I just updated from 3.0 to the latest version with success. Is it ok now to delete the old version? All tests failed when I tried to uninstall the old version before installing the new, so I just installed the new one anyway without problem. Thanks
You can.
I know this is going off topic, but can old versions of any mod be deleted? I just like to keep things tidy. Thanks
No, generally. Only if you uninstall the mod. Otherwise if you want to uninstall it won't work.
You have to uninstall mods that make file edits in the order they were last installed.
So, for instance, I've just installed Pretty url 2.2, and 1.1.4 needs to stay in my Package manager?
Yes if still installed.
How to make responsive design mod for view on phone?
That, I don't' know not good with css I think someone posted a version before in this topic somewhere.
Which file with css need to be watched?
Not sure. my guess index.css but I am not a designer.
No not this file
Contact2.template.php is the mods file itself.
Thanks!!!
Does this modification work with the hCaptcha modification (this one (https://custom.simplemachines.org/index.php?mod=4255))?
Is there a possibility to embed hCaptcha in the contact form?
hCaptcha is already working on registration, but I'm not sure how to insert it in form.
It should if you are using 2.0+
Quote from: vbgamer45 on August 21, 2021, 10:44:38 AMIt should if you are using 2.0+
I am using SMF 2.0.18 and latest versions of both modifications.
Do you have some suggestion how to implement it?
It doesn't appear automatically, and I didn't find any options for implementation in settings.
hmm i would have to test it unsure
Quote from: Gianluigi on August 21, 2021, 06:23:05 PMQuote from: vbgamer45 on August 21, 2021, 10:44:38 AMIt should if you are using 2.0+
I am using SMF 2.0.18 and latest versions of both modifications.
Do you have some suggestion how to implement it?
It doesn't appear automatically, and I didn't find any options for implementation in settings.
are the other verification methods working? I haven't tried the hcaptcha but I do use this mod and the other verifications work (captcha and questions)
Quote from: Gianluigi on August 21, 2021, 10:15:48 AMDoes this modification work with the hCaptcha modification (this one (https://custom.simplemachines.org/index.php?mod=4255))?
Is there a possibility to embed hCaptcha in the contact form?
hCaptcha is already working on registration, but I'm not sure how to insert it in form.
Just did an update with hcaptcha for verification check.
Should load for guests
Thank you for updating the modification.
Is it possible for hCaptcha to be displayed in the form for regular registered members as well?
No not currently. The mod doesn't show verification for registered members.
Does this mod simply use the contact form to send an email to a nominated address?
It sends to address on file under settings for contact mod.
ta
Did you need something else?
@landyvlad New update
6.0
+Added option to post contact page submissions to a board of your choice under settings SMF 2.0.x SMF 2.1.x!
+Almost all Hooks now for 2.0 except for language files
Thanks mate just installed it and it certainly works. :)
I have set the form to create a thread in an admin/mod only board.
I see that there is a 'contact' button in the top menu now.
The only mod settings I can find are to set either an email address or a board to create a new thread in.
Is that the only user control available?
Food for thought:
- Given that the mod can create a thread rather than just an email perhaps the button on the form which says "send email" could be changed to simply "Send"
- When the thread is created in the nominated forum it would be good to have it prefixed Contact Form:(subject as entered by user)
Also it would be good to be able to
- control the position of that contact button (as in where it appears on the menu)
- control the name of that (so for example user could specify 'contact admin' rather than 'contact'
- embed the form on another page - specifically a page within a mod (such as teh hall of fame mod) that shows the team. e.g. https://gsx1400owners.org/forum/index.php?action=hof
- embed the form within a tinyportal block (so it could be on the frontpage of the forum, or at the bottom of each page - or whatever the admin wanted).
There is a heap of further potential in this mod, I love it :) ;D
For language options you can adjust the text strings it adds to modifiations.english.php
Yes, the only two settings are the email address or the board to post the thread to.
The menu position would probably need to be a menu mod that can reorder items.
2.1RC4
When guest use the contact form and I have Anti-spam activated
Require verification on registration=yes
Require verification on all guest searches=yes
Guests must pass verification when making a post=yes
Post count under which users must pass verification to make a post=1
Use reCAPTCHA Verification System=yes
Number of verification questions user must answer=1
QuoteAn error has occurred
The letters you typed do not match the letters that were shown in the picture.
I have tried many times and with different letters and it still gives me this error.
I've even tried with and without contact page and with and without email address and both.
Also tried with Anti-spam off and get the same error.
Will need to test with built in recaptcha in 2.1 probably needs to be updated for that
Quote from: vbgamer45 on September 07, 2021, 04:01:55 AMThe menu position would probably need to be a menu mod that can reorder items.
How is the position of the button determined currently?
It is hook based there is a file contactHooks.php the default is bhefore mlist memberlist button.
I believe there is is some menu editior mods that allow you to control locations.
Just tried to use this as guest and got this error in admin:
QuoteError
Type of error
Undefined_vars
Error message
8: Undefined index: from
File
/home2/*****/public_html/*****/Sources/Contact2.php
Line
113
URL of page causing the error
https://*****.com/index.php?action=contact;sa=save
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/Contact2.php on line 113
#1: Contact()
Called from /home2/*****/public_html/*****/index.php on line 187
That's odd from should always be set.
Can you try again? Did you change the form at all?
Haven't changed anything that I know of but let me uninstall/install again cause I've added some mods since. I'll get back to ya! ;)
Quote from: vbgamer45 on September 15, 2021, 10:15:36 PMThat's odd from should always be set.
Can you try again? Did you change the form at all?
I just reinstalled and it installed fine but still have the error above when a guest uses it. ??? 2.1RC4
It's sending the email though with no problem cause I received it.
Odd not getting in on my board.I can add a check for it but that field should also be there on form submission...
Quote from: vbgamer45 on September 04, 2021, 04:37:07 PM@landyvlad
New update
6.0
+Added option to post contact page submissions to a board of your choice under settings SMF 2.0.x SMF 2.1.x!
+Almost all Hooks now for 2.0 except for language files
could not load template 'main'(https://img.liveoke.com/images/2021/09/18/2021-09-18_005541.png)
Make sure Contact2.template.php OR Contact2.1.template.php
is in your themes/default folder
Greetings:
I have two questions:
1. where are the settings located to confirm which email the contact form sends to?
2. is it possible to duplicate the form (files and such)? I'd like to make it a menu item with two sub-buttons (I have the need for two different types of contact forms).
Quote from: rcane on December 05, 2021, 02:38:11 PMGreetings:
I have two questions:
1. where are the settings located to confirm which email the contact form sends to?
2. is it possible to duplicate the form (files and such)? I'd like to make it a menu item with two sub-buttons (I have the need for two different types of contact forms).
1. »Administration Center »Modification Settings »Miscellaneous
2. yes, would require duplicate the files then changing the actions to point another action like form1
Quote from: vbgamer45 on December 05, 2021, 11:19:43 PM2. yes, would require duplicate the files then changing the actions to point another action like form1
So, appending the file names with something like "_2".xxx.
I wonder how many references there are; the file list isn't small. It's worth a shot.
Yes that would work. Its not that bad.
Quote from: vbgamer45 on December 07, 2021, 10:57:04 AMYes that would work. Its not that bad.
while i go put a pot of coffee on....got a SWAG as to how many i'm looking at? I've never tried this before :)
3 file edits.
Prefer not time limited.
if you are 2.0
Contact2.template.php to themes/default and name it Contact3.template.php edit that file find aciton=contact change to action=contact2
Copy Contact2.php to sources folder rename it Contact3.php inside file change loadtemplate('Contact2'); to loadtemplate('Contact3'); all spots
Open sources/ContactHooks.php
Find
$actionArray += array('contact' => array('Contact2.php', 'Contact'));
Add after
$actionArray += array('contact2' => array('Contact3.php', 'Contact'));
Quote from: vbgamer45 on December 08, 2021, 11:36:37 AMif you are 2.0
Contact2.template.php to themes/default and name it Contact3.template.php edit that file find aciton=contact change to action=contact2
Copy Contact2.php to sources folder rename it Contact3.php inside file change loadtemplate('Contact2'); to loadtemplate('Contact3'); all spots
Open sources/ContactHooks.php
Find
$actionArray += array('contact' => array('Contact2.php', 'Contact'));
Add after
$actionArray += array('contact2' => array('Contact3.php', 'Contact'));
Nice. Going to experiment with that.
For the interim I made a user "Helpdesk" account with an
@myforum.com email. Created a few sub-menus with links to email the specific user IDs. Those menus aren't visible to guests or restricted users. I do like the idea of writing to a new post though. That's a slick feature.
Hi, Kindred said me that i should putwthis post veré: Hello. First of all, to apologize for any translation error. I have a problem with the following mod: https://custom.simplemachines.org/index.php?mod=377
It works perfectly, but when it comes to verifying the hcaptcha, and / or the security questions (this ask when you are guest), it skips it, and even if the captcha has not been resolved, and / or correctly put the answer to the security question, it sends the email.
I use the SMF version 2.0.18, and I only have installed the hcaptcha mod (https://custom.simplemachines.org/index.php?mod=4255) and the contact form mod, which as indicated is integrated with the mod above (https://custom.simplemachines.org/index.php?mod=377)
Is there any possible solution to this problem known?
Thanks.
2.1RC4 - Contact Page V6.0
This was in my admin error log today:
QuoteError
Type of error
Template
Error message
Unable to load the 'main' template.
URL of page causing the error
https://*****.com/index.php?action=contact;sa&email=1&from=1&message=1&save=&subject=1&submit=Send%20e-mail
Backtrace information
#0: fatal_lang_error()
Called from /home2/*****/public_html/*****/Sources/Load.php on line 2737
#1: loadSubTemplate()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 3540
#2: obExit()
Called from /home2/*****/public_html/*****/index.php on line 190
Also I Just used the contact page myself as a guest and the message was sent and received but this was in error log too:
QuoteError
Type of error
Undefined_vars
Error message
8: Undefined index: from
File
/home2/*****/public_html/*****/Sources/Contact2.php
Line
113
URL of page causing the error
https://*****.com/index.php?action=contact;sa=save
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/Contact2.php on line 113
#1: Contact()
Called from /home2/*****/public_html/*****/index.php on line 187
Quote from: Shades. on January 04, 2022, 11:05:30 PM2.1RC4 - Contact Page V6.0
This was in my admin error log today:
QuoteError
Type of error
Template
Error message
Unable to load the 'main' template.
URL of page causing the error
https://*****.com/index.php?action=contact;sa&email=1&from=1&message=1&save=&subject=1&submit=Send%20e-mail
Backtrace information
#0: fatal_lang_error()
Called from /home2/*****/public_html/*****/Sources/Load.php on line 2737
#1: loadSubTemplate()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 3540
#2: obExit()
Called from /home2/*****/public_html/*****/index.php on line 190
Also I Just used the contact page myself as a guest and the message was sent and received but this was in error log too:
QuoteError
Type of error
Undefined_vars
Error message
8: Undefined index: from
File
/home2/*****/public_html/*****/Sources/Contact2.php
Line
113
URL of page causing the error
https://*****.com/index.php?action=contact;sa=save
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/Contact2.php on line 113
#1: Contact()
Called from /home2/*****/public_html/*****/index.php on line 187
Still getting this error(s) when a guest uses the contact form. ???
I see the mod is noted as compatible with 2.1RC4 - but not sure it's stable with that.
In any event, with the release now of 2.1.0 having occurred, is a 2.1.0 compatible version on the way at all?
Works fine on 2.1 as is! 8)
On another note...My errors above were from conflicting mods and problem solved...I think! :o O:)
Yup works good on 2.1 have marked the mod as such.
Well I'm still getting similar errors every once in a while. Here is the latest:
QuoteError
Type of error
Template
Error message
Unable to load the 'main' template.
URL of page causing the error
https://*****.com/index.php?action=contact;sa&email=1&from=1&message=1&post_vv[q][11]=1&post_vv[q][1]=1&post_vv[q][9]=1&save=&subject=1&submit=Send%20e-mail&uuid-value-9de1=1
Backtrace information
#0: fatal_lang_error()
Called from /home2/*****/public_html/*****/Sources/Load.php on line 2809
#1: loadSubTemplate()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 4147
#2: obExit()
Called from /home2/*****/public_html/*****/index.php on line 190
SMF 2.1.1
Contact Page v6.0
I'm having issues with guest spammers on the contact page and I'll probably go ahead and turn off permissions for guest for now but when a guest or anyone types in all the information on the contact page (and I have the Image for verification mod and 30 odd questions set up) they click "send e-mail" and it sends then they click "back" in the browser and all the info is still there (same questions and answers filled in too) and they send again, and again, and again. (I tested it myself)
Is there any way to prevent this?
Edit: Also getting:
QuoteError
Type of error
Undefined_vars
Error message
8: Undefined index: from
File
/home2/*****/public_html/*****/Sources/Contact2.php
Line
113
URL of page causing the error
https://*****.com/?action=contact;sa=save
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/Contact2.php on line 113
#1: Contact()
Called from /home2/*****/public_html/*****/index.php on line 187
I found a little bug.
That only effects to SMF 2.x
If you had have installed the mod google recaptcha and uninstalled it because of reasons it would be a little bit tricky...
The contact page (effects only 2.0.x) calls db entries, recaptcha enabled and some other things, but not existing files.
When the mod is uninstalled, the database entries remain.
To fix this:
} else if (isset($modSettings['recaptcha_enabled']) && !empty($modSettings['recaptcha_enabled']) && ($modSettings['recaptcha_enabled'] == 1 && !empty($modSettings['recaptcha_public_key']) && !empty($modSettings['recaptcha_private_key']))) {
$loadRECAPTCHA = 0;
if (file_exists("$sourcedir/recaptchalib.php")) {
require_once("$sourcedir/recaptchalib.php");
$loadRECAPTCHA = 1;
}
file_exists("$sourcedir/recaptchalib.php")
The file query is important at this point.
7.0
!Fixes for undefined errors and better recaptcha checking that it is installed.
How do I completely uninstall this from the database so I can reinstall it fresh? I'm having issues with this mod using the verification questions. Users can send emails even if they get the answers wrong but I know it's not the mod itself because I've tested it many times on fresh 2.1.1 and no problems but something in my forum is broken and I'm trying to figure out why. So if there's anything left over from this mod after uninstall, what do I need to look for in the database to remove it entirely?
Thanks 8)
Edit: I have a topic going on here (https://www.simplemachines.org/community/index.php?topic=581794.0) about related issues.
Quote from: Shades. on April 10, 2022, 05:10:40 AMHow do I completely uninstall this from the database so I can reinstall it fresh?
When you uninstall a mod, there is a checkbox that says: Remove all data associated with this modification. if you click the Details link, it will list all the data that the mod has added to the database. Tick it and then uninstall the mod. Hope it helps.
Quote from: Doug Heffernan on April 10, 2022, 09:17:56 AMQuote from: Shades. on April 10, 2022, 05:10:40 AMHow do I completely uninstall this from the database so I can reinstall it fresh?
When you uninstall a mod, there is a checkbox that says: Remove all data associated with this modification. if you click the Details link, it will list all the data that the mod has added to the database. Tick it and then uninstall the mod. Hope it helps.
This one don't have that option or I would have! ;)
Quote from: Shades. on April 10, 2022, 09:22:25 AMQuote from: Doug Heffernan on April 10, 2022, 09:17:56 AMQuote from: Shades. on April 10, 2022, 05:10:40 AMHow do I completely uninstall this from the database so I can reinstall it fresh?
When you uninstall a mod, there is a checkbox that says: Remove all data associated with this modification. if you click the Details link, it will list all the data that the mod has added to the database. Tick it and then uninstall the mod. Hope it helps.
This one don't have that option or I would have! ;)
I have not seen the code of this mod, but most likely it does not add to the database then.
Quote from: Doug Heffernan on April 10, 2022, 09:27:41 AMI have not seen the code of this mod, but most likely it does not add to the database then.
I've installed several versions of this mod on the same database in the past so I'm not sure if one of them left a trace before the hook version or not or if it always used hooks, I dunno/remember!?
VB's on vacation right now so I'll just have to wait and not use the mod for now until he can verify. ;)
Quote from: Shades. on April 10, 2022, 05:10:40 AMHow do I completely uninstall this from the database so I can reinstall it fresh? I'm having issues with this mod using the verification questions. Users can send emails even if they get the answers wrong but I know it's not the mod itself because I've tested it many times on fresh 2.1.1 and no problems but something in my forum is broken and I'm trying to figure out why. So if there's anything left over from this mod after uninstall, what do I need to look for in the database to remove it entirely?
Thanks 8)
Edit: I have a topic going on here (https://www.simplemachines.org/community/index.php?topic=581794.0) about related issues.
So after more researching and testing today I'm thinking my issues from the other topic (link in quote) is the contact page mod. Because the verification questions work on registration. Then I found with the contact page I can bypass the default image verification (for example I typed the letters backwards) and skip the recaptcha and it will send email with no errors. (see images)
contact.png
contact2.png
Quote from: Doug Heffernan on April 10, 2022, 09:27:41 AMI have not seen the code of this mod, but most likely it does not add to the database then.
That is incorrect.
To the best of my knowledge, in 2.0, at leasr, Mods need to specifically set up the database uninstall option
Quote from: Kindred on April 11, 2022, 05:17:31 PMQuote from: Doug Heffernan on April 10, 2022, 09:27:41 AMI have not seen the code of this mod, but most likely it does not add to the database then.
That is incorrect.
To the best of my knowledge, in 2.9, at leasr, Mods need to specifically set up the database uninstall option
I think that maybe you misunderstood my post above. What I meant was that the mod itself maybe has not added any data to the database, as I had not checked the code and I was not sure if that was the case or not.
Anyways, can you please show me a concrete example of where Mods need to specifically set up the database uninstall option?
Quote from: Doug Heffernan on April 11, 2022, 05:31:49 PMAnyways, can you please show me a concrete example of where Mods need to specifically set up the database uninstall option?
1. They have to use <database> to load their script.
2. They have to use $smcFunc['db_create_table'], $smcFunc['db_add_column'], $smcFunc['db_add_index'] when adding their changes to the database.
3. If they want, they can also specify a <database> for uninstall too to do housecleaning that might otherwise be missed by the above (e.g. removing package servers, removing admin_info_files entries)
Plenty of mods - especially mods upgraded from 1.1 fail on either step 1 or 2.
Quote from: Arantor on April 11, 2022, 05:34:17 PM1. They have to use <database> to load their script.
2. They have to use $smcFunc['db_create_table'], $smcFunc['db_add_column'], $smcFunc['db_add_index'] when adding their changes to the database.
Yes, I am well aware of point 1 and 2.
Quote from: Arantor on April 11, 2022, 05:34:17 PM3. If they want, they can also specify a <database> for uninstall too to do housecleaning that might otherwise be missed by the above (e.g. removing package servers, removing admin_info_files entries)
I am aware of this too, but this is not mandatory a.f.a.i.k.
Anways, that is not what I asked though. What I wanted to know is a concrete example of this part: Mods need to specifically set up the database uninstall option.
I am asking because as mentioned above, the step number 3 of your post, is not mandatory a.f.a.i.k. I am working on a few mods and I need to know if this has changed recently and it has become a must, so I can adapt my mods accordingly.
Quote from: Doug Heffernan on April 11, 2022, 05:45:21 PMWhat I wanted to know is a concrete example of this part: Mods need to specifically set up the database uninstall option.
Man you are pedantic. And coming from me that's quite a thing. It's not an endearing trait.
OK, so if you declare your mods correctly, database uninstall will usually be set up automatically. You may need to manually do this if you are doing houseclean that isn't just adding tables, columns or indexes - like I said.
For example, if you are removing a package server (as several of my mods did back in the day), removing settings you added to smf_settings (SimpleDesk does this), you *explicitly* have to add a <database> setup for the uninstall.
If your mod behaves when creating tables, uninstall is usually set up for you. But creating tables/columns/indexes isn't the only optional housecleaning that people might want to do. If you don't create tables correctly, you should still be able to use <database> to produce a houseclean.
This hasn't changed significantly in over a decade. I was doing this stuff in SimpleDesk in 2011, with the install/uninstall-required/uninstall-optional files.
But, to the point ... if the mod uses a php SCRIPT to set up the database, as many older mods do, there will be no "remove mod from database" option
Quote from: Kindred on April 11, 2022, 06:00:13 PMBut, to the point ... if the mod uses a php SCRIPT to set up the database, as many older mods do, there will be no "remove mod from database" option
That is all I need to hear. Thank you for the clarification.
For all SMF releases:
Just discovered this mod does not remove any of the mod-specific files it copies to ./Sources, ./Themes/default, or ./Themes/default/images when it is uninstalled ...
German translation
Open Themes/default/languages/modifications.german.php or modification.german_informal.php
(suitable for both variants)
Search for:
?>
Add before:
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Kontakt';
$txt['permissionname_view_contact'] = 'Kontaktseite anzeigen';
$txt['permissionhelp_view_contact'] = 'Ermöglicht Mitgliedern, die Kontaktseite anzuzeigen und E-Mails zu senden.';
$txt['cannot_view_contact'] = 'Die Kontaktseite kann nicht aufgerufen werden';
$txt['smfcontact_name'] = 'Name';
$txt['smfcontact_subject'] = 'Betreff';
$txt['smfcontact_body'] = 'Nachricht';
$txt['smfcontact_emailaddress'] = 'E-Mail-Addresse';
$txt['smfcontact_sendemail'] = 'E-Mail senden';
$txt['smfcontact_messagesent'] = 'Die Nachricht wurde gesendet!';
$txt['smfcontact_messagesent_click'] = 'Die Nachricht wurde gesendet! Hier ';
$txt['smfcontact_messagesent_return'] = 'klicken</a> um zum Forum zurückzukehren.';
$txt['smfcontact_errname'] = 'Bitte den Namen eingeben.';
$txt['smfcontact_errsubject'] = 'Es wurde keine Betreff eingegeben.';
$txt['smfcontact_errmessage'] = 'Es wurde keine Nachricht eingegeben.';
$txt['smfcontact_erremail'] = 'Es wurde keine E-Mail Adresse angegeben.';
$txt['smfcontact_titlesent'] = ' - Die Nachricht wurde gesendet.';
$txt['smfcontact_form'] = 'Kontaktseite für ';
$txt['smfcontact_formname'] = "Name: ";
$txt['smfcontact_formemail'] = "E-Mail: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Nachricht: \n";
$txt['smfcontactpage_email'] = 'SMF Kontaktseite E-Mail-Adresse: ';
$txt['smfcontactpage_board'] = 'Kontaktseite - In welches Board soll gepostet werden (Optional): ';
// END Contact Page Text Strings
make the chance in Themes/default/languages/Modifications.english.php
nice day
// Dutch language
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contact';
$txt['permissionname_view_contact'] = 'View Contact Page';
$txt['permissionhelp_view_contact'] = 'Allows members to view contact page and send email.';
$txt['cannot_view_contact'] = 'You can not view the contact page.';
$txt['smfcontact_name'] = 'Uw Naam:';
$txt['smfcontact_subject'] = 'Onderwerp';
$txt['smfcontact_body'] = 'Type Uw bericht';
$txt['smfcontact_emailaddress'] = 'Email Adres';
$txt['smfcontact_sendemail'] = 'Verzend Uw bericht';
$txt['smfcontact_messagesent'] = 'Uw Bericht is verzonden!';
$txt['smfcontact_messagesent_click'] = 'Dank voor Uw Bericht<br>Deze is verzonden!<b> Klik ';
$txt['smfcontact_messagesent_return'] = 'hier</a></b> om terug te gaan naat het Forum<br>Zo gauw dit bericht is gelezen krijgt U zo spoedig mogelijk een reactie<br>Met vriendelijke groet<br>Beheer .';
$txt['smfcontact_errname'] = 'U vergeet Uw naam in te tikken.';
$txt['smfcontact_errsubject'] = 'U bent vergeten een onderwerp in te tikken.';
$txt['smfcontact_errmessage'] = 'U heeft niets ingevuld in de berichtenbox.';
$txt['smfcontact_erremail'] = 'U bent vergeten Uw e-mail adres in te vullen.';
$txt['smfcontact_titlesent'] = ' - Bericht verzonden.';
$txt['smfcontact_form'] = 'Contact Pagina voor ';
$txt['smfcontact_formname'] = "Name: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Bericht: \n";
$txt['smfcontactpage_email'] = 'Contact Pagina - Email: ';
$txt['smfcontactpage_board'] = 'Contact Pagina - Board to Post to (Optional): ';
// END Contact Page Text Strings
By the way
where can i chance the width of de message form
|It's to wide on a mobile
Thanks! Added german and dutch translations.
Quote from: Kindred on April 11, 2022, 05:17:31 PMQuote from: Doug Heffernan on April 10, 2022, 09:27:41 AMI have not seen the code of this mod, but most likely it does not add to the database then.
That is incorrect.
To the best of my knowledge, in 2.0, at leasr, Mods need to specifically set up the database uninstall option
This...(may need to split to another topic) but I agree with this whether it is a true statement/rule or not...I mentioned it somewhere b4 but can't recall where but I think all mods should remove everything entirely upon uninstall! I have a whole slew of mods still in my database from 2.0 after upgrading to 2.1.1 that I don't/can't use now, that I would like to clean up! Although shawnb61's script (https://www.simplemachines.org/community/index.php?topic=579906.msg4104742#msg4104742) is awesome it's still a pain in the arse to clean up all the old mods that might be ghosting around and possibly causing new/unexplained/undetectable errors/problems (for the non coders/developers) like myself. ;) O:)
Just my two pennys! 8)
(Edit: My comments are meant for future mods because I understand...what's done is done!) ;)
Hello,
I have added French language to test and seems to works :)
<file name="$languagedir/Modifications.french.php">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contact';
$txt['permissionname_view_contact'] = 'Afficher la page de contact';
$txt['permissionhelp_view_contact'] = 'Permet aux membres d\'afficher la page de contact et d\'envoyer des e-mails.';
$txt['cannot_view_contact'] = 'Vous ne pouvez pas voir la page de contact.';
$txt['smfcontact_name'] = 'Votre nom :';
$txt['smfcontact_subject'] = 'Sujet';
$txt['smfcontact_body'] = 'Message';
$txt['smfcontact_emailaddress'] = 'Adresse e-mail';
$txt['smfcontact_sendemail'] = 'Envoyer un e-mail';
$txt['smfcontact_messagesent'] = 'Votre message a été envoyé !';
$txt['smfcontact_messagesent_click'] = 'Votre message a été envoyé ! Cliquez sur ';
$txt['smfcontact_messagesent_return'] = 'ici</a> pour retourner au forum.';
$txt['smfcontact_errname'] = 'Vous devez saisir votre nom.';
$txt['smfcontact_errsubject'] = 'Vous devez saisir un sujet.';
$txt['smfcontact_errmessage'] = 'Vous devez saisir un message.';
$txt['smfcontact_erremail'] = 'Vous devez saisir votre adresse e-mail.';
$txt['smfcontact_titlesent'] = ' - Message envoyé.';
$txt['smfcontact_form'] = 'Formulaire de page de contact pour ';
$txt['smfcontact_formname'] = "Nom : ";
$txt['smfcontact_formemail'] = "Courriel : ";
$txt['smfcontact_ip'] = "IP : ";
$txt['smfcontact_formmessage'] = "Message : \n";
$txt['smfcontactpage_email'] = 'Page de contact - E-mail : ';
$txt['smfcontactpage_board'] = 'Page de contact - Tableau sur lequel publier (facultatif) : ';
// END Contact Page Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.french-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contact';
$txt['permissionname_view_contact'] = 'Afficher la page de contact';
$txt['permissionhelp_view_contact'] = 'Permet aux membres d\'afficher la page de contact et d\'envoyer des e-mails.';
$txt['cannot_view_contact'] = 'Vous ne pouvez pas voir la page de contact.';
$txt['smfcontact_name'] = 'Votre nom :';
$txt['smfcontact_subject'] = 'Sujet';
$txt['smfcontact_body'] = 'Message';
$txt['smfcontact_emailaddress'] = 'Adresse e-mail';
$txt['smfcontact_sendemail'] = 'Envoyer un e-mail';
$txt['smfcontact_messagesent'] = 'Votre message a été envoyé !';
$txt['smfcontact_messagesent_click'] = 'Votre message a été envoyé ! Cliquez sur ';
$txt['smfcontact_messagesent_return'] = 'ici</a> pour retourner au forum.';
$txt['smfcontact_errname'] = 'Vous devez saisir votre nom.';
$txt['smfcontact_errsubject'] = 'Vous devez saisir un sujet.';
$txt['smfcontact_errmessage'] = 'Vous devez saisir un message.';
$txt['smfcontact_erremail'] = 'Vous devez saisir votre adresse e-mail.';
$txt['smfcontact_titlesent'] = ' - Message envoyé.';
$txt['smfcontact_form'] = 'Formulaire de page de contact pour ';
$txt['smfcontact_formname'] = "Nom : ";
$txt['smfcontact_formemail'] = "Courriel : ";
$txt['smfcontact_ip'] = "IP : ";
$txt['smfcontact_formmessage'] = "Message : \n";
$txt['smfcontactpage_email'] = 'Page de contact - E-mail : ';
$txt['smfcontactpage_board'] = 'Page de contact - Tableau sur lequel publier (facultatif) : ';
// END Contact Page Text Strings
]]></add>
</operation>
</file>
Thanks added the French translation as well.
after I asked I found the solution myself
The tables are displayed too wide on a mobel or tablet The solution is as follows, open the Themes/default/Contact2.template file.php and do the following
Search this
<td width="28%" class="windowbg2"><b>',$txt['smfcontact_name'],'</b></td>
<td width="72%" class="windowbg2"><input type="text" name="from" size="64" /></td>
</tr>
<tr>
<td width="28%" class="windowbg2"><b>',$txt['smfcontact_subject'],'</b></td>
<td width="72%" class="windowbg2"><input type="text" name="subject" size="64" /></td>
</tr>
<tr>
<td width="28%" valign="top" class="windowbg2"><b>',$txt['smfcontact_body'],'</b></td>
<td width="100%" class="windowbg2"><textarea rows="6" name="message" cols="54"></textarea></td>
</tr>
[code]
and replace this with
<td width="28%" class="windowbg2"><b>',$txt['smfcontact_name'],'</b></td>
<td width="72%" class="windowbg2"><input type="text" name="from" cols="20%" /></td>
</tr>
<tr>
<td width="28%" class="windowbg2"><b>',$txt['smfcontact_subject'],'</b></td>
<td width="72%" class="windowbg2"><input type="text" name="subject" cols="20%" /></td>
</tr>
<tr>
<td width="28%" valign="top" class="windowbg2"><b>',$txt['smfcontact_body'],'</b></td>
<td width="100%" class="windowbg2"><textarea rows="6" name="message" cols="20%"></textarea></td>
</tr>
Now it looks better on your phone
@vbgamer45 Maybe crowdin is a good option for the translations for your free mods...
@vbgamer45 Please add Italian language too:
<file name="$languagedir/Modifications.italian.php">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contatti';
$txt['permissionname_view_contact'] = 'Visualizza la pagina Contatti';
$txt['permissionhelp_view_contact'] = 'Consente agli utenti di visualizzare la pagina Contatti e di inviare email.';
$txt['cannot_view_contact'] = 'Non puoi visualizzare la pagina Contatti.';
$txt['smfcontact_name'] = 'Nome';
$txt['smfcontact_subject'] = 'Oggetto';
$txt['smfcontact_body'] = 'Messaggio';
$txt['smfcontact_emailaddress'] = 'Indirizzo Email';
$txt['smfcontact_sendemail'] = 'Invia e-mail';
$txt['smfcontact_messagesent'] = 'Il tuo messaggio è stato inviato!';
$txt['smfcontact_messagesent_click'] = 'Il tuo messaggio è stato inviato! Clicca ';
$txt['smfcontact_messagesent_return'] = 'qui</a> per ritornare al forum.';
$txt['smfcontact_errname'] = 'Devi inserire il tuo nome.';
$txt['smfcontact_errsubject'] = 'Devi inserire un oggetto.';
$txt['smfcontact_errmessage'] = 'Devi inserire un messaggio.';
$txt['smfcontact_erremail'] = 'Devi inserire un indirizzo email.';
$txt['smfcontact_titlesent'] = ' - Messaggio inviato.';
$txt['smfcontact_form'] = 'Inviato dal modulo contatti di ';
$txt['smfcontact_formname'] = "Nome: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Messaggio: \n";
$txt['smfcontactpage_email'] = 'Email pagina Contatti:';
$txt['smfcontactpage_board'] = 'Pagina Contatti - Sezione in cui pubblicare i messaggi (opzionale): ';
// END Contact Page Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.italian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contatti';
$txt['permissionname_view_contact'] = 'Visualizza la pagina Contatti';
$txt['permissionhelp_view_contact'] = 'Consente agli utenti di visualizzare la pagina Contatti e di inviare email.';
$txt['cannot_view_contact'] = 'Non puoi visualizzare la pagina Contatti.';
$txt['smfcontact_name'] = 'Nome';
$txt['smfcontact_subject'] = 'Oggetto';
$txt['smfcontact_body'] = 'Messaggio';
$txt['smfcontact_emailaddress'] = 'Indirizzo Email';
$txt['smfcontact_sendemail'] = 'Invia e-mail';
$txt['smfcontact_messagesent'] = 'Il tuo messaggio è stato inviato!';
$txt['smfcontact_messagesent_click'] = 'Il tuo messaggio è stato inviato! Clicca ';
$txt['smfcontact_messagesent_return'] = 'qui</a> per ritornare al forum.';
$txt['smfcontact_errname'] = 'Devi inserire il tuo nome.';
$txt['smfcontact_errsubject'] = 'Devi inserire un oggetto.';
$txt['smfcontact_errmessage'] = 'Devi inserire un messaggio.';
$txt['smfcontact_erremail'] = 'Devi inserire un indirizzo email.';
$txt['smfcontact_titlesent'] = ' - Messaggio inviato.';
$txt['smfcontact_form'] = 'Inviato dal modulo contatti di ';
$txt['smfcontact_formname'] = "Nome: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "Messaggio: \n";
$txt['smfcontactpage_email'] = 'Email pagina Contatti:';
$txt['smfcontactpage_board'] = 'Pagina Contatti - Sezione in cui pubblicare i messaggi (opzionale): ';
// END Contact Page Text Strings
]]></add>
</operation>
</file>
Added thanks.
SMF 2.0.19 & 2.1.2
SMF Contacts Page 7.0a
FYI...I don't use the French & Italian languages but installing on SMF 2.0.19 & 2.1.2 I see these two error after uploading:
Quote6. Execute Modification ./Themes/default/languages/Modifications.french.php File not found
8. Execute Modification ./Themes/default/languages/Modifications.italian.php File not found
This has been fixed.
Hello and thanks for this great free product.
I have ugraded to smf 2.1.2 and i uninstalled and reinstalled contact page.
I now have a problem when a guest uses contact page.
QuoteAn error has occurred
You are not allowed to access this section
ANy clues what i should do?
Thanks in advance!
Check permissions for guests that they have the view contact page for guests.
Update
7.1
!Make sure valid email is entered on contact page. Adds a new language string requires uninstall/install of new version.
!Trims whitespace of entered message.
I don't know if this is correct, but I found the following:
I do not allow guest access to the forum.
In my menu, however, a Contact Page button appears, but if a visitor wants to contact the management, by pressing the button, the login or registration form appears, instead of the contact form. In my admin, visitors I have enabled View contact page.
What's going on and the visitor can't communicate?
Did you give the guest group the View Contact Page permission?
Hi,
not working for me on 2.0.19(update patch, origanelly 2.0.4) with php 7.3.
I have the message sent but nothing on the mailbox but if I use an external form no problem.
shared host without error on smf or on my host
if i use with 2.1.4 and php 8.1 no problem (another host).
Any idea??
Thanks ???
You are not getting the email? From contact form? Check first the email address you are using on the contact page settings, default uses I belive the webmasters email
The email webmaster is ok and same with the specify mod config and yes nothing on the mail box with the mod. But if i use another contact form external on the same host, it's work.
I would check your mail logs and forum error logs.
on forum nothing and with my host nothing or not access (mutualized)
This a great mod. I have not installed it yet.
I have read that the submission method was an e-mail sent to the webmaster of the forum.
What about forums with more than one administrator please?
Would it be possible to add a submission method for example to send the message
- to multiple e-mail addresses?
- to a specific forum category/section please?
- to SimpleDesk (https://custom.simplemachines.org/index.php?mod=2491_ )
Thanks.
great mod
I have my forum closed to visitors, but it is useful for me to have their contact page open.
How can this happen; There is a possibility;
View Contact Page is active in my admin.
In SMF 2.0.x at least you have to edit this code in the index.php and add "contact" as an action to allow
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn'))))
{
require_once($sourcedir . '/Subs-Auth.php');
return 'KickGuest';
}
Does the procedure change for 2.1.4?
It might but look for similar code in the index.php file
Everything ok, works well...
Thank you
Great! Glad to help 8)
Quote from: Lucarella on March 11, 2024, 10:38:25 AMEverything ok, works well...
Thank you
There is the possibility to report exactly what you did and where in 2.1.4. Thanks.
Hi, as you can see from the image, you have to enter 'contact', in the same position where I put it
(https://i.postimg.cc/PLqb4TRp/Screen-Shot-03-12-24-at-09-06-PM.png) (https://postimg.cc/PLqb4TRp)
Thank you, now a guest can contact, the contact form is displayed.
Added Spanish ai assisted translation.
Can you move your language entries to dedicated files instead of adding them to Modifications.english.php where the most mod conflicts occur upon uninstallation please?
language portuguese_pt:
<file name="$languagedir/Modifications.portuguese_pt.php">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contato';
$txt['permissionname_view_contact'] = 'Ver página de contato';
$txt['permissionhelp_view_contact'] = 'Permite que os membros visualizem a página de contato e enviem e-mails.';
$txt['cannot_view_contact'] = 'Você não pode visualizar a página de contato.';
$txt['smfcontact_name'] = 'Seu nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Menssagem';
$txt['smfcontact_emailaddress'] = 'Endereço de email';
$txt['smfcontact_sendemail'] = 'Enviar e-mail';
$txt['smfcontact_messagesent'] = 'Sua mensagem foi enviada!';
$txt['smfcontact_messagesent_click'] = 'Sua mensagem foi enviada! Click ';
$txt['smfcontact_messagesent_return'] = 'aqui</a> para retornar.';
$txt['smfcontact_errname'] = 'Você precisa digitar seu nome.';
$txt['smfcontact_errsubject'] = 'Você precisa digitar um assunto.';
$txt['smfcontact_errmessage'] = 'Você precisa digitar uma mensagem.';
$txt['smfcontact_erremail'] = 'Você precisa digitar seu endereço de e-mail.';
$txt['smfcontact_errbademail'] = 'Você não inseriu um endereço de e-mail válido.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formulário de página de contato para ';
$txt['smfcontact_formname'] = "Nome: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] = "mensagem: \n";
$txt['smfcontactpage_email'] = 'Página de contato - E-mail: ';
$txt['smfcontactpage_board'] = 'Página de contato - Quadro para postar (opcional): ';
// END Contact Page Text Strings
]]></add>
</operation>
</file>
Added the portuguese_pt translation!
I've installed current version of the mod on a 2.0.19 forum. We're giving guests permission to use the form, but verification doesn't work correctly. It's only presented on first page load, reloading form displays it without verification. Any way to fix that?
What type of verification are you using? this mod supports normal, recaptcha, hcaptcha
We have the Image for Anti-Spam Verification Questions installed -
https://custom.simplemachines.org/index.php?mod=4278
Without the mod verification questions are displayed correctly, but I'll have to code in the image in the contact template.
That's probably why, I did not code to have that mod supported into the contact mod.
Ok, thanks. I'll have to do it the hard way.
Installed the mod on a 2.0.19 forum, didn't go well. Set up verification questions with image (not the mod), works fine. Gave guests permission to view contact page. There are no members on this forum, all visitors are guests. Guests do not see the main menu, so I coded a "Contact Us" link in the index template footer. Everything looks and works fine, but we immediately started receiving spam emails. With verification questions in place, I'm assuming these are human spammers, How did they find the contact form so quickly?
My current theory is that a bot scraped the forum, found keyword "contact" in the page code, reported back to source, and human spammers followed to forum. Is that how it works? If so, I can replace the "Contact Us" text link with an image, so "contact" does not appear in view source, and change the action from "contact" to something else in contactHooks.php, since they already have it and it's easy to guess.
Does any of this make sense?
It can happen normally bots will look for any pages that have forms then try to auto submit data.
Don't think they can auto submit anything without verification, and it's unlikely they got around that. Would have to be human spammers, just a question of how they found it first day it was running.
>:( Well, I broke it. Changed the action in contactHooks.php -
function contact_actions(&$actionArray)
{
global $sourcedir, $modSettings;
$actionArray += array('tcatnoc' => array('Contact2.php', 'Contact'));
}
Removed the main menu button, added a new button (png) in template_body_below() that links to new action. Added some formatting. Link with new action works, form loads correctly, displays verification image and questions, but nothing happens when send email is clicked with or without verification, just returns to board index. Running on test forum here (https://www.thekrashsite.com/smf20/index.php). Will get back to it tomorrow.
You have to change the action name in contact2.template.php to tacnoc since you changed it above.
That got it, thanks. Running here (https://ebook-mecca.com/). Now we'll see if the spammers find it.
FYI, the uninstaller does not remove the contact mod files.
Yeah, its a tradeoff. I sometimes worry if someone uninstalls and they have custom changes they are gone forever.
Actually, that happened here, saved me some work. :)