PDA

View Full Version : stats module question


indie
12-12-2004, 10:30 AM
How can i change the code so birthdays are listed in line with a comma,
instead of stacked...

I want it like
username, username2, username3

Not
username
username2
username3

Because i have it in the center module..

I looked at the code, can't figure it out..

thanks

Brian
12-12-2004, 10:40 AM
If you look in your stats.php file for this code:
$birthdays = str_replace(array('member.php', ','), array($vboptions['bburl'] . '/member.php', '<br />'), $birthdays);


And change it to this:
$birthdays = str_replace('member.php', $vboptions['bburl'] . '/member.php', $birthdays);

That should change them to be separated by commas.

Our Sponsors
 

indie
12-12-2004, 11:25 AM
Perfect!
thanks.

I'm assuming it will break to the next line when it hits the end of the table, correct?

Brian
12-12-2004, 11:33 AM
Sorry, I'm not sure exactly what you mean... When it gets to the end of the table it will just end the table...

Our Sponsors
 

indie
12-12-2004, 11:37 AM
Sorry for being confusing, i just meant it will hopefully wrap to the next line if there are a lot of birthdays...

Any idea on how to put "Today's Events" in a module? Like the way it is listed at the bottom of forum home page?

Thanks!

Brian
12-12-2004, 11:39 AM
Ahhh, ok. Yes, it will wrap to the next line assuming you don't have any extremely long usernames. ;)
I believe there is a Today's Events hack posted somewhere here.