1

(4 replies, posted in PunBB 1.2 discussion)

@hcgtv: Yeah, something like that. I'd be happy to look at your Nucleus plugin to see how you went about it. I'll send you an e-mail.

Thanks,

Mats W.

2

(4 replies, posted in PunBB 1.2 discussion)

@elbekko: Well just to clarify, the blog posts are in a proper weblog created in MODx CMS. But the weblog and punBB uses the same MySQL database but with different _prefix, so it shouldn't be too hard to do this. Right?

3

(4 replies, posted in PunBB 1.2 discussion)

Hi all,

I run a blog and want to channel all user comments into my punBB forum. I basically need a snippet that automatically creates a new topic in the proper forum when clicking on a "Comments(0)" link displayed at the bottom of my blog post.

The snippet should fetch the subject heading from the blog post and insert the blog post content as the first post. The user should then be automatically redirected to start writing his comments in a second post. After posting, the blog post link should change to "Comments(1)".

Of course, when "Comments(1)" or more the first step should be skipped and the user be immediately redirected to create a new post (2,3,4 etc) in the current topic.

One more thing, the initial forum post (with the blog post content) should have a fixed height with overflow scrollable and also a link back to the original blog post created automatically.

Has this or anything similar been done by anyone?

Mats W.

Hi again,

I'm proud to report the problem is now solved (partly because of Smartys, who identified the problem as lying with my server host).

The problem was pinpointed to the server firewall. The IP number of the website is one on the outside of the firewall and another on the inside. So when php tried to do an 'include' of the website's URL, the address pointed outside the firewall wheras the file was actually *inside* of the firewall. So extern.php simply couldn't find ./config.sys.

The solution was to tell the server the actual location of the website by editing the 'hosts' file.

(Thanks, Smarty! And to Ruben at Crossnet websupport who pinpointed the problem!)

Cheers!

Mats W.

Thanks, I'll give you the page next you're online (just send me a message!) since I have to disable the include to get ANY work done on the site because of the timeout(s).

Mats

Okay, I saved it as a php file (saved it as editor default first time, sorry). But it still doesn't parse the code. I checked the phpinfo(), and allow_url_open is on. The only difference now is I recieve a timeout instead of a blank page.

Actually I tried the call from within my CMS. I put it in the snippet repository which only allows php code and tried to run it, but I got the same timeout there too.

So what should the call look like exactly to work? That's my basic question, because obviously you can't just copy what's in the documentation.

Mats

Hi there,

I've set up a simple test page to run the extern.php syndication script (for later inclusion with my CMS powered site) but the page comes up with nothing. The file extern.php is there, but the parameters kill it. Please help me see where do I go wrong.

Here's the call:

<?php
include("http://modx.credoakademin.nu/forum/extern.php?action=new&show=3");
?>

And here's the test page.

Any help would be greatly appreciated.

Mats

8

(1 replies, posted in PunBB 1.2 discussion)

Hi all,

I recently downloaded punBB and got it up running without a glitch (thanks, guys!). Now, could you give me a hint where I can find the snippet that produces the "Recent Posts" block on the frontpage of punbb.org? It would come in very handy in my projected website layout.

Thanks in advance, smile

Mats Wall