I worked out what it was, I have short_open_tags enabled, my first example of code should work just fine when I disable that.
1 2008-03-26 23:29
Re: Utilizing extern.php on the same server... (8 replies, posted in PunBB 1.2 troubleshooting)
2 2008-03-26 15:09
Re: Utilizing extern.php on the same server... (8 replies, posted in PunBB 1.2 troubleshooting)
I am a man of aesthetics.
3 2008-03-26 00:25
Re: Utilizing extern.php on the same server... (8 replies, posted in PunBB 1.2 troubleshooting)
I have done, I was just wondering if there was a fairly simple way in which to do it with a separate file.
Am I just being a pain in the ass? Surely someone can right me where I'm wrong on my 5 or so lines of code.
[edit]
I think I'll have a bash with Curl when I wake up later today.
4 2008-03-25 20:55
Re: Utilizing extern.php on the same server... (8 replies, posted in PunBB 1.2 troubleshooting)
Okay, I will re-explain for the nimble hearted, I don't want to visibly show the extern.php, so, I would like to write a php file that you just parse eg, rss.php?id=1234 (1234 being the forum ID in order to show the rss).
5 2008-03-25 11:29
Re: Hmm is there a mod that. (17 replies, posted in PunBB 1.2 troubleshooting)
Just use Porta.
It creates galleries, and also pretty flash galleries.
otherwise, I suggest you just use
[img]http://domain.name/path/to/image[/img]
.
6 2008-03-25 11:23
Topic: Utilizing extern.php on the same server... (8 replies, posted in PunBB 1.2 troubleshooting)
Hi there,
I want to utilise the extern.php for dropping RSS links into each section. But I don't wish to visibly link to the extern.php, I've attempted two methods, both of which have failed...
Method 1
<?php
$forum = $_GET['id'];
header ("Content-Type: text/xml");
header ("Content-Disposition: inline; filename=http://bbs.dontassrape.us/extern.php?action=active&fid=$forum&type=rss");
?>
Method 2
<?php
$forum = $_GET['id'];
header ("Content-Type: text/xml");
include ("http://bbs.dontassrape.us/extern.php?action=active&fid=" . $forum . "&type=rss");
?>
Ohh, and as you can see, the forum is up at http://bbs.dontassrape.us.
If anyone would know a better way of which to do this, please inform.