Topic: AP_News_Generator problem

I want to make it so everytime someone goes to my mainsite index.php file that it will run AP_News_Generator and update the news...ive tried an include but i get errors :\ something like failed to open stream ive tried a cronjob but that doesn't seem to work either any sugestions

Re: AP_News_Generator problem

Why would you want to do that? Then you lose the whole point of having it static.

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

Re: AP_News_Generator problem

i want to have it that way so i don't have to manuely click Generate News every time i make a new post :\

Re: AP_News_Generator problem

But then your forums will generate all the news (including archives) every time someone accesses your index page. It's a bad idea.

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

Re: AP_News_Generator problem

ok lol then ill do a cronjob every 30 min but i don't wanna do it manualy and atm the script won't run with cronjob i get the error
Fatal error: Call to undefined function:  generate_admin_menu() in /home/tempest/public_html/scripts/punbb/plugins/downloads.php on line 115

Re: AP_News_Generator problem

cronjob is stupid, if you want t do it live then get it from the database, theres a new function in this http://punbb.org/forums/viewtopic.php?id=5044 its for 1.1.5 but it works for 1.2 and you can adapt it how you want

7 (edited by Tempest 2005-01-25 19:38)

Re: AP_News_Generator problem

.... that is abit confusing.... you got anything less confusing...

Re: AP_News_Generator problem

lol, i'll try to get round to making the miniportal for 1.2 this weekend you'll be able to use that wink

Re: AP_News_Generator problem

Bah, just some plain SQL in the homepage that gets the info you need works: that's what I do smile

Re: AP_News_Generator problem

lol ok gimmy the SQL