Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-05-23 20:15:35
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
SlideShowPro API problem
I’m attempting to use SlideShowPro api with TxP, I’ve included the following at the top of a page but get this error when loading the page – any suggestions:
Fatal error: Class ‘Director’ not found in /nfs/c02/h03/mnt/280885/domains/mysite.com/html/textpattern/publish/taghandlers.php(2804) : eval()’d code on line 7
<txp:php>
include(‘classes/DirectorPHP.php’);
$director = new Director(‘your-api-key’, ‘your-api-path’);
echo(‘Connected!’);
</txp:php>
From the documentation: The first line includes the DirectorPHP class and the second creates a new instance of that class using your API information to connect to your Director install.
EDIT: Seems the include is working but not the $director bit
Best wishes
Lee
Last edited by lee (2008-05-23 20:44:56)
Offline
Re: SlideShowPro API problem
Not familiar with SlideShowPro but did you replace (‘your-api-key’, ‘your-api-path’) with your information?
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#3 2008-05-23 21:04:54
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: SlideShowPro API problem
Yeah I did that thanks.
Offline
#4 2008-05-23 21:06:41
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: SlideShowPro API problem
Fixed it – just a question of paths.
Offline
Pages: 1