will
Posts: 88
|
| Posted: 04/02/2008, 10:30 AM |
|
Hello all
I found this topic which is the only topic of its kind
http://forums.codecharge.com/posts.php?post_id=77123
basicly it is not clear to me what they are talking about here if anyone can help it is greatly appreciated
/* used in Vision.To CMS
function VISION_TO_PAGE_CONTENT_PROCESSOR ($content)
{
$content=bbcode_format ($content);
return $content;
}
*/
/*Usage in CodeCharge Studio :
before show event , the content_html is label property as HTML
$content=bbcode_format ($cms_pages->content_html->GetValue());
$cms_pages->content_html->SetValue($content);
*/
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 04/08/2008, 10:19 PM |
|
will
have you sent a pm to feha?
The code is pretty straight forward. It basically states to set the label field content property to HTML. Here is a link that may help you: http://docs.codecharge.com/studio40/html/Components/Pro...s/Html.html?toc
|
 |
 |
will
Posts: 88
|
| Posted: 04/09/2008, 10:33 AM |
|
from what i read it does not work it gives fatal errors Fatal error: Call to undefined function bbcode_format()
this is on the before show of the label
$content=bbcode_format ($cms_pages->content_html->GetValue());
$cms_pages->content_html->SetValue($content);
label name content_html label property is set to html no go
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 04/09/2008, 4:35 PM |
|
will,
Yes, you will need a label field on the form called content_html (or whatever you want). Then you will enter the code in the before show event for the content_html label. Don't forget to set the content property (for the conttent_html label) to HTML. Hopefully this will help you.
|
 |
 |
will
Posts: 88
|
| Posted: 04/09/2008, 5:31 PM |
|
thanks mambo i tried it it just give fatal errors
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 04/09/2008, 5:38 PM |
|
will
what error is it giving you?
|
 |
 |
will
Posts: 88
|
| Posted: 04/09/2008, 6:37 PM |
|
Fatal error: Call to undefined function bbcode_format()
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 04/11/2008, 8:35 AM |
|
will
Do you mind copying the code directly from your application and posting it on this thread?? I am wondering if it is just a case of a simple mistyped function name or something.
|
 |
 |