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

searchgr

It doesn't support the greek characters. The email that i receive shows strange characters. Is there any easy way to fix this problem? Thnx

DasVON

Question...

Would it be possible to do something like this. Have multiple contacts for eg: 

Contact COD Admin -->     /index.php?action=contactcod 
Contact BF Admin -->     /index.php?action=contactbf
Contact WOW Admin -->      /index.php?action=contactwow
Contact Membership Admin -->      /index.php?action=contactmem

etc, etc....

with different emails for different admins within a (Gaming Clan) and make the links using the MOD called Menu Editor Lite

if so how ?

SMFHacks.com Team

Quote from: searchgr on April 02, 2013, 01:26:08 AM
It doesn't support the greek characters. The email that i receive shows strange characters. Is there any easy way to fix this problem? Thnx
3.2
!Improved support for other languages/utf8



DasVON not easily you would need to duplicate the mod code a couple times.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

searchgr


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

DasVON

Quote from: SMFHacks.com Team on April 02, 2013, 11:14:18 AM
DasVON not easily you would need to duplicate the mod code a couple times.

Not sure how to do this

but thanks for the reply anyway..

???

johnpaul2k2

Quote from: Costa on January 17, 2013, 06:26:13 PM
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.

i am still learning coding here. so these things are kinda strange. i have tried adding them to my template but still making mistakes :(

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

johnpaul2k2

1.adding more details to my contact page??


2. how can i disable the verification question on the same contact page??

cotty

Where abouts do I add the email for it to send to when I manually install it??

vbgamer45

It should add a text field under 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

cotty

Quote from: vbgamer45 on May 19, 2013, 11:46:24 PM
It should add a text field under features and options

There is though doesnt seem to be working. So i want to add it into the code manually to see if that fixes it

TheListener

Quote from: cotty on May 19, 2013, 11:48:36 PM
Quote from: vbgamer45 on May 19, 2013, 11:46:24 PM
It should add a text field under features and options

There is though doesnt seem to be working. So i want to add it into the code manually to see if that fixes it

Have you looked at the mods parser?

cotty

#433
Quote from: Old Fossil on May 19, 2013, 11:50:59 PM
Quote from: cotty on May 19, 2013, 11:48:36 PM
Quote from: vbgamer45 on May 19, 2013, 11:46:24 PM
It should add a text field under features and options

There is though doesnt seem to be working. So i want to add it into the code manually to see if that fixes it

Have you looked at the mods parser?

Ill have to have another look, though all appeared to be ok. I have checked the email address and also checked all folders in the email account ie spam folder

Edit, seems to not be working with any new email i use with it, though putting it back to my old email address that i was using seems to work... strange.

vbgamer45

Check your forum's error log might be a clue or some thing on your server side is rejecting the email from going though.
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

cotty

Well I didn't resolve why the contact page mod didn't work with any new address (tried gmail & hotmail, the one the works is a hotmail account to), so ive just left it as the address I was first using and it seems to work fine. Now what im after is making it post the content of form when someone fills it out into a topic in the mods sections.

Thanks

Shambles

The source code in this mod seems slightly different to what I'm using right now, so I'll adjust what I did according to what you have.

Sources/Contact2.php

Code (Find) Select
// For send mail function
require_once($sourcedir . '/Subs-Post.php');


Code (Add After) Select


$icon = '';
$board = 112;              // Change to match your desired board number

$msgOptions = array(
'id' =>  0,
'subject' => '(' . $from . ') ' . $subject,
'icon' => $icon,
'body' => $message . ' (email ' . $email . ') (IP ' . $_SERVER['REMOTE_ADDR'] . ')',
'smileys_enabled' => false,
);

$topicOptions = array(
'id' => 0,
'board' => $board,
'mark_as_read' => true,
);
 
$posterOptions = array(
'id' => '',
);

createPost($msgOptions, $topicOptions, $posterOptions);



Just tinker around with the message/body until it suits your style.

I actually created a formatted table within the created post, but that's something you can experiment with.

cotty


Burke ♞ Knight

SMF 2.0.4

Does not send the email. Shows in error log:
Unable to send mail to the email address (Address here)

Using the same email the site uses.

vbgamer45

Does your site send any email to that address using SMF? Contact page uses the sendemail function in SMF
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: