77
This thread made me thinking about my own theme.
I have created a theme that used custum (extra) smartyvariables. Currently I've hacked the core to get my extra variables. Putting all those hacks in a seperate php file, would be a much nices solution. Currently I've hacked header.php to get extra user info and the news module (article.php) to separate the article title from the article category.
Now my question:
If I include a php file in theme.html, is it possible to get the extra userinfo that I want (userrank, number of unread pm) and the extra news variables (article title and article category) in a smarty variable to call in theme.html?
I see problems with getting the userinfo in that php file. How will I know in that file what the current user and current news article is? I probably have to make inclusions and globals in that php file...??
I know I want a lot for a php newbie
.