News:

Wondering if this will always be free?  See why free is better.

Main Menu

Contact Page

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

Previous topic - Next topic

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

deansmar

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

vbgamer45

The sendmail function has a parameter to send as html just turn that on and it will work that way.
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

deansmar

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

rootuid

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

vbgamer45

That code does not look like it is from contact page system but another mod.
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

bigjoe11a

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.

SMF Forums http://www.df-barracks.com Where gamers go.

vbgamer45

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

mhbell

Quote from: vbgamer45 on July 06, 2006, 12:59:38 PM
Link to Mod

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 [nofollow]

vbgamer45

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

vanGils

#370
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.  ;)

vbgamer45

Capcha is enabled if you have for registration

You are free to translate the mod.
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

vanGils

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?

vbgamer45

Yes you just have the register settings on SMF to have captcha then it picks up SMF's built in captcha
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

vanGils

#374
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?


vbgamer45

Under Admin -> Permissions you have to setup permissions for each group
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

mhbell

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.

vbgamer45

Under Admin -> Permissions you have to setup permissions for each group
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

mhbell

Thank You Very Much. That did the trick. Great Mod and just what I needed.
Thanks Again
:)

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

Advertisement: