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

deansmar

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

drroot

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


Costa

Hi guys

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

Thanks in advance.
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

vbgamer45

Yes you could edit the template and the sources file just requires some php knowledge to make changes.
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

Costa

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
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Costa

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? :|
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

vbgamer45

You would have to look at the Sources/Contact.php file and then duplicate code such as the email address or comments code
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

Costa

#407
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.
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

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

Costa

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?
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

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

Costa

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
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

johnpaul2k2

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

DMR123

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

vbgamer45

You could but would require some work such as renaming the actions for the second called contact2 etc
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

johnpaul2k2

i will love to edit the indec "contact" and add something like Contact Us ??

vbgamer45

The text you can edit by editing themes/default/languages/modificaitons.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

johnpaul2k2

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

Costa

Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

SMFHacks.com Team

New update posted
3.1
+Minor style tweaks for display for SMF 2.0
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Advertisement: