PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Directphp is not work in TinyMCE WYSIWYG Editor (2 viewing) (2) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Directphp is not work in TinyMCE WYSIWYG Editor


#1186
rjdjohnston (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Directphp is not work in TinyMCE WYSIWYG Editor 1 Year, 9 Months ago Karma: 0  
Thanks for directing me to this thread. With user set to no-editor joomla still strips. If go into parameters, set to white list and add this "php, ?php,<?php,?>" (minus the quotes), to filter tags it'll work.

My problem I had sql code and joomla is basically pulling everything out! Not sure why they keep getting stricter and stricter, makes using Joomla more difficult; I presume they want developers to make components / modules instead... pisses me off. anyways, hopefuly above will help.

Best,
RJ
 
  The administrator has disabled public write access.

#1201
teezone (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Directphp is not work in TinyMCE WYSIWYG Editor 1 Year, 9 Months ago Karma: 0  
Hi, I really like this extension & just found the fix!
http://docs.joomla.org/Why_does_some_HTML_get_removed_from_articles_in_version_1.5.8%3F

Breathing a BIG sigh of relief now :)

And thanks for DirectPHP, love it!
 
  The administrator has disabled public write access.

#1207
kksou (Admin)
Admin
Posts: 1233
graph
User Online Now Click here to see the profile of this user
Re:Directphp is not work in TinyMCE WYSIWYG Editor 1 Year, 9 Months ago Karma: 20  
Hi Teezone,

Thanks much for sharing this!

You have saved many people a lot of time, including me!

Regards,
/kksou
 
  The administrator has disabled public write access.
#3253
niezzam6177 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Directphp is not work in TinyMCE WYSIWYG Editor 6 Months, 2 Weeks ago Karma: 0  
Hello, I'm using Joomla 1.5.15 and DirectPHP. I have followed the instruction in above link, but still could not get it work..

Any help?
 
  The administrator has disabled public write access.
#3254
kksou (Admin)
Admin
Posts: 1233
graph
User Online Now Click here to see the profile of this user
Re:Directphp is not work in TinyMCE WYSIWYG Editor 6 Months, 2 Weeks ago Karma: 20  
niezzam6177 wrote:
Hello, I'm using Joomla 1.5.15 and DirectPHP. I have followed the instruction in above link, but still could not get it work..

Any help?


Hi,

1) What is the PHP code that you've entered in the article?

2) Click save in your editor, and then edit the same article again. Do you still see the PHP codes in the article?

3) Please make sure you've read the FAQ for DirectPHP. Please list some of the things you've tried and what's the corresponding output that you see on the screen.

You need to give more clues so that it's possible to guess what might be the problem.

Regards,
/kksou
 
 
Last Edit: 2010/02/16 23:46 By kksou.
  The administrator has disabled public write access.
#3259
niezzam6177 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Directphp is not work in TinyMCE WYSIWYG Editor 6 Months, 2 Weeks ago Karma: 0  
1. <?php include('libraries/myartifact/viewartifact.php'); ?>

2. Sometimes, <? is missing, sometimes all are missing

3. i) Plugin is enabled
ii)Yes
iii) I'm using other editor to edit the above include file

FYI, I set no php block command and Using No editor to Yes.

Above case happened for the newly created Article. I have other articles that have directphp working, but not this time.

Any more information that you need to know?
 
  The administrator has disabled public write access.
#3264
kksou (Admin)
Admin
Posts: 1233
graph
User Online Now Click here to see the profile of this user
Re:Directphp is not work in TinyMCE WYSIWYG Editor 6 Months, 2 Weeks ago Karma: 20  
niezzam6177 wrote:
1. <?php include('libraries/myartifact/viewartifact.php'); ?>

2. Sometimes, <? is missing, sometimes all are missing

3. i) Plugin is enabled
ii)Yes
iii) I'm using other editor to edit the above include file

FYI, I set no php block command and Using No editor to Yes.

Above case happened for the newly created Article. I have other articles that have directphp working, but not this time.


1) Since you said you have some other articles working with DirectPHP, it could be some of the codes that you are using in viewartifact.php. I'm not sure what are you trying to run inside viewartifact.php. But just for your info, not all PHP codes will work inside the Joomla article. There are many people who have tried to include forms using DirectPHP. It won't work. You have to make some changes so that it runs inside the Joomla framework.

2) By the way, when you use include('libraries/myartifact/viewartifact.php'), you should use the complete path. I don't think your path will work, as it's a relative one. Try using a complete path and see if it works.

3) Your answers to (2) is worrying. If the PHP codes are stripped away by the editor, I think you know very well that nothing will get processed. You might want to use an editor that ensures that the PHP codes are always there.

Please try the above 3 suggestions first. Let me know what you've tried, and what you see on the screen, so that I've more clues to figure out what might be going on.

Regards,
/kksou
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2009. kksou.com. All Rights Reserved