Log in

View Full Version : Help getting code to work in header


Logan
11-27-2001, 11:35 PM
Hey all I am inserting my view new code in my header. How do I make it so that this gets read?

The code is:

$newposts


Thanks

Sinecure
11-27-2001, 11:40 PM
I have actually done something similar myself. Basicly the $header template is parased before almost all other templates, so that creates a slight problem.. You have 2 options here. You can make the functins and eval tempates parse before the the header template by placing the code ahead of the $header in global.php, or declare it in your phpinclude template.

Either way works, unfortunatly I don't know what code it is for $newposts.. Hopefully some one else does :D I beleive the code is somewhere in functions.php, but again, I could be wrong :D