View Full Version : birthday modification
Chadi
12-08-2005, 03:56 AM
How do I make the forumhome birthday list appear one member per line instead of the current below
mjaiy (55), Hann (49), kay simmons (46), terrep263 (44), J Opti (41), Kiwiguy (34), MillisaAnn (29), Eden (28), Jehovah Jireh (28), Poly (28), psalm912 (27), 4_Jesus (25), ShandrA (18)
Instead, it would be nicer this way:
mjaiy (55)
Hann (49)
kay simmons (46)
.....
(notice without commas also)
Thank you
Marco van Herwaarden
12-08-2005, 06:38 AM
This is not tested, but try the following:
- Create a new plugin at the forumhome_complete hook location. Give it any name you want.
- Copy & paste the following into the code box, and save the plugin (make sure to set it also as active):
global $birthdays;
$birthdays = str_replace(", ", "\r\n", $birthdays);
Not sure if it will work, but worth a try.
Might have to replace ", " with <br /> depending on the style too
Marco van Herwaarden
12-08-2005, 07:48 AM
Hmm yes.
Ok then if the above not work, try:
global $birthdays;
$birthdays = str_replace(", ", "<br />", $birthdays);
Chadi
12-08-2005, 01:22 PM
Excellent :D Works (with <br />
Chadi
01-01-2006, 06:34 PM
By the way, any way to have this list them alphabetically? :)
Chadi
01-03-2006, 05:35 PM
By the way, any way to have this list them alphabetically? :)
*Bump*
Chadi
01-05-2006, 11:18 PM
Hate bumping things, but what other choice do I have? :D
I hope waiting 2 days between posts is fair enough
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.