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?

http://drupal.org/node/35728

iam talking about the birthdays page that can be accessed through http://mydomain.com/birthdays not the block.

thanks

zero

Comments

maartenvg’s picture

Status: Active » Fixed

You have to override the theme_birthdays_page() for that (see the code around line 243 for the current implementation).

Good luck!

zerocool.asia’s picture

Status: Fixed » Active

hi 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

maartenvg’s picture

Status: Active » Fixed

As you might've read in the link you provided in the first message, you have to rename it to the following

function phptemplate_birthdays_page($user, $fields = array()){
    // your implementation
}

good luck

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

dries arnolds’s picture

Would 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.

maartenvg’s picture

Making 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.