Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2008-05-23 21:02:47

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: SlideShowPro API problem

Not familiar with SlideShowPro but did you replace (‘your-api-key’, ‘your-api-path’) with your information?


My Plugins

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

Board footer

Powered by FluxBB