CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 need help with code

Print topic Send  topic

Author Message
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);
*/
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
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.
View profile  Send private message
will

Posts: 88
Posted: 04/09/2008, 5:31 PM

thanks mambo i tried it it just give fatal errors
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 04/09/2008, 5:38 PM

will
what error is it giving you?
View profile  Send private message
will

Posts: 88
Posted: 04/09/2008, 6:37 PM

Fatal error: Call to undefined function bbcode_format()
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.