Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-19 20:52:06

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Photostack integration?

Anyone managed to integrate Photostack into a TXP installation yet? I tried it just now but did not succeed – Photostack allows one to integrate into your site by loading an external.php file, which I have done, but it does not work, probably because of Global PHP scope as described in the FAQ:

http://textpattern.com/faq/34/how-do-i-use-php-code

Anyone managed this?

Using the daily Photostack – 3.0beta.

Edit: using this in the page source of TXP:
<txp:php>’/path/to/photostack/external.php’;</txp:php>

Edit 2: TXP set to debugging mode, no errors reported, and also no Photostack! :-(

Last edited by jstubbs (2007-05-19 20:56:13)

Offline

#2 2007-05-19 21:56:48

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Photostack integration?

jstubbs,

Photostack is a fork of singapore, which is what I’ve been using for many years.

Anyway, this is what you’d do:

<txp:php>include '/path/to/singapore/external.php';</txp:php>

Offline

#3 2007-05-20 07:21:32

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Photostack integration?

Hi Bert, yeah I had the include already in there but forgot it when I copied/pasted!

I have this now:

<txp:php> include ‘/path/to/my/photostack/external.php’; </txp:php>

With status set to “debugging”, I get no output at all (Safari gives me a lost connection error: The error was: “lost network connection” )

If I set status to “testing”, then I get this:

tag_error <txp:php> -> Warning: photostack::require_once(includes/gallery.class.php): failed to open stream: No such file or directory on line 31

?? Something to do with PHP scope maybe?

Offline

#4 2007-05-21 20:57:32

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Photostack integration?

Anyone come across a solution to my problem integrating Photostack? Hope so!

Offline

#5 2007-05-22 08:22:10

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Photostack integration?

A long long time ago, John Hicks described his integration of an earlier txp/photostack combo. Up until now, I have simply ‘skinned’ photostack to look the same as the txp site.


TXP Builders – finely-crafted code, design and txp

Offline

#6 2007-05-22 19:38:43

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Photostack integration?

Thanks Jakob. Not sure Hicks’ method would work now, because Photostack has changed now it is a fork of Singapore.

Maybe I could look at Singapore instead – is it easy to include in a TXP page, as Bert says?

Alternative is to skin photostack as I have done before for punBB and others. Just looking for an easy way to use photostack in a TXP installation…

Offline

Board footer

Powered by FluxBB