hi i would like to customize my birthdays page. is there a way to make a callback in the template.php and point it to my custom birthdays.tpl.php or something much like the way u can customize the user profile page featured in this article?
iam talking about the birthdays page that can be accessed through http://mydomain.com/birthdays not the block.
thanks
zero
Comments
Comment #1
maartenvg commentedYou have to override the theme_birthdays_page() for that (see the code around line 243 for the current implementation).
Good luck!
Comment #2
zerocool.asia commentedhi sori but it doesnt work. heres what i did: i edited my template.php and added these lines :
function phptemplate_theme_birthdays_page($user, $fields = array()){
return _phptemplate_callback('theme_birthdays_page', array('user' => $user, 'fields' => $fields));
}
and then i created a theme_birthdays_page.tpl.php file and uploaded both file but still wont work. do u mean for me to edit the function theme_birthdays_page in the birthdays module? i would rather not do that. is there something im doing wrong?
thanks,
zero
Comment #3
maartenvg commentedAs you might've read in the link you provided in the first message, you have to rename it to the following
good luck
Comment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
dries arnoldsWould it be a good idea to make the birthdays page a standard views page? Then you can edit url, add header or footer text and sort the way you like it. I don't now the technical implications, but it seems like a good idea.
Comment #6
maartenvg commentedMaking it a views page in its current form is impossible for D5, that will require usernodes, node profile or similar methods of changing profiles into nodes. It is on my todo list for Birthdays 5.x-2.x, but I can't guarantee it will work.
For D6 is another story, as Views 2 can list users as well, if I'm not mistaken. So that will be a lot easier, but also has to wait until I start working on Birthdays 6.x-2.x.