Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Textpattern front end to PunBB forum
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
Re: Textpattern front end to PunBB forum
TxP & Pun,
a shotgun wedding?
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
Re: Textpattern front end to PunBB forum
Lock, stock and two smoking BBs :)
Offline
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
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>
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
Re: Textpattern front end to PunBB forum
Might be an issue with your host not allowing includes.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
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&show=3”);
curl_exec($ch);
curl_close($ch);
</txp:php>
Work just fine…
Cheers
Offline
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!
Offline
#12 2007-03-21 02:41:33
- TTD
- New Member
- Registered: 2007-03-21
- Posts: 3
Offline