News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Contact Page

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

Previous topic - Next topic

GlitchPC

#340
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.

nukinfuts29

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.

vbgamer45

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
Community Suite for SMF - Take your forum to the next level built for 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


GlitchPC

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.

vbgamer45

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.
Community Suite for SMF - Take your forum to the next level built for 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

GlitchPC

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.

vbgamer45

I need to know what changes need to be made to fix the xhtml issues that I can update the package.
Community Suite for SMF - Take your forum to the next level built for 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

Linda.V

Just installed this mod, great, thx vbgamer45

vbgamer45

Community Suite for SMF - Take your forum to the next level built for 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

olhippie

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.

vbgamer45

It should add a tab to the default theme with a button called contact
Community Suite for SMF - Take your forum to the next level built for 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

Qayyom Ashraf

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 ?
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

Inti31

#353
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)

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)

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
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Anpu

Awesome mod, ty!
I have a question though, I dont see Captcha in Contact form. Where am I making a mistake?
Thanks!

deansmar

if your logged in, you wont see it, only guests see the Captcha..

ApplianceJunk

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,

vbgamer45

Check either modifications settings or features and options.
Community Suite for SMF - Take your forum to the next level built for 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

ApplianceJunk

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!

mrtarkhan

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
هر پرسش خردمند، نيمي از پاسخ را در خود دارد.((سليمان ابن گاويرول))

Advertisement: