473,394 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

FCK integration problem within PHP

1
Hi there,
I've just installed a PHP based webpage on my pc running apache server locally.
I've found some trouble wen trying to integrate FCK editor in my PHP news editor. I modified sories.php in the following way:
echo "<br><br><b>"._STORYTEXT."</b><br>";
//."<textarea wrap=\"virtual\" cols=\"50\" rows=\"7\" name=\"hometext\">$story</textarea><br><br>"
// Editor Start
$oFCKeditor = new FCKeditor(hometext) ;
$oFCKeditor->InstanceName = "hometext" ;
$oFCKeditor->Value = "$story" ;
$oFCKeditor->ToolbarSet = "Default" ;
$oFCKeditor->Create() ;
// Editor Ende
echo."<b>"._EXTENDEDTEXT."</b><br>"
."<textarea wrap=\"virtual\" cols=\"50\" rows=\"8\" name=\"bodytext\">$storyext</textarea><BR>"
."<font class=\"content\">"._AREYOUSURE."</font><br><br>"
."<b>"._NOTES."</b><br>"
.................................................. ..........................etc.
when I click addstories in my administrator area, this is what turns up:
Parse error: parse error, expecting `','' or `';'' in c:\archivos de programa\appserv\www\html\admin\modules\stories.ph p on line 711

Being line 771 the following: linea 711 echo."<b>"._EXTENDEDTEXT."</b><br>"

IŽd appreciate any help...........
Sep 11 '06 #1
1 1430
phpmaet
27
Hi,
Try this alternate code.


[PHP]$oFCKeditor = new FCKeditor('hometext');
$oFCKeditor->BasePath = 'FCKeditor/';
$oFCKeditor->Value ="";
$oFCKeditor->Height=300;
$oFCKeditor->Width=700;
$oFCKeditor->Create(); [/PHP]

If you want the TextArea data use this,

[PHP]$FCKeditor=$_POST['hometext'];[/PHP]

Thanks
Sep 12 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kurt | last post by:
Hi We are developing an off-the-shelf software suite for a certain business sector. Most of the program is simply a GUI on top of some .mdb files. Its a .net application written in c# One...
8
by: rmacias | last post by:
I am maintaining an application that was writting in VB6 and has VBA 6.2 integrated into it. The VBA SDK allows the users of the application to generate VBA projects and scripts to gain access to...
0
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
14
by: Mark | last post by:
Yes, my family business wants to create an accounting database to keep track of invoices, production, inventory, man hours, etc.... There will be two kinds of users to access the database, on two...
3
by: gb | last post by:
We are in the process of upgrading part of a large system to .NET, whilst the majority will remain ASP. Sharing session state information will not be a problem at the moment as it is trivial and...
14
by: Kevin G. Anderson | last post by:
What: CAUG Meeting - QuickBooks IIF Files; Total Access Analyzer; CAUG Social When: Thursday, May 25, 2006, 6PM Who: Chris Monaghan and Kevin Anderson Where: The Information Management Group...
0
by: Dilip M | last post by:
This may not be the correct newsgroup but I couldn't see any group that seemed appropriate so I thought I'd ask here. My question is more regarding the philosophy of continuous integration. As...
1
by: YellowfinTeam | last post by:
Marketplace: Yellowfin reporting 3.1 with BIRT Integration Yellowfin is proud to announce the release of 3.1. The major theme of this release is enhanced integration capability. We have...
10
by: Scott M. | last post by:
I've seen many posts and ready articles discussing how changing the membership & roles "provider" in VS .NET is easy, but have yet to see instructions on how to do it. If I already have SQL...
3
by: mwilliams4 | last post by:
Has anyone set up FedEx integration within an Access Database? I'm looking to: 1. If you clicked a tracking number in a form, then it would take you to the tracking page with the results from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.