News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Contact Page

Started by SMFHacks.com Team, July 06, 2006, 12:59:38 PM

Previous topic - Next topic

Shades.

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
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

vbgamer45

2. yes, would require duplicate the files then changing the actions to point another action like form1
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rcane

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.

vbgamer45

Yes that would work. Its not that bad.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rcane

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 :)

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rcane


vbgamer45

Prefer not time limited.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rcane


vbgamer45

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'));


Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

rcane

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.

Jotade29

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.
Quote from: Diego Andrés on August 12, 2023, 02:20:18 AMI'm afraid convincing Jotade to upgrade to SMF 2.1 will require bigger effort than your work sanitizing Unicode characters  :laugh:

Shades.

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
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

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. ???
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

landyvlad

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?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Shades.

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:)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

vbgamer45

Yup works good on 2.1 have marked the mod as such.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Shades.

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
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

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
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Matthias

#639
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.
Quality first

Advertisement: