Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2006-05-05 14:06:20
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
I get this error
Am I able to edit the php.ini file if i’m with DreamHost?
Offline
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
FireFusion,
Have you tried the extern.php file included in PunBB?
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#18 2006-05-05 18:45:53
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
Yeah it doesn’t produce anything. You can put PHP straight in to forms can’t you?
Offline
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
FireFusion wrote:
You can put PHP straight in to forms can’t you?
<?php include 'http://phpxref.net/extern.php?action=new&show=10&fid=2'; ?>
I’m using the above code in a page, I don’t see why it can’t be used in a form.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#20 2006-05-06 07:33:43
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
It just doesn’t want to display anything for me but my forum RSS feed works ok. It must be this php.ini file don’t you think?
Offline
#21 2006-05-06 20:08:22
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
If you’re going to put it in a form, you need to make sure PHP is enabled for that (check advanced admin prefs), and it would need to be like:
<txp:php>include 'http://phpxref.net/extern.php?action=new&show=10&fid=2';</txp:php>
Offline
#22 2006-05-07 06:59:20
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
Well it must be something to do with my hosting as I tried the following in both a form and an article. No luck.
<code><txp:php>include ‘http://awakenyourself.org/kadampa-forums/extern.php?action=new’;</txp:php></code>
Offline
#23 2006-05-07 16:37:39
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
And you’ve got PHP enabled for pages?
Offline
#24 2006-05-07 18:07:02
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
Yep.
“Allow PHP on pages?” and “Allow PHP on articles?” are set to yes in advanced preferences.
Offline
#25 2006-05-08 23:42:16
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
Oh I see above you were getting an error message?
Offline
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
Bump. Anyone get any further with this?
I don’t seem to be able to get any output from using something like this:
<code><txp:php>include ‘http://awakenyourself.org/kadampa-forums/extern.php?action=new’;</txp:php></code> (adjusted for my URL) in a form.
I know zip about PHP, and I know this is not strictly TXP stuff, but I would really appreciate any help with this.
Thanks!
Offline
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
I dunno what that URL is calling (recent posts?) but make it like this:
<code><txp:php>include(‘http://awakenyourself.org/kadampa-forums/extern.php?action=new’);</txp:php></code>
Offline
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
Thanks Walker – I can see the syntax error and fixed it… unfortunately it didn’t change anything…
I get no output at all.
I think I should probably take this to the PunBB forums, as it’s not really a TXP specific thing (but if any TXPers out there do have this working, please yell!).
Cheers
Offline
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
This is what I use on a page, don’t know if it works on a form:
<code><?php include ‘http://phpxref.net/extern.php?action=new&show=10&fid=9’; ?></code>
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin
Thanks Bert.
I cut and pasted your exact line from your post (pinching the feed from your forum!) on a TXP page, and I get absolutely no output at all.
I have PHP on pages and articles enabled, and I’m running TXP 4.0.3
I’m completely puzzled!
Update
OK, turns out to be a Dreamhost issue: they’ve turned off “allow_url_fopen” in PHP.
I read of some workarounds, but none of the alternatives listed (full file path, using PHP environment variable $_SERVER[‘DOCUMENT_ROOT’], etc) work with the PunBB extern.php file.
I either get no output at all, or an error message (from PunBB) saying it can’t find ‘config.php’ (which is in the same place as extern.php).
I’m no coder, and I realise this is no longer a TXP thing, but if anyone feels like taking pity on me, that would be great. Off list is fine. ;-)
Last edited by NeilA (2006-06-09 21:51:30)
Offline