Joke of a day - NBS






 

 

Joke of a day - NBS

View Full Version : Joke of a day


jancooo
17-Jul-2005, 09:29 PM
I'm trying to add to my site jokes of the day, so everyday will be new joke on forum. i have an joke.php file to show jokes from database. But I don't know how to inlude this php file into forum index. I have moded ShowStat:

http://www.shrani.si/pics/image244002.jpg

but IPB doesnt show anything (except the text "Joke of the day")!!!


Does anybody know a command to include php file into forum?

MikeC
18-Jul-2005, 10:11 PM
I believe you would need to create a variable in the joke.php files which would pull a random joke out of the database (or file) and then put the variable into the joke of the day part. Im hoping someone else here can help more as my ideas are there but not great into putting it into practice unfortunately :)

Hope this helps.

Mike.

AjRap2
18-Jul-2005, 10:20 PM
Well simply put, you cannot directly include a php file into a template file....
I'm sorry but I'm extremely rusty on IPB right now, sorry I can't help further.