Advertisement:

Author Topic: Contact Page 3.2 now with SMF 2.0 Support!  (Read 115349 times)

Offline searchgr

  • Sophist Member
  • *****
  • Posts: 1,230
Re: Contact Page 3.1 now with SMF 2.0 Support!
« Reply #420 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

Offline DasVON

  • Semi-Newbie
  • *
  • Posts: 79
  • Gender: Male
  • Fortune Favors the Bold
Re: Contact Page 3.1 now with SMF 2.0 Support!
« Reply #421 on: April 02, 2013, 01:39:13 AM »
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 ?

Offline SMFHacks.com Team

  • Jr. Member
  • **
  • Posts: 166
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #422 on: April 02, 2013, 11:14:18 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 in no way directly 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

Offline searchgr

  • Sophist Member
  • *****
  • Posts: 1,230
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #423 on: April 02, 2013, 03:09:23 PM »
Perfect! Thank you very much.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,405
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #424 on: April 02, 2013, 03:12:36 PM »
Perfect! Thank you very much.
Glad to help.
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline DasVON

  • Semi-Newbie
  • *
  • Posts: 79
  • Gender: Male
  • Fortune Favors the Bold
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #425 on: April 02, 2013, 08:25:46 PM »
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..

 ???

Offline johnpaul2k2

  • Full Member
  • ***
  • Posts: 420
Re: Contact Page 3.0 now with SMF 2.0 Support!
« Reply #426 on: April 05, 2013, 07:52:54 AM »
I've managed. Thanks.

For further questions on "how to".

Just duplicate the following parts in Contact.php

Code: [Select]
$from = $_POST['from'];
if ($from == '')
fatal_error($txt['smfcontact_errname'], false);
Code: [Select]
$from = htmlspecialchars($from, ENT_QUOTES);
Code: [Select]
$m .= $txt['smfcontact_formname'] . $from . "\n";
Give them other id(instead $from use $test for example).
Like this.
Code: [Select]
$test = $_POST['test'];
if ($test== '')
fatal_error($txt['smfcontact_errtest'], false);
Code: [Select]
$test = htmlspecialchars($test, ENT_QUOTES);
Code: [Select]
$m .= $txt['smfcontact_formname'] . $test . "\n";
Then you need to add them to the template.
Duplicate this entry.
Code: [Select]
  <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

Code: [Select]
  <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.
Code: [Select]
  <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.
Code: [Select]
$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 :(

Offline Costa

  • SMF Hero
  • ******
  • Posts: 2,973
  • Gender: Male
    • hmfscosta on Facebook
    • Costa Web
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #427 on: April 09, 2013, 11:53:44 PM »
john, what are you trying to add?
Hugo "Costa" Fernandes
Estou disponível para trabalhos remunerados!
Costa Web | Todos os meus pensamentos e truques sobre SMF.

Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora. - Vê aqui a razão

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

Offline johnpaul2k2

  • Full Member
  • ***
  • Posts: 420
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #428 on: May 06, 2013, 09:44:36 AM »
1.adding more details to my contact page??


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

Offline cotty

  • Semi-Newbie
  • *
  • Posts: 74
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #429 on: May 19, 2013, 11:31:52 PM »
Where abouts do I add the email for it to send to when I manually install it??

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,405
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #430 on: May 19, 2013, 11:46:24 PM »
It should add a text field under features and options
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline cotty

  • Semi-Newbie
  • *
  • Posts: 74
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #431 on: May 19, 2013, 11:48:36 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

Offline Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,512
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #432 on: May 19, 2013, 11:50:59 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?
My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline cotty

  • Semi-Newbie
  • *
  • Posts: 74
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #433 on: May 19, 2013, 11:57:26 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.
« Last Edit: May 20, 2013, 01:17:22 AM by cotty »

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,405
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #434 on: May 20, 2013, 08:45:32 AM »
Check your forum's error log might be a clue or some thing on your server side is rejecting the email from going though.
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline cotty

  • Semi-Newbie
  • *
  • Posts: 74
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #435 on: Today at 07:42:07 AM »
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

Online Shambles

  • SMF Hero
  • ******
  • Posts: 2,093
  • Gender: Male
    • i30 Owners Club
Re: Contact Page 3.2 now with SMF 2.0 Support!
« Reply #436 on: Today at 08:39:36 AM »
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.