News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Contact Page

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

Previous topic - Next topic

vbgamer45

Thanks added the French translation as well.
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

dbh

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

Matthias

@vbgamer45
Maybe crowdin is a good option for the translations for your free mods...

Quality first

Max22

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

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

Shades.

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

This has been fixed.
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

peteruoi

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!

vbgamer45

Check permissions for guests that they have the view contact page for guests.
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

vbgamer45

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

Panoulis64

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?

vbgamer45

Did you give the guest group the View Contact Page permission?
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

Mightymax44

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 ???
La connaissance, c'est partager le savoir qui nous fait grandir.

vbgamer45

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

Mightymax44

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.
La connaissance, c'est partager le savoir qui nous fait grandir.

vbgamer45

I would check your mail logs and forum error logs.
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

Mightymax44

on forum nothing and with my host nothing or not access (mutualized)
La connaissance, c'est partager le savoir qui nous fait grandir.

BeberGold

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.

jovanddd

dezinsekcija [nofollow]
deratizacija [nofollow]

Panoulis64

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.

Advertisement: