2 sam2kb May 27, 2008 18:07

sam2kb wrote:
It's in htsrv/
Thnx. How stupid of me. I was looking in all other maps. Not in this one.
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.
The form layout is in _msgform.disp.php and it sends the data to message_send.php for processing
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.
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 = '' )
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.
Change
index.php?disp=contact
to
index.php?disp=msgform&recipient_id=1
Or copy the code you are using in your menu here.
sam2kb wrote:
Change
index.php?disp=contact
to
index.php?disp=msgform&recipient_id=1
Great. That works. I forgot the recipient the first time. Now that's also fixed.
You guys reply very quick. Thnx.
No problem. Good luck.
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!
It's in htsrv/