Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-14 14:55:59

redneck
Member
From: Costa Mesa, CA
Registered: 2004-08-14
Posts: 37
Website

Textpattern front end to PunBB forum

Are you a Guntard?

Guntards.net is basically a PunBB forum, but I wanted to front-end the forum with Textpattern as a way to provide news and announcements, maybe run a little guntard blog.

There are three possible approaches to a job like this:

1. Hack Textpattern to look more like PunBB;

2. Hack PunBB to look more like Textpattern; or

3. Hack them both to look like something completely new and fresh and different.

Well, 3 was out of the question for me, and since PunBB’s CSS is so bizarre and baroque, I decided to make a Texpattern site look pretty much like default PunBB.

Contrary to the suggestions in the Punres wiki, I changed the header graphic in the main.tpl template rather than the imported CSS file, but I made a lot of additions (almost no other changes) to the PunBB CSS.

Textpattern, of course, was a joy to work with and presented no problems.

By the way, if you think you might be a guntard, feel free to register at the forum. You will be one of the first official guntards!

Last edited by redneck (2007-02-15 04:53:28)

Offline

#2 2007-02-15 00:12:14

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

Re: Textpattern front end to PunBB forum

TxP & Pun,

a shotgun wedding?

Offline

#3 2007-02-15 14:44:53

redneck
Member
From: Costa Mesa, CA
Registered: 2004-08-14
Posts: 37
Website

Re: Textpattern front end to PunBB forum

hcgtv wrote:

a shotgun wedding?

That’s Gun Luv!

Last edited by redneck (2007-02-15 14:46:07)

Offline

#4 2007-02-15 15:39:19

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Textpattern front end to PunBB forum

Lock, stock and two smoking BBs :)

Offline

#5 2007-02-15 17:32:27

redneck
Member
From: Costa Mesa, CA
Registered: 2004-08-14
Posts: 37
Website

Re: Textpattern front end to PunBB forum

Damn, first issue. Might be a simple syntax problem (I’m very rusty with PHP).

I’m trying to use PunBB’s syndication feature, which calls a script called extern.php. I’m using the following syntax in my TxP template:

<txp:php> include('http://www.guntards.net/forum/extern.php?action=new&show=3'); </txp:php>

I know the URL syntax is correct, since it gives me the proper output when used at the command line (you can check it out yourself). I guess simply inserting the include() function in the template isn’t enough.

Anyone have any ideas what’s happening?

Offline

#6 2007-02-15 17:45:49

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

Re: Textpattern front end to PunBB forum

I do it like this:

<txp:php> include 'http://phpxref.net/extern.php?action=new&show=15&fid=2'; </txp:php>

Offline

#7 2007-02-15 18:32:28

redneck
Member
From: Costa Mesa, CA
Registered: 2004-08-14
Posts: 37
Website

Re: Textpattern front end to PunBB forum

I see that you have removed the parentheses. Still no joy for me.

Is there something I missed?

Offline

#8 2007-02-15 20:29:07

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

Re: Textpattern front end to PunBB forum

Might be an issue with your host not allowing includes.

Offline

#9 2007-02-15 22:08:45

redneck
Member
From: Costa Mesa, CA
Registered: 2004-08-14
Posts: 37
Website

Re: Textpattern front end to PunBB forum

hcgtv wrote:

Might be an issue with your host not allowing includes.

Thanks. That’s it. I’m hosting with DreamHost.

Offline

#10 2007-02-16 04:59:21

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

Re: Textpattern front end to PunBB forum

Ooo. A question I can answer!

This is how I got around Dreamhost’s no includes:

<txp:php>
$ch = curl_init(“http://my.domain/forum/extern.php?action=active&amp;show=3”);
curl_exec($ch);
curl_close($ch);
</txp:php>

Work just fine…

Cheers


Neil – Blue Mountains, Australia

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

Offline

#11 2007-02-16 15:22:53

redneck
Member
From: Costa Mesa, CA
Registered: 2004-08-14
Posts: 37
Website

Re: Textpattern front end to PunBB forum

NeilA wrote:

Ooo. A question I can answer! This is how I got around Dreamhost’s no includes:

Yay! That worked great! Thanks a lot!

http://www.guntards.net/

Offline

#12 2007-03-21 02:41:33

TTD
New Member
Registered: 2007-03-21
Posts: 3

Re: Textpattern front end to PunBB forum

Love the clean design and the simple way you integrated the recent topics, etc from punbb. I’ve been playing with PunBB and like what I see so far.

Definitely bookmarking your site for some future ideas.

Offline

Board footer

Powered by FluxBB