View Full Version : Hide birthday on forumhome if postcount<X...
Kingster
06 Jul 2005, 02:35
I've searched around, and I found a hack for 2.2.x to hide the display of a user in "Today's Birthdays" if the user has less than X posts, but I don't see one for 3.0.X.
Can someone build one, or at least point me in the right direction? The new birthday stuff appears to be cached, and I'm struggling with it, nor do I want to break it.
Thanks in advance!
Andreas
06 Jul 2005, 02:44
Easy :)
In functions_databuild.php
FIND
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BELOW that ADD
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Of course X must be replaced with the real number.
Kingster
06 Jul 2005, 03:06
Thanks much!
Though I'm not so sure I want to thank you for making it so simple. Couldn't you have made me edit 7 files, change 3 templates, and add a column or two to my DB? And not have those changes actually do anything? Then I wouldn't feel so dumb. :D
Alrighty then... I gave this a shot, and I'm still seeing users with a zero postcount in "Today's Birthdays". Any idea why?
I looked through the rest of that code section for the birthdays in function_databuild.php, and it seems like it should work. I even ran the query that you told me to modify (after the mod) in mysql (replacing the variables) and it worked.
What gives? Why isn't it working on my forums? :confused:
Thanks much!
Though I'm not so sure I want to thank you for making it so simple. Couldn't you have made me edit 7 files, change 3 templates, and add a column or two to my DB? And not have those changes actually do anything? Then I wouldn't feel so dumb. :D
Alrighty then... I gave this a shot, and I'm still seeing users with a zero postcount in "Today's Birthdays". Any idea why?
I looked through the rest of that code section for the birthdays in function_databuild.php, and it seems like it should work. I even ran the query that you told me to modify (after the mod) in mysql (replacing the variables) and it worked.
What gives? Why isn't it working on my forums? :confused:
bah. The forums are merging my posts.
Anyway... Could someone look at the problem above? It's not working, even though the SQL works right... :confused:
Andreas
06 Jul 2005, 15:35
The cache is only updated once/day, so to force an update you have to clear it first:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Kingster
06 Jul 2005, 18:03
The cache is only updated once/day, so to force an update you have to clear it first:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Thanks, Kirby. That did it. :D
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.