Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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>
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
Re: Photostack integration?
Anyone come across a solution to my problem integrating Photostack? Hope so!
Offline
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
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
Pages: 1