Topic: [EXTERN.PHP] more than 1 Forum ID?

Is it possible to get the newest topics from more than 1 Forum ID with extern.php (for example, i want the newest topics from Forum ID 21 and 32)? If it is, how?

Re: [EXTERN.PHP] more than 1 Forum ID?

Not in 1.1.4, but I've added the functionality to the extern.php in 1.2. I created a hdiff to show you changes you need to make.

http://punbb.org/stuff/extern_changes.html

You only need to do the changes around line 180-187.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by basalphenaar 2004-04-29 17:53)

Re: [EXTERN.PHP] more than 1 Forum ID?

tnx man!
edit: how do i make the url to this?
like this maybe:
yourhost.com/forum/extern.php?action=new=&show=10&fid=10&fid=11

??

Re: [EXTERN.PHP] more than 1 Forum ID?

Well, i think this is too complicated for me.....
my PHP skills don't go that far.

Re: [EXTERN.PHP] more than 1 Forum ID?

Once you make the changes I posted ealier, you could use an URL like this:

extern.php?action=new&show=10&fid=10,11

"Programming is like sex: one mistake and you have to support it for the rest of your life."

6 (edited by basalphenaar 2004-04-30 09:14)

Re: [EXTERN.PHP] more than 1 Forum ID?

Rickard wrote:

Once you make the changes I posted ealier, you could use an URL like this:

extern.php?action=new&show=10&fid=10,11

but i don't see any changes in the hdiff, i only see what i NEED to change, and i don't think my php skills are so good i can make those changes....

edit: i forget i could scroll to the right, i see the changes now, tnx!

Re: [EXTERN.PHP] more than 1 Forum ID?

I did the changes, but now i see you can't fetch the newest topics from more than 2 forums?

Re: [EXTERN.PHP] more than 1 Forum ID?

Sure you can.

extern.php?action=new&show=10&fid=10,11,13,31

Just add more forum ID's to the end of the URL.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: [EXTERN.PHP] more than 1 Forum ID?

ok, i will try that.