Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on July 06, 2006, 12:59:38 PM

Title: Contact Page
Post by: SMFHacks.com Team on July 06, 2006, 12:59:38 PM
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)


Compatibility
Works with both SMF 2.1.x and SMF 2.0.x and SMF 1.1.x

Description
Adds 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 Links
SMF 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)

Title: Re: Contact Page
Post by: Arbalot on July 06, 2006, 01:06:23 PM
that is nice vbgamer45 thanks
i translate Tukish immediate :D
Title: Re: Contact Page
Post by: PrizeLive.com on July 06, 2006, 03:08:21 PM
great thanks...

which method does it contact the webmaster?
Title: Re: Contact Page
Post by: vbgamer45 on July 06, 2006, 05:53:47 PM
Contact's webmaster via email. Email address is the one that the board uses.
Title: Re: Contact Page
Post by: Rocket 442 on July 07, 2006, 02:26:08 AM
Installed and working great! 8)
Title: Re: Contact Page
Post by: PrizeLive.com on July 07, 2006, 09:49:17 AM
Installed smoothly... thanks!
Title: Re: Contact Page
Post by: PrizeLive.com on July 07, 2006, 01:34:43 PM
how do i get the contact button to appear for all members?
Title: Re: Contact Page
Post by: vbgamer45 on July 07, 2006, 04:02:15 PM
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
Title: Re: Contact Page
Post by: PrizeLive.com on July 07, 2006, 04:08:30 PM
Quote from: vbgamer45 on July 07, 2006, 04:02:15 PM
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

heh... thanks!
Title: Re: Contact Page
Post by: Vinspire on July 07, 2006, 04:35:20 PM
Any screenshot ?
Title: Re: Contact Page
Post by: PrizeLive.com on July 07, 2006, 08:12:36 PM
Quote from: Vinspire on July 07, 2006, 04:35:20 PM
Any screenshot ?

what do you want a screenshot of?
Title: Re: Contact Page
Post by: vbgamer45 on July 07, 2006, 08:23:37 PM
Added a screenshot.
You can see it at
http://mods.simplemachines.org/index.php?mod=377
Title: Re: Contact Page
Post by: Vinspire on July 08, 2006, 12:56:07 AM
Awesome mod .... It seems to be quite useful :P
Title: Re: Contact Page
Post by: Stuart on July 08, 2006, 07:48:00 PM
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?
Title: Re: Contact Page
Post by: vbgamer45 on July 08, 2006, 08:01:18 PM
Ported to SMF 1.0.7
Title: Re: Contact Page
Post by: Stuart on July 08, 2006, 09:20:52 PM
Quote from: vbgamer45 on July 08, 2006, 08:01:18 PM
Ported to SMF 1.0.7

That's great. Thanks a million  :D
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: PrizeLive.com on July 19, 2006, 08:35:19 AM
Did you install this mod even though it said this --

3.    Execute Modification    ./Themes/default/index.template.php    Test failed

?
Title: Re: Contact Page
Post by: desistyle on July 19, 2006, 11:41:17 AM
No i did not
Title: Re: Contact Page
Post by: 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.
Title: Re: Contact Page
Post by: desistyle on July 20, 2006, 05:40:06 PM
and how would i do that ?
Title: Re: Contact Page
Post by: psi0 on July 22, 2006, 11:21:38 AM
Hello,

I want translate module to other language.

Is that possible? how?

Thanks
Title: Re: Contact Page
Post by: vbgamer45 on July 22, 2006, 11:25:48 AM
Edit the text strings in Modifications.english.php
and edit the text in /Themes/default/Contact.template.php
Title: Re: Contact Page
Post by: psi0 on July 22, 2006, 11:55:26 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on July 22, 2006, 11:57:03 AM
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.
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: Vinspire on July 29, 2006, 02:47:41 AM
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
Title: Re: Contact Page
Post by: FinsandFur on July 30, 2006, 12:28:48 AM
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
Title: Re: Contact Page
Post by: vbgamer45 on July 30, 2006, 08:37:21 AM
Use ./Themes/default/languages/Modifications.english.php  instead.
Title: Re: Contact Page
Post by: FinsandFur on July 30, 2006, 10:07:05 AM
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.... :-[
Title: Re: Contact Page
Post by: vbgamer45 on July 30, 2006, 10:18:34 AM
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.
Title: Re: Contact Page
Post by: FinsandFur on July 30, 2006, 10:44:40 AM
Cool, I appreciate the reply.
I'll do some looking around and see if I can find that guide info.
Thanks vbgamer45
Title: Re: Contact Page
Post by: FinsandFur on July 30, 2006, 11:58:54 AM
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.
Title: Re: Contact Page
Post by: 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.
Title: Re: Contact Page
Post by: qd-race on September 23, 2006, 08:41:56 AM
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 . '">&nbsp;</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 . '">&nbsp;</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.
Title: Re: Contact Page
Post by: vbgamer45 on September 23, 2006, 09:23:40 AM
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>
Title: Re: Contact Page
Post by: qd-race on September 23, 2006, 09:33:28 AM
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?
Title: Re: Contact Page
Post by: Darcy on December 05, 2006, 04:31:11 AM
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
Title: Re: Contact Page
Post by: msbask on December 25, 2006, 09:13:19 PM
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?
Title: Re: Contact Page
Post by: FinsandFur on December 26, 2006, 12:50:37 AM
if ($context['allow_contact']) needs to be removed
Title: Re: Contact Page
Post by: 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)
Title: Re: Contact Page
Post by: vbgamer45 on December 26, 2006, 02:18:20 PM
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.
Title: Re: Contact Page
Post by: msbask on December 26, 2006, 05:54:17 PM
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!
Title: Re: Contact Page
Post by: jcroot on December 28, 2006, 11:29:59 AM
How can I be able to activate this mod? I just installed this mod but I don't know how to get it working...
Title: Re: Contact Page
Post by: 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.
Title: Re: Contact Page
Post by: jcroot on December 28, 2006, 02:14:20 PM
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?
Title: Re: Contact Page
Post by: vbgamer45 on December 28, 2006, 02:23:01 PM
There are no settings for the mod. Only setting is view contact page permission located under permissions.
Title: Re: Contact Page
Post by: MissYeh on December 28, 2006, 06:34:44 PM
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?
Title: Re: Contact Page
Post by: vbgamer45 on December 28, 2006, 06:49:50 PM
Yes they could if its visible to guests.
Title: Re: Contact Page
Post by: Tapsa2 on January 14, 2007, 07:52:19 AM
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 &Auml;

Shame, because i really would like to use this mod.
Title: Re: Contact Page
Post by: choloman05 on January 19, 2007, 01:14:54 PM
Hey vbgamer45, I'm getting a "Test Failed" in  /Themes/default/languages/Modifications.english.php   

What do I do?? haha
Title: Re: Contact Page
Post by: vbgamer45 on January 19, 2007, 01:16:39 PM
Install it anyway then apply the changes to modifications.english.php from the xml file.
Title: Re: Contact Page
Post by: choloman05 on January 19, 2007, 02:00:57 PM
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
Title: Re: Contact Page
Post by: vbgamer45 on January 19, 2007, 02:02:38 PM
Not really sure since it searchs for ?> then adds the code before.
Title: Re: Contact Page
Post by: choloman05 on January 19, 2007, 02:53:08 PM
oh well. Thanks for the help.
Title: Re: Contact Page
Post by: teamvtec on January 26, 2007, 08:24:56 PM
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)
Title: Re: Contact Page
Post by: vbgamer45 on January 26, 2007, 08:26:53 PM
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
Title: Re: Contact Page
Post by: 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.  
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: TEOC2 on February 17, 2007, 01:43:14 AM
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.
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: Hadrian on February 26, 2007, 11:15:13 AM
is there a way to get this working in the Babylon theme?  :)
Title: Re: Contact Page
Post by: Tapsa2 on February 26, 2007, 12:00:18 PM
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
Title: Re: Contact Page
Post by: Hadrian on February 26, 2007, 12:55:04 PM
lets hope so  :D
Title: Re: Contact Page
Post by: vbgamer45 on February 26, 2007, 01:46:18 PM
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.
Title: Re: Contact Page
Post by: Hadrian on February 26, 2007, 02:00:11 PM
even if i say please please please please please please please please  :D
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: 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

Title: Re: Contact Page
Post by: Tapsa2 on March 15, 2007, 12:36:19 PM
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
Title: Re: Contact Page
Post by: SJIleerlingen on March 23, 2007, 02:56:45 PM
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
Title: Re: Contact Page
Post by: joh87swe on May 06, 2007, 05:31:54 PM
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
Title: Re: Contact Page
Post by: Tick on May 06, 2007, 05:42:04 PM
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
Title: Re: Contact Page
Post by: John S on May 07, 2007, 02:18:12 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on May 07, 2007, 07:56:46 AM
Requires php coding if you want me to give the codes I can code for $50 an hour.
Title: Re: Contact Page
Post by: gffb on June 07, 2007, 11:50:18 PM
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?
Title: Re: Contact Page
Post by: vbgamer45 on June 08, 2007, 12:13:21 AM
Maybe in the next release I will support guests for that mod and upate it.
Title: Re: Contact Page
Post by: vbgamer45 on June 14, 2007, 10:08:26 PM
1.1 Version released
+Text strings moved to language files
+CAPTCHA added for SMF 1.1.x
Title: Re: Contact Page
Post by: Sakae on June 15, 2007, 11:33:49 AM
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&aacute;gina de contato';
$txt['permissionhelp_view_contact'] = 'Autorizar membros a ver p&acute;gina de contato';
$txt['cannot_view_contact'] = 'Voc&ecirc; n&atilde;o est&acute; autorizado a ver esta p&aacute;gina.';


Keep the good job
Title: Re: Contact Page
Post by: dDOTr2 on June 17, 2007, 03:58:30 AM
really great mod. thanks
Title: Re: Contact Page
Post by: 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?
Title: Re: Contact Page
Post by: vbgamer45 on June 27, 2007, 07:45:04 PM
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
Title: Re: Contact Page
Post by: Photoshocker on June 28, 2007, 09:29:56 AM
I want guests to have access to contact form how can i do that?

Thanks. :)
Title: Re: Contact Page
Post by: kill3r on June 28, 2007, 10:46:51 AM
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


Title: Re: Contact Page
Post by: kill3r on June 28, 2007, 01:27:01 PM
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.
Title: Re: Contact Page
Post by: Photoshocker on June 28, 2007, 01:30:00 PM
I can't find any permission related to the contact.. :(
Title: Re: Contact Page
Post by: kill3r on June 28, 2007, 05:05:04 PM
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
Title: Re: Contact Page
Post by: Photoshocker on June 28, 2007, 05:44:36 PM
Got it! thanks...i had a little problem with the translation in the language..
Title: Re: Contact Page
Post by: adelaidebear on June 30, 2007, 07:30:35 PM
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

Title: Re: Contact Page
Post by: vbgamer45 on June 30, 2007, 07:55:58 PM
Find
' , $txt[331] , '
Change to
Contact
Title: Re: Contact Page
Post by: adelaidebear on June 30, 2007, 08:19:33 PM
Like this.  ' , $txt[Contact] , '

Did'nt work m8
Title: Re: Contact Page
Post by: vbgamer45 on June 30, 2007, 09:37:07 PM
No completly remove the stuff i said in the other post.
Title: Re: Contact Page
Post by: adelaidebear on June 30, 2007, 09:49:06 PM
That worked . cheers for that. :D Does it automaticaly link to my e-mail address ?
Title: Re: Contact Page
Post by: adelaidebear on June 30, 2007, 10:14:50 PM
Just tested ,and everything works perfectly. Thanks for your advice. & keep up the good work :D
Title: Re: Contact Page
Post by: STS on July 07, 2007, 06:20:19 PM
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.
Title: Re: Contact Page
Post by: askepott on July 08, 2007, 09:50:54 AM
same here.
http://img490.imageshack.us/img490/47/missingtextoq8.jpg

do i need to modify my modsettings again or something?
Title: Re: Contact Page
Post by: 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.
Title: Re: Contact Page
Post by: kill3r on July 08, 2007, 12:56:06 PM
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.
Title: Re: Contact Page
Post by: JOSHSKORN on July 17, 2007, 05:29:43 PM
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.
Title: Re: Contact Page
Post by: JOSHSKORN on July 17, 2007, 06:24:56 PM
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.
Title: Re: Contact Page
Post by: vbgamer45 on July 17, 2007, 08:46:22 PM
The image box will only appear if you visual confirmation turned on.
Title: Re: Contact Page
Post by: jossanaijr on September 14, 2007, 11:34:03 PM
Great Mod!
Thank you!
Title: Re: Contact Page
Post by: chep on September 16, 2007, 02:20:03 PM
It would be great if the captcha was only used for guests. Is that possible?
Title: Re: Contact Page
Post by: rowedf on September 27, 2007, 04:40:20 PM
It says it works for 1.1.4 but it errors on installation (relating to the modifications.english.php file)
Title: Re: Contact Page
Post by: TrueSatan on September 27, 2007, 08:04:33 PM
@ 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)
Title: Re: Contact Page
Post by: choloman05 on October 09, 2007, 02:08:59 AM
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).
Title: Re: Contact Page
Post by: TrueSatan on October 09, 2007, 09:12:07 AM
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.
Title: Re: Contact Page
Post by: choloman05 on October 09, 2007, 01:48:39 PM
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.
Title: Re: Contact Page
Post by: TrueSatan on October 09, 2007, 08:11:00 PM
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.
Title: Re: Contact Page
Post by: christinedlrp on October 12, 2007, 05:12:20 AM
How do I get the visual verification letters to show up?
Title: Re: Contact Page
Post by: choloman05 on October 28, 2007, 06:48:39 PM
vbgamer - any say on the captcha issue?
Title: Re: Contact Page
Post by: MinasC on November 04, 2007, 08:53:16 PM
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 !
Title: Re: Contact Page
Post by: vbgamer45 on November 04, 2007, 09:42:46 PM
Ask your host to do to install the GD module for PHP located at http://www.php.net/gd
Title: Re: Contact Page
Post by: MinasC on November 05, 2007, 04:48:15 AM
will do , thnx a lot !
Title: Re: Contact Page
Post by: Neol on November 06, 2007, 08:46:26 AM
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.
Title: Re: Contact Page
Post by: bnard on November 06, 2007, 10:47:21 PM
me too...i also got the same error. i'm sure i typed in the correct letters
Title: Re: Contact Page
Post by: shumar on November 07, 2007, 04:41:00 AM
I have this problem when I have installed Advanced Visual Verification.
When I uninstall this, my problem is gone too.
Title: Re: Contact Page
Post by: Neol 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.  :(
Title: Re: Contact Page
Post by: shumar on November 07, 2007, 09:26:27 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on November 16, 2007, 12:56:14 AM
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.
Title: Re: Contact Page
Post by: Aileen on November 28, 2007, 04:58:54 AM
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
Title: Re: Contact Page
Post by: falguni1 on December 04, 2007, 09:46:38 AM
very nice mod
Title: Re: Contact Page
Post by: falguni1 on December 14, 2007, 05:55:09 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on December 14, 2007, 09:12:59 PM
Maybe they would want a diffent name or something to show.
Title: Re: Contact Page
Post by: danishj on December 16, 2007, 05:34:24 PM
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?
Title: Re: Contact Page
Post by: vbgamer45 on December 16, 2007, 08:27:46 PM
Open Modifications.english.php

Find ?>

Make sure it is on its own line like
?>
Title: Re: Contact Page
Post by: falguni1 on December 17, 2007, 06:24:35 AM
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.
Title: Re: Contact Page
Post by: ne.miguelito on December 29, 2007, 03:33:57 PM
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
Title: Re: Contact Page
Post by: rockinaway on January 13, 2008, 06:20:34 AM
I have the same problem with the Visual Verification.... any help?
Title: Re: Contact Page
Post by: vbgamer45 on January 13, 2008, 09:24:32 AM
Quote from: rockinaway on January 13, 2008, 06:20:34 AM
I have the same problem with the Visual Verification.... any help?
What problem?
Title: Re: Contact Page
Post by: rockinaway on January 13, 2008, 12:26:15 PM
It keeps saying the letters don't match, but they do match..
Title: Re: Contact Page
Post by: rockinaway on January 20, 2008, 07:16:43 AM
Any help?
Title: Re: Contact Page
Post by: rockinaway on January 20, 2008, 07:21:07 AM
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..
Title: Re: Contact Page
Post by: Krysia on January 21, 2008, 07:36:06 PM
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.
Title: Re: Contact Page
Post by: Krysia on January 21, 2008, 07:49:43 PM
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?
Title: Re: Contact Page
Post by: Qayyom Ashraf 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 )
Title: Re: Contact Page
Post by: dkounal on February 25, 2008, 11:17:30 AM
The button for babylon theme and the modification file for utf-8 in greek language
Title: Re: Contact Page
Post by: motsmart on March 12, 2008, 01:56:52 AM
is there a chance to let users select the note recipe?
Title: Re: Contact Page
Post by: vbgamer45 on March 12, 2008, 09:03:53 PM
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
Title: Re: Contact Page
Post by: Qayyom Ashraf on March 13, 2008, 12:01:19 AM
thanks for your help and support

this problem has been solved.
Title: Re: Contact Page
Post by: Chachafance on April 01, 2008, 06:43:47 AM
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.
Title: Re: Contact Page
Post by: Chachafance on April 01, 2008, 06:58:36 AM
I uninstalled this Mod but the tab is still showing on my forum! :(
How do I remove that tab?
Title: Re: Contact Page
Post by: vbgamer45 on April 01, 2008, 08:12:55 PM
You will have to edit the index.template.php and remove the contact mod sounds like it didn't fully uninstall.
Title: Re: Contact Page
Post by: Marcus Forsberg on April 27, 2008, 08:53:23 AM
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         
Title: Re: Contact Page
Post by: slackerpunk on June 24, 2008, 11:50:53 PM
how come the captcha image does not change? anyone having the same problem?
Title: Re: Contact Page
Post by: vbgamer45 on June 24, 2008, 11:52:35 PM
It normally doesn't change for the same person but for others/browser it does.
Title: Re: Contact Page
Post by: slackerpunk on June 25, 2008, 12:07:42 AM
oh that explains it thanks great mod that to edit my themes index.template manually but that was a given..
Title: Re: Contact Page
Post by: Nachtfalke on August 10, 2008, 09:41:38 AM
It's great  :D
Title: Re: Contact Page
Post by: Adish - (F.L.A.M.E.R) on August 22, 2008, 08:18:01 AM
which member group ID does this mod send email to ?
Title: Re: Contact Page
Post by: Basie on August 22, 2008, 03:54:33 PM
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.
Title: Re: Contact Page
Post by: Adish - (F.L.A.M.E.R) on August 22, 2008, 04:55:39 PM
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..
Title: Re: Contact Page
Post by: MrLeN on November 06, 2008, 12:30:54 PM
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?
Title: Re: Contact Page
Post by: vbgamer45 on November 06, 2008, 09:53:21 PM
Check under Admin -> Server Settings and make sure your language is set to English and not english utf8
Title: Re: Contact Page
Post by: MrLeN on November 07, 2008, 01:25:19 AM
Ah -- Huh!

Now several other mods are working fine as well :D

Thanks!

I was about to start damaging stuff around me..

*deep breaths*...
Title: Re: Contact Page
Post by: Gorm on November 13, 2008, 02:54:22 PM
After I updated to 1.1.7 the Captcha-image does not show (se attached image). Any ideas why?
Title: Re: Contact Page
Post by: italo_anonimo on November 13, 2008, 04:50:18 PM
thanks for yhe mod

i'm can't view Captcha option into the form.... (smf 1.1.7)
Title: Re: Contact Page
Post by: vbgamer45 on November 15, 2008, 01:22:43 PM
For the last two posters can you provide a link to your forum.
Title: Re: Contact Page
Post by: Gorm on November 15, 2008, 01:49:26 PM
www.arkeologiforum.se
Title: Re: Contact Page
Post by: vbgamer45 on November 15, 2008, 04:26:12 PM
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.
Title: Re: Contact Page
Post by: Gorm on November 15, 2008, 05:57:47 PM
There was someting wrong with the latest language-files. I uploaded them again and it solved the problem! :)
Title: Re: Contact Page
Post by: Ravac on November 29, 2008, 02:23:52 AM
.....
Title: Re: Contact Page
Post by: foempspeedy on January 02, 2009, 10:25:28 PM
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

Title: Re: Contact Page
Post by: santanu on January 03, 2009, 04:31:39 AM
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
Title: Re: Contact Page
Post by: Kidsphoenixx on January 12, 2009, 10:36:52 PM
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
Title: Re: Contact Page
Post by: 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...
Title: Re: Contact Page
Post by: vbgamer45 on January 19, 2009, 08:21:24 PM
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.
Title: Re: Contact Page
Post by: Don Pepito on January 20, 2009, 06:40:52 AM
Is it possible...??
Title: Re: Contact Page
Post by: vbgamer45 on January 20, 2009, 09:53:12 PM
Possible to do the future not currently built into the mod.
Title: Re: Contact Page
Post by: gordonjr on February 04, 2009, 02:35:57 PM
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.
Title: Re: Contact Page
Post by: vbgamer45 on February 04, 2009, 11:01:21 PM
You would need to edit Themes/default/Contact.template.php
Title: Re: Contact Page
Post by: 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,
Title: Re: Contact Page
Post by: 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.
Title: Re: Contact Page
Post by: gordonjr on February 05, 2009, 08:57:34 AM
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
Title: Re: Contact Page
Post by: ApplianceJunk on February 05, 2009, 09:05:46 AM
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,
Title: Re: Contact Page
Post by: HR on February 06, 2009, 06:15:42 AM
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...
Title: Re: Contact Page
Post by: R.Bourne on February 28, 2009, 01:31:39 PM
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!
Title: Re: Contact Page
Post by: Owdy on May 02, 2009, 10:40:54 AM
Updates for 2.0 RC1?
Title: Re: Contact Page
Post by: candidosa2 on May 11, 2009, 10:47:42 PM
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&aacute;gina de contacto';
$txt['permissionhelp_view_contact'] = 'Permite que os membros para visualizar a p&aacute;gina dos contactos e enviar e-mail.';
$txt['cannot_view_contact'] = 'Voc&ecirc; n&atilde;o pode ver a p&aacute;gina contacto.';
$txt['smfcontact_name'] = 'Seu Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Corpo da Mensagem';
$txt['smfcontact_emailaddress'] = 'Endere&ccedil;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&ecirc; precisa digitar o seu nome.';
$txt['smfcontact_errsubject'] = 'Voc&ecirc; precisa inserir um assunto.';
$txt['smfcontact_errmessage'] = 'Voc&ecirc; precisar&aacute; digitar uma mensagem.';
$txt['smfcontact_erremail'] = 'Voc&ecirc; precisa digitar o seu endere&ccedil;o de email.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formul&aacute;rio para Contacto na p&aacute;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&aacute;gina de contacto';
$txt['permissionhelp_view_contact'] = 'Permite que os membros para visualizar a p&aacute;gina dos contactos e enviar e-mail.';
$txt['cannot_view_contact'] = 'Voc&ecirc; n&atilde;o pode ver a p&aacute;gina contacto.';
$txt['smfcontact_name'] = 'Seu Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Corpo da Mensagem';
$txt['smfcontact_emailaddress'] = 'Endere&ccedil;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&ecirc; precisa digitar o seu nome.';
$txt['smfcontact_errsubject'] = 'Voc&ecirc; precisa inserir um assunto.';
$txt['smfcontact_errmessage'] = 'Voc&ecirc; precisar&aacute; digitar uma mensagem.';
$txt['smfcontact_erremail'] = 'Voc&ecirc; precisa digitar o seu endere&ccedil;o de email.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formul&aacute;rio para Contacto na p&aacute;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&aacute;gina de contacto';
$txt['permissionhelp_view_contact'] = 'Permite que os membros para visualizar a p&aacute;gina dos contactos e enviar e-mail.';
$txt['cannot_view_contact'] = 'Voc&ecirc; n&atilde;o pode ver a p&aacute;gina contacto.';
$txt['smfcontact_name'] = 'Seu Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Corpo da Mensagem';
$txt['smfcontact_emailaddress'] = 'Endere&ccedil;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&ecirc; precisa digitar o seu nome.';
$txt['smfcontact_errsubject'] = 'Voc&ecirc; precisa inserir um assunto.';
$txt['smfcontact_errmessage'] = 'Voc&ecirc; precisar&aacute; digitar uma mensagem.';
$txt['smfcontact_erremail'] = 'Voc&ecirc; precisa digitar o seu endere&ccedil;o de email.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formul&aacute;rio para Contacto na p&aacute;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&aacute;gina de contacto';
$txt['permissionhelp_view_contact'] = 'Permite que os membros para visualizar a p&aacute;gina dos contactos e enviar e-mail.';
$txt['cannot_view_contact'] = 'Voc&ecirc; n&atilde;o pode ver a p&aacute;gina contacto.';
$txt['smfcontact_name'] = 'Seu Nome:';
$txt['smfcontact_subject'] = 'Assunto';
$txt['smfcontact_body'] = 'Corpo da Mensagem';
$txt['smfcontact_emailaddress'] = 'Endere&ccedil;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&ecirc; precisa digitar o seu nome.';
$txt['smfcontact_errsubject'] = 'Voc&ecirc; precisa inserir um assunto.';
$txt['smfcontact_errmessage'] = 'Voc&ecirc; precisar&aacute; digitar uma mensagem.';
$txt['smfcontact_erremail'] = 'Voc&ecirc; precisa digitar o seu endere&ccedil;o de email.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formul&aacute;rio para Contacto na p&aacute;gina ';
$txt['smfcontact_formname'] = "Npme: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_formmessage'] =  "Mensagem: \n";

// END Contact Page Text Strings
]]></add>
</operation>
</file>
Title: Re: Contact Page
Post by: chrishicks on July 25, 2009, 02:16:31 PM
Update for 1.1.10?
Title: Re: Contact Page
Post by: vbgamer45 on July 25, 2009, 02:32:14 PM
Should work fine for SMF 1.1.10
Title: Re: Contact Page
Post by: TurtleKicker on August 12, 2009, 02:39:49 PM
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?)
Title: Re: Contact Page
Post by: vbgamer45 on August 12, 2009, 08:53:41 PM
Nope I would stick with the other one.
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on August 22, 2009, 01:10:09 AM
New release!

2.0
+Supports SMF 2.0
+Adds IP of the form submitter in the email
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: oistarbwoy on August 31, 2009, 07:06:20 PM
is there a way to make the form send a pm instead?
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on August 31, 2009, 08:04:40 PM
You would need to edit contact.php and code to send a pm.
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: andrewjs18 on September 08, 2009, 08:28:06 PM
I'm not seeing the captcha in the contact plugin....what may be wrong?  I'm using SMF 2.0 rc 1.2
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on September 08, 2009, 09:29:35 PM
Using standard captcha? And do you have enabled for registration?
Admin's I do not think get captcha
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: oistarbwoy on September 18, 2009, 04:30:52 PM
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?
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on September 18, 2009, 07:37:19 PM
Somewhat requires some code you can check the function site on smf which details the sendpm function
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: MaryLouW on September 24, 2009, 04:09:58 AM
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
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on September 24, 2009, 08:26:24 AM
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
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: MaryLouW on September 24, 2009, 03:26:37 PM
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!!
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on September 24, 2009, 07:43:01 PM
Glad you got it working!
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: MaryLouW on September 24, 2009, 07:48:44 PM
Yeahhhh... me too!!!  And I love it that the bots can't send messages.   Great job on this one!!!
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: Guldstrand on September 25, 2009, 08:23:34 PM
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.)
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on September 25, 2009, 09:19:35 PM
Check your forum's error log for any errors that might have occured.
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: MaryLouW on September 25, 2009, 09:34:36 PM
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.

Title: Re: Contact Page now with SMF 2.0 Support!
Post by: gastan on October 20, 2009, 02:44:07 AM
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
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on October 20, 2009, 09:20:52 AM
You should be safe to uninstall it may fail on modifications.english.php since you have other mods installed.
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: gastan on October 20, 2009, 11:11:35 AM
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.
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on October 20, 2009, 08:10:43 PM
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
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: TheListener on October 22, 2009, 07:41:10 PM
Installed with no errors on the star wars theme.

Am surprised I didn't see this before.
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: vbgamer45 on October 22, 2009, 08:14:32 PM
For SMF 2.0.x should work out of the box with every theme
Title: Re: Contact Page now with SMF 2.0 Support!
Post by: TheListener on October 22, 2009, 08:17:08 PM
vbgamer45 in case you have misread my previous comment I was referring to the mod itself.
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 08, 2009, 09:12:34 PM
Updated to support SMF 2.0 RC2
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: Neol on November 18, 2009, 09:27:06 AM
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!!
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on November 18, 2009, 02:25:11 PM
What SMF version?
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: SN on December 02, 2009, 01:00:08 AM
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
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on December 02, 2009, 01:00:52 AM
Admin -> Permissions -> Guests
Show Contact Page
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: DirtRider on January 03, 2010, 05:03:40 AM
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
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: islam2hamy on January 08, 2010, 04:03:26 AM
how to add new filed??
like "reason of contact"
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: islam2hamy on January 08, 2010, 06:38:12 AM
ok, i have do it
but now i want to add "checkbox" how to make that ??
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: lrodri7418 on January 10, 2010, 05:53:57 PM
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??
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 10, 2010, 05:59:43 PM
You have to modify the index.template.php of your theme add a button/link to the contact page.
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: lrodri7418 on January 10, 2010, 06:41:41 PM
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
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: dkharp on January 11, 2010, 04:09:37 PM
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)

Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 11, 2010, 08:19:25 PM
For what SMF version?

FOR SMF 1.1.x you just edit the index.template.php of the theme
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: dkharp on January 11, 2010, 09:20:31 PM
thank you, I just got it.
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 11, 2010, 09:22:11 PM
Glad you were able to find and get working on how you want it to be.
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: dkharp on January 11, 2010, 10:12:42 PM
Thanks,

What I did was move it to the top right where the smf logo goes. Looks great!
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: Bugo on January 12, 2010, 10:32:57 AM
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";
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on January 12, 2010, 07:26:45 PM
Again thanks for the translation!
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: 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
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: ABCDiamond on February 15, 2010, 09:19:05 PM
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.

Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: rd on March 01, 2010, 08:32:23 PM
vbagmer, I love you man. You were the answer to my calls, thanks.

Works like a charm! For my guests.
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 01, 2010, 09:27:18 PM
Glad you enjoy the mods!
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: rd on March 01, 2010, 09:43:04 PM
I needed something like this for my site and you came through! Thanks a 100!
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: ccraciun on March 04, 2010, 05:43:15 AM
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... :)
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: vbgamer45 on March 04, 2010, 11:47:40 AM
Glad you got it!
Title: Re: Contact Page now with SMF 2.0 RC2 Support!
Post by: tonnybarros on March 07, 2010, 07:06:24 AM
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/
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 08, 2010, 07:11:53 PM
Updated for SMF 2.0 RC3!
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: Saxon044 on March 17, 2010, 10:34:32 AM
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?
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on March 17, 2010, 11:44:43 AM
Should be in themes/default/languages/modifications.english.php
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on April 03, 2010, 02:38:14 PM
For SMF 2.0 made the contact page form to use the curve style
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: 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.
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: Zidane5555 on April 10, 2010, 08:01:02 PM
Is there anyone who can answer my question ^^ ?  :-\
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: flapjack on April 10, 2010, 08:09:26 PM
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.
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: Zidane5555 on April 10, 2010, 08:21:06 PM
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
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: flapjack on April 10, 2010, 08:25:39 PM
my bad, I assumed you are not asking about Contact Page mod, my fault :)
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: Zidane5555 on April 11, 2010, 01:43:16 PM
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.
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on April 12, 2010, 10:46:20 AM
1 You have to it enabled for registration it picks up that captcha setting

2. It is the email found under Server Settings.
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: soulgeek on April 18, 2010, 12:30:06 PM
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
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: Raffoz on April 26, 2010, 11:32:01 PM
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 &egrave; stato inviato!';
$txt['smfcontact_messagesent_click'] = 'Il messaggio &egrave; 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
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: Raffoz 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... :)
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: aelmiger on May 20, 2010, 02:14:14 AM
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';
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 20, 2010, 11:59:39 AM
Thank you aelmiger for your Spanish translation!
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: aelmiger on May 21, 2010, 08:16:21 PM
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  ;)
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 21, 2010, 08:32:10 PM
Edit the Contact.template.php template and just put it above the form.
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: aelmiger on May 22, 2010, 02:15:28 PM
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
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: Liam. on May 22, 2010, 02:51:33 PM
Just wondering if this would ever be a feature in the future: Add name and configure your own extra forms from the Admin CP...
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on May 23, 2010, 08:56:19 AM
That would probably be the custom form Mod i think one is made already.
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: CommanderMadi on June 08, 2010, 10:47:59 AM
From where can I control the settings of that contact form?
Thanks for that mod by the way
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 08, 2010, 04:05:19 PM
There are no settings for this mod. Only one permission
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: MATTEK on June 08, 2010, 06:18:22 PM
Question before I install 

Where does the "Contact" button go once installed?
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 08, 2010, 06:42:39 PM
In the menu bar
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: 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?
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 11, 2010, 09:23:00 AM
You would need to modify the contact.php and contact.template.php to include the antispam code
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: Alpay on June 12, 2010, 07:49:30 AM
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";
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on June 12, 2010, 09:46:00 AM
Thanks for translation
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: 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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: DEEPSNUYB on July 10, 2010, 03:08:45 AM
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?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: SN on July 10, 2010, 08:06:49 AM
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?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 10, 2010, 10:32:43 AM
hmm You can try and see what happens
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: maihannijat on July 11, 2010, 06:38:05 AM
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
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 11, 2010, 10:47:07 AM
 maihannijat posted a new fix that should help
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: maihannijat on July 12, 2010, 12:02:44 AM
Yap solved.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on July 15, 2010, 03:28:04 AM
Where can i edit the contact page? I want to insert telephone numbers and addresses.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on July 15, 2010, 10:20:19 AM
Edit the contact.template.php found in themes/default/
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: SN on July 15, 2010, 12:09:02 PM
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
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on August 02, 2010, 02:48:37 AM
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?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 02, 2010, 02:54:33 PM
It is setup to use the email address under Server Settings the webmaster email. Check error log for any other details
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on August 03, 2010, 04:50:31 AM
In my error log nothing appears. Its really strange.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on August 06, 2010, 07:49:55 AM
I dont know php that well. is there anyone that can help me??
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on August 20, 2010, 05:31:00 AM
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";
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 20, 2010, 09:00:53 AM
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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on August 20, 2010, 11:16:49 AM
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&amp;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...
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 20, 2010, 11:18:23 AM
change it to $_REQUEST['address']
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on August 20, 2010, 11:25:14 AM
worked a dream... thanks...  ;D

any other added fields would be done in the same manner i presume..
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on August 20, 2010, 11:27:36 AM
Yup that is correct.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: unformatted_ on August 28, 2010, 03:57:56 AM
I'm receiving lots of spam emails. How can I add capta to contact page?
I'm using SMF2 RC3
thanks
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on August 28, 2010, 04:36:54 AM
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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: unformatted_ on September 01, 2010, 07:35:19 PM
you are right, thanks and sorry my question...
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: champ_007_bond on September 04, 2010, 01:16:32 PM
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!
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on September 10, 2010, 08:37:59 AM
Is there anyone that can help me to add my numbers on the contact page?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: TheListener on September 10, 2010, 08:41:43 AM
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?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on September 10, 2010, 09:41:35 AM
Cellphone number and office number
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on September 10, 2010, 09:45:24 AM
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.


Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on September 10, 2010, 10:14:11 AM
Ok but it looks bad. Take a look. ilnika.com/contact/
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on September 10, 2010, 12:48:32 PM
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%">


Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on September 13, 2010, 01:59:06 AM
Ok i dit it but there is something wrong. Maybe you would know.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on September 13, 2010, 06:16:01 AM
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">;
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on September 13, 2010, 07:39:39 AM
Hey im sorry.  Jus look at it again quick. The cellphone number is to far right
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: 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...
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: kalamar on September 23, 2010, 02:03:29 PM
I arranged my mail adress on server settings but still i can't get mails. Can you check please?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 23, 2010, 02:24:40 PM
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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: kalamar on September 23, 2010, 02:39:11 PM
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?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: 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
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: 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?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: kalamar on September 24, 2010, 10:55:20 AM
when clicking on error code it says " you need to enter your name" but i already entered my name on contact form.  :-\ :-\
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 24, 2010, 11:01:36 AM
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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: iPhoneDestek on September 25, 2010, 03:01:51 PM
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>   

Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 25, 2010, 03:04:30 PM
Thank you very much for the translation
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: Exterminator2006 on September 30, 2010, 03:05:37 AM
Where to edit that contact is not the webmaster if another user?

Thanks you :)

My Version  SMF 1.1.11
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: iPhoneDestek on September 30, 2010, 05:58:01 AM
hei,

new translation into German

http://www.simplemachines.org/community/index.php?topic=97782.msg2797140#msg2797140
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on September 30, 2010, 10:43:43 AM
Thanks for translation for German!
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: XanoKais on October 03, 2010, 04:01:57 PM
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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 03, 2010, 04:10:18 PM
What SMF Version?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: XanoKais on October 03, 2010, 04:13:55 PM
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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 03, 2010, 05:48:04 PM
Can you attach your contact.template.php would like to see what you did.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: XanoKais on October 03, 2010, 05:55:35 PM
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'])
                {
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: PraveerD on October 04, 2010, 10:02:42 AM
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
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on October 04, 2010, 10:09:08 AM
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..
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: PraveerD on October 04, 2010, 10:15:05 AM
Where do I have to place that file in my mobile theme? And yes I am using SMF 2 RC3
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on October 04, 2010, 10:18:04 AM
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' => '',
),
         
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: PraveerD on October 04, 2010, 10:22:23 AM
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?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on October 04, 2010, 10:26:35 AM
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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: PraveerD on October 04, 2010, 10:29:43 AM
So after installing it in the default theme, I just copy the contact2.template.php in my mobile theme folder.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on October 04, 2010, 10:30:07 AM
yes
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: PraveerD on October 04, 2010, 10:57:06 AM
Thanks a lot. Installed it successfully.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: deansmar on October 04, 2010, 11:17:01 AM
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...
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: PraveerD on October 04, 2010, 11:41:45 AM
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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: 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);
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: PraveerD on October 04, 2010, 12:03:10 PM
Thanks a lot once again.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: Exterminator2006 on October 04, 2010, 12:12:08 PM
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?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on October 04, 2010, 06:16:31 PM
Change

      sendmail($webmaster_email, $subject, $m,$email);


      sendmail('[email protected] ', $subject, $m,$email);

Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on November 23, 2010, 06:05:32 AM
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...
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on November 23, 2010, 06:07:07 AM
Is there a way to add a box where the user can imput his telephone number in the contact page.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on November 23, 2010, 09:43:04 AM
You would need to modify the template and the main source file to collect that information
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: NoFeaR / NFSMW on November 23, 2010, 09:49:51 AM
How is that done?
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on November 23, 2010, 09:53:07 AM
By editing the files adding the html and php code.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: henrik1782 on December 06, 2010, 09:25:30 AM
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>
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: Eyesman on January 10, 2011, 05:18:21 AM
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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: Eyesman on January 10, 2011, 08:24:57 AM
I have tried to uninstall it again and now it gives one more error!! (see attached)
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: Eyesman on January 10, 2011, 08:49:28 AM
Problem solved! I have uninstall all mods and it was removed.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: searchgr on April 03, 2011, 01:10:15 AM
It doesn't support the greek characters in a  "ISO-8859-1" forum.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: cyberdyne on April 05, 2011, 09:35:57 AM
Installed manually and working well.
Many thanks
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: vbgamer45 on April 05, 2011, 12:23:12 PM
Glad you have it working.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: GlitchPC on May 20, 2011, 11:40:30 PM
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 "&amp;".

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.
Title: Re: Contact Page 2.1 now with SMF 2.0 RC3 Support!
Post by: GlitchPC on May 23, 2011, 01:50:30 PM
It's been a few days...so, thought I'd bump this for a reply, please...
Title: Re: Contact Page 2.1.2 now with SMF 2.0 RC5 Support!
Post by: vbgamer45 on May 23, 2011, 09:16:08 PM
Updated

2.1.2
!Fixed some xhtml validation issues.
Title: Re: Contact Page 2.1.2 now with SMF 2.0 RC5 Support!
Post by: GlitchPC on May 24, 2011, 05:49:55 AM
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">
Title: Re: Contact Page 2.1.2 now with SMF 2.0 RC5 Support!
Post by: GlitchPC on May 27, 2011, 06:57:40 PM
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.
Title: Re: Contact Page 2.1.2 now with SMF 2.0 RC5 Support!
Post by: nukinfuts29 on June 03, 2011, 08:43:54 AM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 RC5 Support!
Post by: 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
Title: Re: Contact Page 3.0 now with SMF 2.0 RC5 Support!
Post by: nukinfuts29 on June 03, 2011, 03:34:26 PM
Thanks!
Title: Re: Contact Page 3.0 now with SMF 2.0 RC5 Support!
Post by: GlitchPC on June 04, 2011, 09:32:01 AM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 RC5 Support!
Post by: 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.
Title: Re: Contact Page 3.0 now with SMF 2.0 RC5 Support!
Post by: GlitchPC on June 05, 2011, 05:43:27 AM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 RC5 Support!
Post by: vbgamer45 on June 07, 2011, 09:33:55 AM
I need to know what changes need to be made to fix the xhtml issues that I can update the package.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Linda.V on June 19, 2011, 01:57:02 AM
Just installed this mod, great, thx vbgamer45
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on June 19, 2011, 02:07:26 AM
Glad you enjoy the mod!
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: olhippie on July 09, 2011, 07:13:53 PM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on July 09, 2011, 08:40:29 PM
It should add a tab to the default theme with a button called contact
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Qayyom Ashraf on July 16, 2011, 03:01:37 AM
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 ?
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Inti31 on August 03, 2011, 05:14:10 AM
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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Anpu on August 04, 2011, 01:18:14 PM
Awesome mod, ty!
I have a question though, I dont see Captcha in Contact form. Where am I making a mistake?
Thanks!
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: deansmar on August 05, 2011, 03:47:43 AM
if your logged in, you wont see it, only guests see the Captcha..
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: ApplianceJunk on September 16, 2011, 08:29:40 PM
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,
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on September 16, 2011, 08:41:33 PM
Check either modifications settings or features and options.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: ApplianceJunk on September 16, 2011, 09:01:48 PM
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!
Title: Re:Persian Contact Page 3.0 now with SMF 2.0 Support!
Post by: mrtarkhan on October 06, 2011, 05:48:13 PM
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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on October 06, 2011, 05:57:59 PM
Thanks again for translation
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: deansmar on November 24, 2011, 04:11:36 AM
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...
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on November 24, 2011, 01:45:03 PM
The sendmail function has a parameter to send as html just turn that on and it will work that way.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: deansmar on November 25, 2011, 04:52:30 AM
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)
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: rootuid on January 15, 2012, 04:44:21 PM
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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on January 15, 2012, 04:59:51 PM
That code does not look like it is from contact page system but another mod.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: bigjoe11a on January 31, 2012, 09:32:41 AM
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.

Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on January 31, 2012, 10:11:40 AM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: mhbell on February 02, 2012, 02:06:24 PM
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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vanGils on February 05, 2012, 10:55:53 AM
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.  ;)
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on February 05, 2012, 12:21:52 PM
Capcha is enabled if you have for registration

You are free to translate the mod.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vanGils on February 05, 2012, 12:34:00 PM
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?
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vanGils on February 05, 2012, 02:06:55 PM
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?

Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on February 05, 2012, 02:28:00 PM
Under Admin -> Permissions you have to setup permissions for each group
Title: Contact button for contact page 3.0 only showing on admin panel
Post by: mhbell on February 06, 2012, 06:57:19 PM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on February 06, 2012, 07:10:57 PM
Under Admin -> Permissions you have to setup permissions for each group
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: mhbell on February 06, 2012, 07:29:34 PM
Thank You Very Much. That did the trick. Great Mod and just what I needed.
Thanks Again
:)
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on February 06, 2012, 09:30:42 PM
Glad to help
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Inti31 on February 07, 2012, 03:00:00 AM
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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on February 07, 2012, 10:09:50 AM
Thanks for the translation.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Drover on March 11, 2012, 05:50:59 PM
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?
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Dylert on March 24, 2012, 07:17:35 PM
Hello! I want to translate this mod to Norwegian. Which file do I have to modify??

Thanks in advance!
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on March 24, 2012, 07:42:26 PM
Try themes/default/languages/modifications.english.php for contact page
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Jeff B on March 25, 2012, 06:24:03 PM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on March 25, 2012, 10:50:13 PM
Are you using normal SMF captcha or recaptcha?
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Jeff B on March 25, 2012, 11:10:10 PM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: phlexx on May 25, 2012, 01:02:38 PM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: phlexx on May 25, 2012, 01:11:59 PM
I use smf 2.0.2. Any help?
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Burke ♞ Knight on July 09, 2012, 11:34:35 PM
Installed on my forum, yet when try to test it, do not receive the email.
Any ideas?
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: TheListener on July 09, 2012, 11:48:48 PM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Shambles on July 10, 2012, 04:54:17 AM
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)
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: 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?


Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Dylert on July 30, 2012, 03:33:09 PM
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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on July 30, 2012, 04:50:51 PM
Thank you so much for the translation!
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: BaghdadGhost on August 16, 2012, 07:11:17 AM
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?
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on August 16, 2012, 10:41:07 PM
All it does is point to action=contact so easy to make a sub menu or link it from another page.
Title: Re: Contact Page now with SMF 2.0 RC3 Support!
Post by: morecambe on August 20, 2012, 09:58:22 AM
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.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on August 20, 2012, 10:21:02 AM
Install reCAPTCHA mod this mod also supports it.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: deansmar on August 20, 2012, 10:22:23 AM
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...
Title: Re: Contact Page
Post by: drroot on August 25, 2012, 03:17:06 AM
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.

Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Costa on January 09, 2013, 02:22:09 PM
Hi guys

It's possible to add other fields in contact page?
If so, how I do that?

Thanks in advance.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on January 09, 2013, 02:36:20 PM
Yes you could edit the template and the sources file just requires some php knowledge to make changes.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: 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?

Ty
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Costa on January 17, 2013, 02:17:37 PM
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? :|
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on January 17, 2013, 02:25:32 PM
You would have to look at the Sources/Contact.php file and then duplicate code such as the email address or comments code
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: 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.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on January 17, 2013, 06:33:08 PM
Looks great! Great Tutorial!
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Costa on January 17, 2013, 06:41:33 PM
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&#225;gina de contacto';
$txt['permissionhelp_view_contact'] = 'Permite aos membros ver a p&#225;gina de contacto e enviar o e-mail.';
$txt['cannot_view_contact'] = 'N&#227;o pode ver a p&#225;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&#243;rum.';
$txt['smfcontact_errname'] = '&#201; necess&#225;rio preencher o nome.';
$txt['smfcontact_errsubject'] = '&#201; necess&#225;rio preencher o assunto.';
$txt['smfcontact_errmessage'] = '&#201; necess&#225;rio escrever a mensagem.';
$txt['smfcontact_erremail'] = '&#201; necess&#225;rio preencher o E-mail.';
$txt['smfcontact_titlesent'] = ' - Mensagem enviada.';
$txt['smfcontact_form'] = 'Formul&#225;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?
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on January 17, 2013, 06:42:35 PM
Go ahead you can repost it anywhere.
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Costa on January 17, 2013, 07:00:26 PM
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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: DMR123 on February 16, 2013, 03:18:44 PM
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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on February 16, 2013, 05:41:22 PM
You could but would require some work such as renaming the actions for the second called contact2 etc
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: johnpaul2k2 on February 28, 2013, 05:23:33 AM
i will love to edit the indec "contact" and add something like Contact Us ??
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: vbgamer45 on February 28, 2013, 12:10:44 PM
The text you can edit by editing themes/default/languages/modificaitons.english.php
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: johnpaul2k2 on February 28, 2013, 12:53:10 PM
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
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: Costa on February 28, 2013, 01:07:39 PM
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
Title: Re: Contact Page 3.1 now with SMF 2.0 Support!
Post by: SMFHacks.com Team on April 01, 2013, 10:47:33 PM
New update posted
3.1
+Minor style tweaks for display for SMF 2.0
Title: Re: Contact Page 3.1 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.1 now with SMF 2.0 Support!
Post by: DasVON on April 02, 2013, 01:39:13 AM
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 ?
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: SMFHacks.com Team on April 02, 2013, 11:14:18 AM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: searchgr on April 02, 2013, 03:09:23 PM
Perfect! Thank you very much.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on April 02, 2013, 03:12:36 PM
Quote from: searchgr on April 02, 2013, 03:09:23 PM
Perfect! Thank you very much.
Glad to help.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: DasVON on April 02, 2013, 08:25:46 PM
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..

???
Title: Re: Contact Page 3.0 now with SMF 2.0 Support!
Post by: johnpaul2k2 on April 05, 2013, 07:52:54 AM
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 :(
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Costa on April 09, 2013, 11:53:44 PM
john, what are you trying to add?
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: johnpaul2k2 on May 06, 2013, 09:44:36 AM
1.adding more details to my contact page??


2. how can i disable the verification question on the same contact page??
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: cotty on May 19, 2013, 11:31:52 PM
Where abouts do I add the email for it to send to when I manually install it??
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on May 19, 2013, 11:46:24 PM
It should add a text field under features and options
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: TheListener 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?
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: cotty on May 19, 2013, 11:57:26 PM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on May 20, 2013, 08:45:32 AM
Check your forum's error log might be a clue or some thing on your server side is rejecting the email from going though.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: cotty on May 23, 2013, 07:42:07 AM
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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Shambles on May 23, 2013, 08:39:36 AM
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

Code (Find) Select
// For send mail function
require_once($sourcedir . '/Subs-Post.php');


Code (Add After) Select


$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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: cotty on May 23, 2013, 10:21:22 PM
Thanks Shambles! Will see how it goes!
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Burke ♞ Knight on May 26, 2013, 07:21:58 PM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on May 26, 2013, 07:48:59 PM
Does your site send any email to that address using SMF? Contact page uses the sendemail function in SMF
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Burke ♞ Knight on May 26, 2013, 08:01:06 PM
No. Hmmm.... How can I get the site to email without using sendmail?
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on May 26, 2013, 10:24:34 PM
Not sure for general email issues post in the SMF support forums
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: lrodri7418 on October 05, 2013, 09:10:05 AM
Hi, How do I update the email address on this mod?  thankx
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on October 05, 2013, 09:14:26 AM
Should be in Edit Features and Options the contact field.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Hondo on January 03, 2014, 04:29:30 PM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Mstcool on January 06, 2014, 11:01:08 PM
Just installed this mod and everytime I click the contact button it says: "Unable to load the 'main' template."
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Mstcool on January 11, 2014, 08:48:37 PM
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. :)
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on January 13, 2014, 11:39:21 AM
Do the manual install instructions by uploading the package to
http://www.smfhacks.com/smf-package-parser.html
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: cortez on January 31, 2014, 11:53:35 AM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Nicholaus on January 31, 2014, 12:27:25 PM
Nicely done!
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on January 31, 2014, 03:09:37 PM
Thanks
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: GamePersia on February 02, 2014, 10:17:02 PM
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 !
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: GamePersia on February 04, 2014, 07:31:17 AM
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.... :)
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on February 04, 2014, 08:50:12 AM
Not sure ask in the mods topic.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: GamePersia on February 06, 2014, 07:59:00 AM
How to remove : "Powered by Contact Page",..From that page ?... :'(
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: TheListener on February 06, 2014, 05:26:03 PM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on February 06, 2014, 05:45:20 PM
Link to order copyright removal
http://www.smfhacks.com/copyright_removal.php
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: WCFA on February 16, 2014, 10:50:14 PM
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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on February 18, 2014, 12:25:07 PM
1. Default SMF captcha should work fine if you use a custom captcha that would depend on how the mod did it.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: ApplianceJunk on July 12, 2014, 07:48:32 PM
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!

Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on July 12, 2014, 11:08:43 PM
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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: ApplianceJunk on July 12, 2014, 11:12:52 PM
Just checked my package manager and see I'm currently using Contact Page 3.0
Guess it's time for me to update. :)

Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on July 12, 2014, 11:18:46 PM
Yeah just i don't think I changed that behavior for reference that code is in Sources/Contact2.php
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: ApplianceJunk on July 12, 2014, 11:28:58 PM
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!
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: ApplianceJunk on July 12, 2014, 11:42:40 PM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on July 13, 2014, 12:25:42 AM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: ApplianceJunk on July 13, 2014, 12:29:33 AM
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. :)
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: ikeveles on August 28, 2014, 04:03:24 PM
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...
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: 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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: ikeveles on August 28, 2014, 05:59:44 PM
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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: 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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: ikeveles on August 28, 2014, 06:53:05 PM
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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: ikeveles on August 28, 2014, 07:18:31 PM
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?
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on August 28, 2014, 11:12:31 PM
You need to copy the text added to modifications.english.php to modifications.yourlanguage.php in the languages folder
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: minico on September 29, 2014, 09:06:16 PM
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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on September 29, 2014, 09:43:42 PM
Contact2.template.php in the themes/default folder
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: minico on September 29, 2014, 09:50:08 PM
Thanks VBGamer45!
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on September 29, 2014, 11:21:16 PM
Glad to help
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: minico on October 13, 2014, 03:18:44 PM
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!
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on October 13, 2014, 03:40:36 PM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: minico on October 13, 2014, 04:16:24 PM
Thanks once again vbgamer45!  It was in modifications.english.php!
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on October 13, 2014, 04:23:37 PM
Glad to help
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Burke ♞ Knight on October 13, 2014, 04:34:21 PM
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)

Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on October 13, 2014, 04:40:24 PM
I like that graphic!
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Burke ♞ Knight on October 13, 2014, 05:01:02 PM
I have the Likes system on my site, and just grabbed a screenshot of a post I had liked....LOL
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on October 13, 2014, 05:07:06 PM
Pretty neat! Should start that trend.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: DarkAngel612 on February 27, 2015, 02:14:42 AM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on February 27, 2015, 11:21:55 AM
Are you using standard captcha or a modified version?
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: OFRD_GRL on May 04, 2015, 09:22:03 PM
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 :-)
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: 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
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: OFRD_GRL on May 04, 2015, 10:02:08 PM
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 :-)
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: dkharp on May 18, 2015, 12:57:32 PM
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?
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on May 18, 2015, 01:15:43 PM
I believe there is a permission you need to setup for each membergroup
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: villasg on June 05, 2015, 07:46:44 AM
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>
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on June 05, 2015, 09:24:34 AM
Thanks for the translation.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: shinglis on June 15, 2015, 11:35:37 AM
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  ???
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: 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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: shinglis on June 16, 2015, 12:32:01 AM
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 ?
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: Mr. Jinx on September 09, 2015, 11:42:25 AM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on September 09, 2015, 11:52:02 AM
Possible but would need to be modified as of right now that feature is not included.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: DarkAngel612 on September 09, 2015, 04:26:03 PM
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.
Title: Re: Contact Page 3.2 now with SMF 2.0 Support!
Post by: vbgamer45 on September 10, 2015, 10:59:29 AM
I will revisit this mod sometime soon and see what i can improve.
Title: Re: Contact Page
Post by: d3vcho on January 08, 2016, 11:22:57 AM
I've translated this Mod to spanish_es due to an user request. If you want...
Title: Re: Contact Page
Post by: vbgamer45 on January 08, 2016, 11:27:32 AM
Thanks for the translation!
Title: Re: Contact Page
Post by: 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?
Title: Re: Contact Page
Post by: DarkAngel612 on August 09, 2016, 06:41:34 PM
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.
Title: Re: Contact Page
Post by: badon on August 10, 2016, 03:50:17 PM
I think it was some temporary problem with simplemachines.org, because it works now. Thanks DarkAngel612.
Title: Re: Contact Page
Post by: vbgamer45 on August 10, 2016, 04:26:03 PM
Glad it works now.
Title: Re: Contact Page
Post by: DarkAngel612 on August 10, 2016, 04:35:04 PM
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
Title: Re: Contact Page
Post by: 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?

Title: Re: Contact Page
Post by: gorbi on April 23, 2017, 01:22:01 PM
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
Title: Re: Contact Page
Post by: vbgamer45 on April 23, 2017, 01:35:12 PM
Will do some testing.
Title: Re: Contact Page
Post by: Tonyvic on April 24, 2017, 03:58:38 AM
Quote from: vbgamer45 on April 23, 2017, 01:35:12 PM
Will do some testing.
Many thanks. :)
Title: Re: Contact Page
Post by: gorbi on April 24, 2017, 02:27:19 PM
Quote from: Tonyvic on April 24, 2017, 03:58:38 AM
Quote from: vbgamer45 on April 23, 2017, 01:35:12 PM
Will do some testing.
Many thanks. :)
+1
Title: Re: Contact Page
Post by: SMFHacks.com Team on April 24, 2017, 05:08:53 PM
New update and bug fix for reCAPTCHA!!!!


4.0
Now supports the latest version of the reCAPTCHA mod when guests are submitting contact forms.
Title: Re: Contact Page
Post by: Tonyvic on April 24, 2017, 06:36:48 PM
Thank you so much for the fast response and fix, works great now. :)
Title: Re: Contact Page
Post by: vbgamer45 on April 24, 2017, 06:46:05 PM
Glad to help
Title: Re: Contact Page
Post by: Ilkharnos on December 15, 2017, 09:35:24 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on December 15, 2017, 10:45:25 AM
Could be going to junk/bulk folder.

Check your sites error log as well.
Title: Re: Contact Page
Post by: Ilkharnos on December 15, 2017, 01:18:30 PM
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
Title: Re: Contact Page
Post by: vbgamer45 on December 15, 2017, 01:49:55 PM
You  would need to contact your host they are disabling the sending of email.
Title: Re: Contact Page
Post by: fanciboy4 on December 15, 2017, 05:33:37 PM
I migrated from my host, and this mod stopped working.
Title: Re: Contact Page
Post by: vbgamer45 on December 15, 2017, 05:33:55 PM
How so
Title: Re: Contact Page
Post by: fanciboy4 on December 15, 2017, 05:56:01 PM
I can't find any mail sent to my email box..

It confirms sent, I don't know why.
Title: Re: Contact Page
Post by: vbgamer45 on December 15, 2017, 06:22:28 PM
Could be going to junk/bulk folder.

Check your sites error log as well.
Title: Re: Contact Page
Post by: Ilkharnos on December 18, 2017, 04:51:01 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on December 18, 2017, 09:09:33 AM
Glad you have it working.
Title: Re: Contact Page
Post by: njtweb on May 09, 2018, 09:02:34 AM
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.
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: alexetgus on May 10, 2018, 04:33:24 AM
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']. '">

Title: Re: Contact Page
Post by: njtweb on May 10, 2018, 07:38:08 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on May 10, 2018, 09:36:49 AM
Do you get other emails? from your forum? Anything in the error logs?
Title: Re: Contact Page
Post by: njtweb on May 10, 2018, 01:37:11 PM
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?
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: njtweb on May 10, 2018, 01:43:41 PM
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.
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: njtweb on May 10, 2018, 02:40:39 PM
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.
Title: Re: Contact Page
Post by: vbgamer45 on May 10, 2018, 03:13:27 PM
Glad you have it working.
Title: Re: Contact Page
Post by: njtweb on May 22, 2018, 11:23:19 AM
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
Title: Re: Contact Page
Post by: vbgamer45 on May 22, 2018, 11:35:14 AM
No, Probably not till SMF 2.1
Title: Re: Contact Page
Post by: Mick. on August 21, 2018, 10:06:33 AM
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
Title: Re: Contact Page
Post by: vbgamer45 on August 21, 2018, 11:36:23 AM
What version of the recaptcha mod are you using?
Title: Re: Contact Page
Post by: Mick. on August 21, 2018, 11:39:34 AM
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
Title: Re: Contact Page
Post by: Mick. on August 21, 2018, 01:16:54 PM
@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
Title: Re: Contact Page
Post by: 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.
Title: Re: Contact Page
Post by: Mick. on August 21, 2018, 01:23:50 PM
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.
Title: Re: Contact Page
Post by: SMFHacks.com Team on August 21, 2018, 02:54:42 PM
5.0
!Fixed to work with latest version of reCAPTCHA mod
Title: Re: Contact Page
Post by: Mick. on August 21, 2018, 03:06:18 PM
Awesome bro. The new update fixed the issue  :P Rock on!
Title: Re: Contact Page
Post by: vbgamer45 on August 21, 2018, 03:13:24 PM
Glad to help
Title: Re: Contact Page
Post by: Mick. on August 21, 2018, 07:01:00 PM
Made it responsive too ;) https://www.idesignsmf.com/index.php?action=contact  Got rid of that old table and it's all css now.
Title: Re: Contact Page
Post by: vbgamer45 on August 21, 2018, 08:38:55 PM
Nice, that's black magic to me. I think of grids in my mind.
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: njtweb on August 22, 2018, 01:11:33 PM
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.
Title: Re: Contact Page
Post by: vbgamer45 on August 22, 2018, 01:14:31 PM
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.
Title: Re: Contact Page
Post by: SMFHacks.com Team on January 23, 2019, 03:35:14 PM
Update

5.0.1
!Fixed email sent in SMF 2.0.x to include message-id
Title: Re: Contact Page
Post by: SMFHacks.com Team on March 05, 2019, 08:52:57 PM
Update!

5.0.1a
+Added support for SMF 2.1.x
Title: Re: Contact Page
Post by: vbgamer45 on March 05, 2019, 09:02:35 PM
Cool fact this mod still installs for SMF 1.0.x which was released in 2004 and still works with every page release.
Title: Re: Contact Page
Post by: Seyit replikacep.com on April 29, 2019, 03:20:46 PM
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
Title: Re: Contact Page
Post by: vbgamer45 on April 29, 2019, 09:19:08 PM
what language
Title: Re: Contact Page
Post by: Seyit replikacep.com on April 30, 2019, 09:09:49 AM
Quote from: vbgamer45 on April 29, 2019, 09:19:08 PM
what language

Turkish    :)
Title: Re: Contact Page
Post by: Biology Forums on September 03, 2019, 10:53:34 AM
Where are the settings located for this mod? All I could find was the custom email address.
Title: Re: Contact Page
Post by: vbgamer45 on September 03, 2019, 10:55:19 AM
That is the only setting for this mod.
Title: Re: Contact Page
Post by: DarkAngel612 on September 03, 2019, 02:45:42 PM
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.
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: DarkAngel612 on September 03, 2019, 06:15:36 PM
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.
Title: Re: Contact Page
Post by: vbgamer45 on September 03, 2019, 06:24:16 PM
This one does have an email field.
Along with name, subject, and message
Title: Re: Contact Page
Post by: 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.
Title: Re: Contact Page
Post by: vbgamer45 on September 03, 2019, 06:35:44 PM
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.
Title: Re: Contact Page
Post by: DarkAngel612 on September 03, 2019, 06:52:52 PM
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
Title: Re: Contact Page
Post by: Sir Osis of Liver on December 10, 2019, 04:32:41 PM
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>';


Title: Re: Contact Page
Post by: vbgamer45 on December 10, 2019, 04:39:36 PM
Strange I can't see why it would be missing that code looks ok.
Title: Re: Contact Page
Post by: Sir Osis of Liver on December 10, 2019, 04:43:36 PM
http://www.thekrashsite.com/smf20/index.php?action=contact
Title: Re: Contact Page
Post by: vbgamer45 on December 10, 2019, 04:46:09 PM
Looks like not part of SMF 2.0.x no a big deal for me but thanks for pointing it out.
Title: Re: Contact Page
Post by: Sir Osis of Liver on December 10, 2019, 04:49:55 PM
But why doesn't it display?  Nothing wrong with the code, it's just basic html.
Title: Re: Contact Page
Post by: vbgamer45 on December 10, 2019, 04:52:03 PM
I think I have two different conditionals based on different copyright text since it changed and some part.
Title: Re: Contact Page
Post by: Sir Osis of Liver on December 10, 2019, 04:59:00 PM
Ok, there's one copyright in function template_main() and different one in function template_send(), it's displaying the first one.
Title: Re: Contact Page
Post by: petewadey on February 15, 2020, 06:57:58 AM
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
Title: Re: Contact Page
Post by: vbgamer45 on February 15, 2020, 08:14:09 AM
You can.
Title: Re: Contact Page
Post by: petewadey on February 15, 2020, 08:26:41 AM
I know this is going off topic, but can old versions of any mod be deleted? I just like to keep things tidy. Thanks
Title: Re: Contact Page
Post by: vbgamer45 on February 15, 2020, 08:38:24 AM
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.
Title: Re: Contact Page
Post by: petewadey on February 15, 2020, 08:48:08 AM
So, for instance, I've just installed Pretty url 2.2, and 1.1.4 needs to stay in my Package manager?
Title: Re: Contact Page
Post by: vbgamer45 on February 15, 2020, 09:05:59 AM
Yes if still installed.
Title: Re: Contact Page
Post by: gorbi on June 29, 2020, 07:25:28 AM
How to make  responsive design mod for view on phone?
Title: Re: Contact Page
Post by: vbgamer45 on June 29, 2020, 07:59:48 AM
That, I don't' know not good with css I think someone posted a version before in this topic somewhere.
Title: Re: Contact Page
Post by: gorbi on June 29, 2020, 10:31:54 AM
Which file with css need to be watched?
Title: Re: Contact Page
Post by: vbgamer45 on June 29, 2020, 10:41:22 AM
Not sure. my guess index.css but I am not a designer.
Title: Re: Contact Page
Post by: gorbi on June 29, 2020, 11:05:39 AM
No not this file
Title: Re: Contact Page
Post by: vbgamer45 on June 29, 2020, 11:47:50 AM
Contact2.template.php is the mods file itself.
Title: Re: Contact Page
Post by: gorbi on June 29, 2020, 12:03:01 PM
Thanks!!!
Title: Re: Contact Page
Post by: Gianluigi on August 21, 2021, 10:15:48 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on August 21, 2021, 10:44:38 AM
It should if you are using 2.0+
Title: Re: Contact Page
Post by: Gianluigi on August 21, 2021, 06:23:05 PM
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.
Title: Re: Contact Page
Post by: vbgamer45 on August 21, 2021, 06:46:07 PM
hmm i would have to test it unsure
Title: Re: Contact Page
Post by: shadav on August 21, 2021, 07:30:55 PM
Quote from: Gianluigi on August 21, 2021, 06:23:05 PM
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.
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)
Title: Re: Contact Page
Post by: vbgamer45 on August 21, 2021, 08:12:01 PM
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
Title: Re: Contact Page
Post by: Gianluigi on August 24, 2021, 07:05:31 PM
Thank you for updating the modification.
Is it possible for hCaptcha to be displayed in the form for regular registered members as well?
Title: Re: Contact Page
Post by: vbgamer45 on August 24, 2021, 07:56:01 PM
No not currently. The mod doesn't show verification for registered members.
Title: Re: Contact Page
Post by: landyvlad on August 24, 2021, 08:44:32 PM
Does this mod simply use the contact form to send an email to a nominated address?
Title: Re: Contact Page
Post by: vbgamer45 on August 24, 2021, 08:54:02 PM
It sends to address on file under settings for contact mod.
Title: Re: Contact Page
Post by: landyvlad on August 29, 2021, 10:31:14 PM
ta
Title: Re: Contact Page
Post by: vbgamer45 on August 29, 2021, 10:42:59 PM
Did you need something else?
Title: Re: Contact Page
Post by: 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
Title: Re: Contact Page
Post by: landyvlad on September 07, 2021, 03:57:38 AM
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
 
Title: Re: Contact Page
Post by: vbgamer45 on September 07, 2021, 04:01:55 AM
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.
Title: Re: Contact Page
Post by: Shades. on September 07, 2021, 10:33:38 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on September 07, 2021, 11:30:16 AM
Will need to test with built in recaptcha in 2.1 probably needs to be updated for that
Title: Re: Contact Page
Post by: landyvlad on September 08, 2021, 03:36:13 AM
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?

 
Title: Re: Contact Page
Post by: vbgamer45 on September 08, 2021, 07:23:30 AM
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.
Title: Re: Contact Page
Post by: Shades. on September 15, 2021, 10:07:01 PM
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
Title: Re: Contact Page
Post by: vbgamer45 on September 15, 2021, 10:15:36 PM
That's odd from should always be set.
Can you try again? Did you change the form at all?
Title: Re: Contact Page
Post by: Shades. on September 15, 2021, 10:19:57 PM
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! ;)
Title: Re: Contact Page
Post by: Shades. on September 15, 2021, 10:31:49 PM
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.
Title: Re: Contact Page
Post by: vbgamer45 on September 15, 2021, 11:06:03 PM
Odd not getting in on my board.I can add a check for it but that field should also be there on form submission...
Title: Re: Contact Page
Post by: gangmusic on September 17, 2021, 02:02:52 PM
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)
Title: Re: Contact Page
Post by: vbgamer45 on September 17, 2021, 02:14:15 PM
Make sure Contact2.template.php OR Contact2.1.template.php

is in your themes/default folder
Title: Re: Contact Page
Post by: rcane on December 05, 2021, 02:38:11 PM
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).
Title: Re: Contact Page
Post by: Shades. on December 05, 2021, 06:51:01 PM
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
Title: Re: Contact Page
Post by: vbgamer45 on December 05, 2021, 11:19:43 PM
2. yes, would require duplicate the files then changing the actions to point another action like form1
Title: Re: Contact Page
Post by: rcane on December 07, 2021, 10:47:55 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on December 07, 2021, 10:57:04 AM
Yes that would work. Its not that bad.
Title: Re: Contact Page
Post by: rcane on December 07, 2021, 11:06:07 AM
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 :)
Title: Re: Contact Page
Post by: vbgamer45 on December 07, 2021, 11:09:11 AM
3 file edits.
Title: Re: Contact Page
Post by: rcane on December 07, 2021, 11:14:54 AM
Quote from: vbgamer45 on December 07, 2021, 11:09:11 AM3 file edits.

Mind if I send you a PM?
Title: Re: Contact Page
Post by: vbgamer45 on December 07, 2021, 11:25:50 AM
Prefer not time limited.
Title: Re: Contact Page
Post by: rcane on December 07, 2021, 11:31:04 AM
Quote from: vbgamer45 on December 07, 2021, 11:25:50 AMPrefer not time limited.

Oops.  just delete it. :)
Title: Re: Contact Page
Post by: vbgamer45 on December 08, 2021, 11:36:37 AM
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'));


Title: Re: Contact Page
Post by: rcane on December 09, 2021, 01:58:08 PM
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.
Title: Re: Contact Page
Post by: Jotade29 on December 18, 2021, 12:51:19 AM
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.
Title: Re: Contact Page
Post by: Shades. on January 04, 2022, 11:05:30 PM
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
Title: Re: Contact Page
Post by: Shades. on January 11, 2022, 10:22:44 AM
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. ???
Title: Re: Contact Page
Post by: landyvlad on February 09, 2022, 07:35:26 PM
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?
Title: Re: Contact Page
Post by: Shades. on February 09, 2022, 07:38:59 PM
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:)
Title: Re: Contact Page
Post by: vbgamer45 on February 10, 2022, 11:45:29 AM
Yup works good on 2.1 have marked the mod as such.
Title: Re: Contact Page
Post by: Shades. on March 11, 2022, 02:27:15 PM
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
Title: Re: Contact Page
Post by: Shades. on March 21, 2022, 10:15:01 PM
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
Title: Re: Contact Page
Post by: Matthias on March 24, 2022, 07:05:07 PM
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.
Title: Re: Contact Page
Post by: vbgamer45 on March 26, 2022, 09:00:02 PM
7.0
!Fixes for undefined errors and better recaptcha checking that it is installed.
Title: Re: Contact Page
Post by: Shades. on April 10, 2022, 05:10:40 AM
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.
Title: Re: Contact Page
Post by: Doug Heffernan on April 10, 2022, 09:17:56 AM
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.
Title: Re: Contact Page
Post by: Shades. on April 10, 2022, 09:22:25 AM
Quote from: Doug Heffernan on April 10, 2022, 09:17:56 AM
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.
This one don't have that option or I would have! ;)
Title: Re: Contact Page
Post by: Doug Heffernan on April 10, 2022, 09:27:41 AM
Quote from: Shades. on April 10, 2022, 09:22:25 AM
Quote from: Doug Heffernan on April 10, 2022, 09:17:56 AM
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.
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.
Title: Re: Contact Page
Post by: Shades. on April 10, 2022, 09:35:05 AM
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. ;)
Title: Re: Contact Page
Post by: Shades. on April 11, 2022, 01:57:13 PM
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 
Title: Re: Contact Page
Post by: Kindred on April 11, 2022, 05:17:31 PM
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
Title: Re: Contact Page
Post by: Doug Heffernan on April 11, 2022, 05:31:49 PM
Quote from: Kindred on April 11, 2022, 05:17:31 PM
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.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?
Title: Re: Contact Page
Post by: Arantor on April 11, 2022, 05:34:17 PM
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.
Title: Re: Contact Page
Post by: Doug Heffernan on April 11, 2022, 05:45:21 PM
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. 



Title: Re: Contact Page
Post by: Arantor on April 11, 2022, 05:52:50 PM
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.
Title: Re: Contact Page
Post by: Kindred on April 11, 2022, 06:00:13 PM
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
Title: Re: Contact Page
Post by: Doug Heffernan on April 11, 2022, 06:04:00 PM
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.
Title: Re: Contact Page
Post by: GL700Wing on April 18, 2022, 12:40:56 AM
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 ...
Title: Re: Contact Page
Post by: Matthias on April 27, 2022, 06:43:30 AM
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
Title: Re: Contact Page
Post by: dbh on May 09, 2022, 04:01:47 PM
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
Title: Re: Contact Page
Post by: vbgamer45 on May 09, 2022, 05:50:56 PM
Thanks! Added german and dutch translations.
Title: Re: Contact Page
Post by: Shades. on May 09, 2022, 09:01:18 PM
Quote from: Kindred on April 11, 2022, 05:17:31 PM
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
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!) ;)
Title: Re: Contact Page
Post by: Sebastiii on May 10, 2022, 02:52:41 AM
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>
Title: Re: Contact Page
Post by: vbgamer45 on May 10, 2022, 08:18:53 AM
Thanks added the French translation as well.
Title: Re: Contact Page
Post by: dbh on May 10, 2022, 12:37:39 PM
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
Title: Re: Contact Page
Post by: Matthias on May 14, 2022, 06:37:08 PM
@vbgamer45
Maybe crowdin is a good option for the translations for your free mods...

Title: Re: Contact Page
Post by: Max22 on May 15, 2022, 09:26:11 AM
@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>
Title: Re: Contact Page
Post by: vbgamer45 on May 15, 2022, 12:23:01 PM
Added thanks.
Title: Re: Contact Page
Post by: Shades. on May 18, 2022, 12:28:20 PM
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
Title: Re: Contact Page
Post by: vbgamer45 on May 18, 2022, 01:38:03 PM
This has been fixed.
Title: Re: Contact Page
Post by: peteruoi on October 22, 2022, 12:09:35 PM
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!
Title: Re: Contact Page
Post by: vbgamer45 on October 22, 2022, 12:28:13 PM
Check permissions for guests that they have the view contact page for guests.
Title: Re: Contact Page
Post by: vbgamer45 on March 29, 2023, 06:13:18 PM
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.
Title: Re: Contact Page
Post by: Panoulis64 on June 10, 2023, 03:09:48 AM
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?
Title: Re: Contact Page
Post by: vbgamer45 on June 11, 2023, 11:04:00 AM
Did you give the guest group the View Contact Page permission?
Title: Re: Contact Page
Post by: Mightymax44 on June 24, 2023, 09:41:56 AM
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 ???
Title: Re: Contact Page
Post by: vbgamer45 on June 24, 2023, 10:09:34 AM
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
Title: Re: Contact Page
Post by: Mightymax44 on June 24, 2023, 12:44:33 PM
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.
Title: Re: Contact Page
Post by: vbgamer45 on June 24, 2023, 12:46:12 PM
I would check your mail logs and forum error logs.
Title: Re: Contact Page
Post by: Mightymax44 on June 24, 2023, 01:39:19 PM
on forum nothing and with my host nothing or not access (mutualized)
Title: Re: Contact Page
Post by: BeberGold on August 13, 2023, 02:23:00 AM
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.
Title: Re: Contact Page
Post by: jovanddd on August 13, 2023, 06:22:56 AM
great mod
Title: Re: Contact Page
Post by: Panoulis64 on March 11, 2024, 06:08:35 AM
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.
Title: Re: Contact Page
Post by: vbgamer45 on March 11, 2024, 08:55:52 AM
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';
}
Title: Re: Contact Page
Post by: Lucarella on March 11, 2024, 09:31:12 AM
Does the procedure change for 2.1.4?
Title: Re: Contact Page
Post by: vbgamer45 on March 11, 2024, 09:32:47 AM
It might but look for similar code in the index.php file
Title: Re: Contact Page
Post by: Lucarella on March 11, 2024, 10:38:25 AM
Everything ok, works well...

Thank you
Title: Re: Contact Page
Post by: vbgamer45 on March 11, 2024, 10:43:28 AM
Great! Glad to help  8)
Title: Re: Contact Page
Post by: Panoulis64 on March 12, 2024, 10:28:00 AM
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.
Title: Re: Contact Page
Post by: Lucarella on March 12, 2024, 04:11:09 PM
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)
Title: Re: Contact Page
Post by: Panoulis64 on March 13, 2024, 11:02:14 AM
Thank you, now a guest can contact, the contact form is displayed.
Title: Re: Contact Page
Post by: vbgamer45 on March 26, 2024, 11:43:50 PM
Added Spanish ai assisted translation.