11
hervet
Re: Xoops & Mail good reference ?
  • 2008/7/9 11:15

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


I believe that the line which cause you some troubles is this one :
$body = ( isset($post_body) )? ( $myts->htmlSpecialChars($post_body) ) : null ;


comment it and retry.
but take care to the security !

12
anna85
Re: Xoops & Mail good reference ?
  • 2008/7/9 18:12

  • anna85

  • Just popping in

  • Posts: 47

  • Since: 2008/6/19


Hi Hervet,

I did some changes and its works and thanks for your help again....kewl you must very good on programming.

1) I wondering how to make only $body to html enabled and rest are normal text?
2) How improve the security ?

Best regards
Xoopsuser
Singapore

13
hervet
Re: Xoops & Mail good reference ?
  • 2008/7/10 6:59

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Quote:

anna85 wrote:
1) I wondering how to make only $body to html enabled and rest are normal text?

add a strip_tags() call on the other variables.

Quote:

2) How improve the security ?

Don't use html emails

14
anna85
Re: Xoops & Mail good reference ?
  • 2008/7/10 7:20

  • anna85

  • Just popping in

  • Posts: 47

  • Since: 2008/6/19


LOL, Thats a good one :PP.

I want pretty html. yuh I am also worry about security.

Thanks

Best regards
Xoopsuser
Singapore

15
anna85
Re: Xoops & Mail good reference ?Limited Labelform ?
  • 2008/7/11 5:06

  • anna85

  • Just popping in

  • Posts: 47

  • Since: 2008/6/19


Hi,

I crosschecked on xoopsformlabel and its don't have any HTML enable. Do we need to code ourselves ? Anyone tried before...??

Just caption, value...

Your knowledge on this topic greatly appreciated.

Best regards
Xoopsuser

16
anna85
Re: Xoops & Mail good reference ?XoopsFormFile
  • 2008/7/11 9:17

  • anna85

  • Just popping in

  • Posts: 47

  • Since: 2008/6/19


Hi Hervet,

I add the following code into the contact.php. I manage get the output in the email. But the email only contain textname of file upload! No download or anything... hehe. Ex I upload the file name test.gif and email just contain the name..kewl.

$ctobform->addElement(new XoopsFormFile('File Attachment','attachmail',500));

$attachmail= ( isset($_REQUEST['attachmail']) )? $_REQUEST['attachmail'] : null ;

$attachmail = ( isset($post_attachmail) )? ($post_attachmail) : $null ;

Do you know where i went wrong ??? :(

Btw i went to your website, couldn't understand the website as you had used another language?


Best regards
Xoopsuser

17
anna85
Re: Xoops & Mail good reference ?XoopsFormFile
  • 2008/7/13 17:12

  • anna85

  • Just popping in

  • Posts: 47

  • Since: 2008/6/19


Hi,

Please help me on xoopsformFile...

Thanx

best regards
Xoopsuser

18
hervet
Re: Xoops & Mail good reference ?XoopsFormFile
  • 2008/7/14 12:37

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hello,

First, you should create a new post to describe a new problem.
Secondly, in this folder /xoops/class/ there is a file called uploader.php.
Read its comments.

Now, if you want an example of the usage of the XoopsMediaUploader class, I recommend you to see some examples from running modules like News of Birthday :
https://xoops.org/modules/news/article.php?storyid=4330

Bye,
Hervé

Login

Who's Online

101 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 101


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits