Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exec PHP not working
#1
Hi

Really great simple xml based CMS. Top.

I'm having problems using the plugin Exec PHP by Chris Cagle: http://www.cagintranet.com/

Can someone tell me how to use it?

I've copied it into the plugins folder: exec-php.php and it shows up in admin of GS.

The o try on a page ex.
<?php
print 'hi';
?>

But nothing happens... Plz
Reply
#2
Are you writing it in CKEditors code view or in the visual editor? I haven’t tested it but it might only work when you enter the PHP code in code view.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
Zegnåt Wrote:Are you writing it in CKEditors code view or in the visual editor? I haven’t tested it but it might only work when you enter the PHP code in code view.

I choose editor and then html source and paste ut in but not working.
What to do?
Reply
#4
whats your version of GS?
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#5
I'm using 2.01
Reply
#6
Looks like it's CKeditor visual mode that is stripping php code.

If you select source mode, insert the php code, and then enter the visual mode again, the code disappears (before even saving the page).
Reply
#7
Carlos Wrote:Looks like it's CKeditor visual mode that is stripping php code.

If you select source mode, insert the php code, and then enter the visual mode again, the code disappears (before even saving the page).

no surprise there... The plugin does nothing with ckedior to allow it to not strip out the php. Sorry
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#8
An alternative plugin, if you don't mind putting your php code into components instead of page content itself, is medialution-component-in-site:
http://get-simple.info/forum/viewtopic.php?id=732

(download updated plugin in post #3:
http://get-simple.info/forum/viewtopic.p...4534#p4534 )
Reply




Users browsing this thread: 2 Guest(s)