vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Filter Birthdays By Posts (https://vborg.vbsupport.ru/showthread.php?t=38248)

afterlab 05-04-2002 10:00 PM

Filter Birthdays By Posts
 
Filter Birthdays By Posts
Because members sometime only register to be famous.
============================================

This hack will only show Birthdays in the calendar and forumhome if the user's postcount is more than 10. (That number can be changed, just check out the install file.. Find the 10 in there somewhere. ;))

Compatibility: This hack will work with vB 2.0.3 and higher.
Install Time: 1-2 Minutes
Download: Instructions are in attachment.

Keyser S?ze 05-04-2002 11:47 PM

OMG i just suggested this like 10 mins ago, i assume someone else did before me, or did u make this that quick?

great hack BTW!

afterlab 05-05-2002 12:06 AM

heh.. I was bored and wanted to help people out, so I was just browsing the Request forum, and then made this by your request.

Thanks.

Keyser S?ze 05-05-2002 12:57 AM

wow thats a record! :p great man, thanks, been wanting this for a log time :D

afterlab 05-05-2002 01:12 AM

heh, glad to be of help, IceMalee. I see why you needed this: http://www.emusanet.com/forums/calendar.php

:eek:

AnkisethGallant 05-05-2002 01:28 AM

Afterlab, your site, your boards, and your hacking abilities amaze me.

Job well done.

Keyser S?ze 05-05-2002 01:44 AM

man u have no idea, back in the day when we had it so u had to be registerd to download, we had like 80,000 members, and 79,000 with 0 posts :p so the birthday thing was so long we had to turn it off :( but since then we changed that, and then went and cleared out all the dead members

but still, great hack


something to becareful of, i set mine to post>99 and that made it not work, but post>100 works fine, would be great to have that changeable in the admin cp >options under "turn today birthday on/off"

thanks again

FWC 05-05-2002 02:16 AM

Good idea. Thanks. :)

Keyser S?ze 05-05-2002 07:20 AM

this hack just seems to have stopped working :( check out the forums, most all these b-day users have 0 posts, also attached is my functions.php

www.emusanet.com/forums

FWC 05-05-2002 07:39 AM

Quote:

Originally posted by IceMalee
this hack just seems to have stopped working :( check out the forums, most all these b-day users have 0 posts, also attached is my functions.php

www.emusanet.com/forums

First, delete that attachment. We're not allowed to post complete vB files. Then, modify the query in functions.php. I think this will work:
PHP Code:

  $bdays $DB_site->query("SELECT username,userid,birthday
                            FROM user
                            WHERE posts>'101' AND (birthday LIKE '%-
$todayneggmt'
                              OR birthday LIKE '%-
$todayposgmt')"); 



All times are GMT. The time now is 01:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01046 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete