I'm trying to display the "Birthdays Block: Next N days" in inline table. The css style didn't work.

CommentFileSizeAuthor
#2 ex.png12.71 KBgabriel.ferreira

Comments

maartenvg’s picture

Status: Active » Postponed (maintainer needs more info)

Could you elaborate a bit more on what you want to do exactly, because it's not clear to me? Preferably with pictures and such.

gabriel.ferreira’s picture

StatusFileSize
new12.71 KB

The list is displaying :

- Birthday 1 (Age) (Date)
- Birthday 2 (Age) (date)

I want :
- Birthday 1 (Age) (Date) , Birthday 2(Age) (Date).

gabriel.ferreira’s picture

Status: Postponed (maintainer needs more info) » Active

active (need more info) -> active

maartenvg’s picture

Status: Active » Postponed

You will need to override the theme_birthdays_block() function in your theme template to turn the tables into a comma separated list. I recommend waiting until 6.x-1.0 is released. That version will use theme preprocessing, which will make things easier to override and theme for your self. How to do so, then, will be explained in the documentation.

You can do this now, and override the current theming function, but remember that you will have to redo everything once the theming methods have changed considerably.

maartenvg’s picture

Status: Postponed » Fixed

The current development version of 6.x has a (not thoroughly tested) new way of overriding the block theming. You can now override the birthdays-block-tpl.php by simply copying birthdays-block.tpl.php to your theme's folder, and adjusting it to your likings. That way you can remove the table, and introduce commas. Don't forget to refresh the theme register (On the "Administer > Site configuration > Performance" page, click on the "Clear cached data" button).

See http://drupal.org/node/173880 for more information about overriding themable output.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

stieglitz’s picture

Title: Birthday Block question » Birthday Block issue
Status: Closed (fixed) » Active

This is a great module. Thanks! However I created a text field in profiles to hold birthdays. I then discovered the birthday module. I installed it and everything seemed to be working fine. Blocks showed correctly. I then went back into the profile configuration and deleted the text field, but it kept showing up. Whenever I clicked on the textfield when entering profile info I got a 404 error. I then went into the database and deleted the text row of the table. Now I cant get anywhere on the site. Perhaps this is a problem with the profile module? Any ideas on what I can try. I apologize....I am a Dru-wbie

maartenvg’s picture

Title: Birthday Block issue » Birthday Block question
Status: Active » Closed (fixed)

Man, that sound quite awful. I've no idea how that could've happened, but I highly doubt it is caused by the Birthdays module.

one thing you might try is to disable the birthdays module (by going into the database, in the "system" table you have a column 'status' set this to '0' for the birthdays module). If that solves the problem, *yay*, otherwise try the same for the profile module. When your site is alive again, you can start trying to debug the problem. Also, make a backup of your database before you start fixing things, so when you break something you can go back.

And when it isn't fixed, please create a new issue for this instead of using this one, because your problem is unrelated to this issue.