hi
How do I create a text similar to the message user info field format string?
message user info field format string :
<info><ip>::1</ip><agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36</agent></info>
Is there a method to do this?
Thanks ..
Do you want the specific text within the XML or to just create the XML itself?
yes I want the specific text within the XML.
I want create a text that exactly like the format of the text in the messageUserInfo field (from Board_Message table) and insert to the Board_Message table.
Are you using the API? If not, you should check out the Message Boards API documentation and use that as it's the best way to go.
No
I wanted to know what is the method that now allows to do it? I'm used to it.
Please look at the CMS.MessageBoards Namespace.
Create a new BoardMessageInfo object, set the properties, then use the BoardMessageInfoProvider.SetInfo(BoardMessageInfo) method to insert the message info. The SetInfo() method will either insert or update the object.
BoardMessageInfo
BoardMessageInfoProvider.SetInfo(BoardMessageInfo)
SetInfo()
Please, sign in to be able to submit a new answer.