Topic: News Generator?

Can anyone point me in the direction of this plugin and examples of sites that use it?

Cheers

Re: News Generator?

http://punbb.org/download/plugins/AP_News_Generator.zip

The punbb.org main site uses it.

Re: News Generator?

hmm?i've installed it but this is what I get

An error was encountered
Error: Unable to fetch topic list.

www.stephenkelman.co.uk/forum

I am trying to generate news from the general discussion forum. I want this news to be the first thing you see on the website.

Any ideas?

Re: News Generator?

anyone?

Re: News Generator?

Enable DEBUG mode and try again. Then post the full error message.

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

Re: News Generator?

Thanks for the help. Turns out I had the topic ID wrong.

I have now entered the right ID and this is what I get:

There are no topics to generate news based on in forum with ID = 18.


Apologies for so many questions, I am new to code etc?so your help is greatly appreciated!

Re: News Generator?

Well, it basically means that the forum with ID 18 is empty.

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

Re: News Generator?

hmmm?

http://www.stephenkelman.co.uk/forum/viewtopic.php?id=2

http://i2.tinypic.com/282o09f.png

http://i1.tinypic.com/282okkx.png

Sorry if Im being stupid!

Re: News Generator?

http://www.stephenkelman.co.uk/forum/viewforum.php?id=2
viewforum is where you should be looking, you were looking at a topic

10 (edited by Stephenk 2006-09-04 12:17)

Re: News Generator?

thats the one, cheers?getting there! One last question (honest!) how do I get this news to be displayed on the front page of the site?

many thanks again!


PS: here is the generated news link.

http://www.stephenkelman.co.uk/forum/pl … /news.html

Re: News Generator?

You include that file in the front page of the site in some way tongue

Re: News Generator?

ah?not easy?

Re: News Generator?

Well, it's up to you to integrate it, all the news generator does is give you the HTML file wink

14 (edited by Stephenk 2006-09-04 12:59)

Re: News Generator?

ahhhh. brick wall time I think. theres no mods or anything that will talk me through the integration?

ps, or any other solution?

Re: News Generator?

Well, adding it is a simple

include forum/plugins/AP_News_Generator/news.html

(assuming you're including from http://www.stephenkelman.co.uk/index.php or something)
The issue is styling it I believe

Re: News Generator?

it's not that simple for me - not having a clue about php/code! is there any tutorials that spell how to put a news bit on the front page easily

Cheers!

Re: News Generator?

I pretty much literally just gave you the code tongue

Assuming the page is www.mysite.com/index.php and your forum is at www.mysite.com/forum/, you would put the following code somewhere in your index.php (put it where you want to output the HTML)

include 'forum/plugins/AP_News_Generator/news.html';

The only thing to do then is style the output using CSS

Re: News Generator?

wey hey, kinda working now, Cheers for the help Smartys

19

Re: News Generator?

its a nice plugin. but is there any auto generate feature? do i have to generate manually each time i post a new topic??

Re: News Generator?

Wai wrote:

its a nice plugin. but is there any auto generate feature? do i have to generate manually each time i post a new topic??

Yes, you have to manually generate the news each time you post a new topic. If you would not like to do so, use this instead: http://punbb.org/forums/viewtopic.php?id=7552

Looking for a certain modification for your forum? Please take a look here before posting.