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

Advertisement: