News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Contact Form

Started by rsw686, March 24, 2008, 08:42:38 PM

Previous topic - Next topic

tontonlist

Hi,

Is is possible to use it on 2.0.2? I got this error while installing this.

1.   Extract File   ./Sources/Contact.php   
2.   Extract File   ./Themes/default/Contact.template.php   
   3.   Execute Modification   ./index.php   Test successful
   4.   Execute Modification   ./Sources/Subs.php   Test failed
   1.   Replace   ./Sources/Subs.php   Test failed
   5.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful

This is the where the error is,
QuoteCode: (Find) [Select]
         'register' => array(
            'title' => $txt['register'],
            'href' => $scripturl . '?action=register',
            'show' => $user_info['is_guest'],
            'sub_buttons' => array(
            ),
            'is_last' => true,
         ),


QuoteCode: (Replace) [Select]
         'register' => array(
            'title' => $txt['register'],
            'href' => $scripturl . '?action=register',
            'show' => $user_info['is_guest'],
            'sub_buttons' => array(
            ),
         ),
         'contact' => array(
            'title' => $txt['contact'],
            'href' => $scripturl . '?action=contact',
            'show' => $user_info['is_guest'],
            'sub_buttons' => array(
            ),
            'is_last' => true,
         ),
SMF 2.0.2
Simple Portal 2.3.5

Shambles

Quote4.   Execute Modification   ./Sources/Subs.php   Test failed
   1.   Replace   ./Sources/Subs.php   Test failed

That suggests your subs.php does not have the following exact set of lines, which the mod applier is searching for:

Code (Find) Select
'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => true,
),


If you look in your subs.php, can you see something that resembles that block of lines?

But don't get bogged down if it doesn't hit you straight away, you can always attach a copy of your subs.php to a post in this thread and someone will look at it for you.

tontonlist

Yes, thanks you. :) I really don't know that. I already installed it and I attached my subs.php where the error is.
SMF 2.0.2
Simple Portal 2.3.5

Shambles

Upload this copy and try again.

tontonlist

#44
Extract File   ./Sources/Contact.php   
2.   Extract File   ./Themes/default/Contact.template.php   
   3.   Execute Modification   ./index.php   Test successful
   4.   Execute Modification   ./Sources/Subs.php   Test successful
   5.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful

Thank you very much! :) :)

And I put this code.


Quote from: Shambles™ on July 05, 2012, 03:57:39 AM
Why not then just implement the Contact mod and change the included file Contact.php thus:

(find)
// Send email to webmaster
sendmail($webmaster_email, $mbname.' - '.$_POST['subject'], $message, $_POST['email']);


(replace with)
// Send email to Admin
sendmail('[email protected]', $mbname.' - '.$_POST['subject'], $message, $_POST['email']);

SMF 2.0.2
Simple Portal 2.3.5

Advertisement: