Recent Topics

1 May 27, 2008 18:05    

My b2evolution Version: Not Entered

Where can i find the file : message_send.php ? So far i only find _msgform.disp.php.
That is the form for sending an email. I want to change that but i couldn't find how to do that.

3 May 27, 2008 18:13

sam2kb wrote:

It's in htsrv/

Thnx. How stupid of me. I was looking in all other maps. Not in this one.

4 May 27, 2008 18:22

sam2kb wrote:

It's in htsrv/

But this is not the layout of the message form, this is just for sending the mail ?
So the layout is still in _msgform.disp.php ? I don't understand it anymore.

5 May 27, 2008 18:24

The form layout is in _msgform.disp.php and it sends the data to message_send.php for processing

6 May 27, 2008 18:29

sam2kb wrote:

The form layout is in _msgform.disp.php and it sends the data to message_send.php for processing

Thnx again. I'm going to try to change the layout now.

7 May 27, 2008 18:42

The layout starts from

<!-- form to send email -->

. It's not that hard to change it. If you need a custom input field read these comments.

/**
	 * Builds a text (or password) input field.
	 *
	 * Note: please use {@link Form::password()} for password fields
	 *
	 * @param string the name of the input field
	 * @param string initial value
	 * @param integer size of the input field
	 * @param string label displayed in front of the field
	 * @param string note displayed with field
	 * @param integer max length of the value (if 0 field_size will be used!)
	 * @param string the CSS class to use
	 * @param string input type (only 'text' or 'password' makes sense)
	 * @return mixed true (if output) or the generated HTML if not outputting
	 */
	function text( $field_name, $field_value, $field_size, $field_label, $field_note = '',
											$field_maxlength = 0, $field_class = '', $inputtype = 'text', $force_to = '' )

8 May 27, 2008 19:20

Yes i find it. I changed the layout a little now. Thnx again.

Now i wanna open this form from my menu with the button Contact. Now when i hit this button it opens "index.php?disp=contact". I wanna change this so that _msgform.disp.php opens.

9 May 27, 2008 19:32

Change

index.php?disp=contact

to

index.php?disp=msgform&amp;recipient_id=1

Or copy the code you are using in your menu here.

10 May 27, 2008 19:41

sam2kb wrote:

Change

index.php?disp=contact

to

index.php?disp=msgform&amp;recipient_id=1

Great. That works. I forgot the recipient the first time. Now that's also fixed.
You guys reply very quick. Thnx.

12 May 30, 2008 22:04

For those bloggers who use streamline.net, I thought I'd write here what I had to do to get the mail facility working. Streamline had introduced a 5th parameter to the mail function, in a bid to stop spammers. This 5th parameter was along the lines of '-froot@domain.co.uk' . I duly modified the code message_send.php but no luck. Then I had an idea. I changed the function name from send_mail to mail (I have another site that works with the mail function). Success! So, if your mail facility isn't working, it may be worth changing message_send.php Good luck all!


Form is loading...