Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#26 2006-06-07 11:13:08

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

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!


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#27 2006-06-07 11:49:08

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

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

#28 2006-06-07 20:22:08

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

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


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#29 2006-06-07 20:35:44

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

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>

Offline

#30 2006-06-08 01:25:36

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

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)


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#31 2006-06-11 03:42:19

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin

Yes, I have had many problems with this very issue in Dreamhost … the same restriction nullifies almost any attempt to parse an RSS feed because it uses that command to actually open the feed. Its a “security” thing. Love everything else about them, so it’s hard to complain.


Kevin
(graphicpush)

Offline

#32 2006-06-11 11:10:09

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin

I have a PHP guru onto this, so I hope to have a solution at hand later this week.
Will post here when I have it.

Cheers


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#33 2006-06-11 13:07:02

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin

Thanks NeilA

Offline

#34 2006-07-11 12:54:57

phred78
New Member
Registered: 2006-07-11
Posts: 2

Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin

Hi,

I have tried putting this code and it works, except I can’t control the location of the output. It will place itself on the top of the page no matter where I tell it to stay (doen’t work inside div’s either):

<code>
$ch = curl_init($url);
curl_exec($ch);
curl_close($ch);
</code>

I have put this inside the PunBB forum info plugin to replace the allow_url_fopen as the Dreamhost Wiki explains. It works but not as expected. Does anyone know how to force it to display where I want it to?

Last edited by phred78 (2006-07-11 12:56:31)

Offline

#35 2006-07-11 22:47:22

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin

I’ve been slow in chasing this down…

Thanks for the nudge Phred78 – will explore further (I’m on Dreamhost too..)

Cheers


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#36 2006-07-12 08:19:06

phred78
New Member
Registered: 2006-07-11
Posts: 2

Re: [plugin] [ORPHAN] fgr_punbb_info: PunBB forum info plugin

I have posed the same question to Dreamhost support who just redirected me to the PHP manual on curl

I will try a different approach when I can. Currently my PunBB and TXP installs depend on the same mySQL database, so I’ll try to develop a simple PHP script to extract the last posts of a given category from PunBB, hard-coding the parametres. I’ll let you know how it works.

Also, I have set-up phpAdsNew and the code for presenting banners is JavaScript with several document.write(). Has anyone tried this with PunBB? Would it be a viable solution?

- Frederico

Offline

Board footer

Powered by FluxBB