vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   removing b-day's from calendar if user stop's posting (https://vborg.vbsupport.ru/showthread.php?t=45738)

diettalk 11-15-2002 01:13 AM

removing b-day's from calendar if user stop's posting
 
I'd like to remove birthdays of users who stop posting or have 0 post count.. is that possible?

Bison 11-15-2002 03:52 PM

Best solution:

"Mass Delete In-Active Members and zero posters!"

If they find out that they have been deleted, you need to make it clear that they MUST remain active or else ...

Remember, "You're the boss" ... you have to make it clear about what type of members you want! Don't try adding all of these hacks when all that's needed is a definite move on your part ... OK? :)

Also, I may add that you should ask your members to set in their profiles IF they will be away for a certain amount of time. If you don't have this feature, I believe Bira created a "Away Message for User's" hack that might suit this need.

Regards...

diettalk 11-25-2002 01:17 PM

Thanks.. but I would rather try to get people to post, instead of deleting everyone... eventually I will have to and have deleted inactive and 0 post accounts.

but in the mean time, I would like to have a hack that will not show b-days (and/or calendar events) of anyone who has less than X amount of posts and who is inactive user.

Xenon 11-25-2002 01:58 PM

should work:

open calendar.php find:
PHP Code:

  if ($calbirthday == 1) {
     
// Load the birthdays for this month:
     
$birthday=$DB_site->query("SELECT birthday,username,userid from user where birthday like '%-$doublemonth-%'");
  } 

and change to
PHP Code:

  if ($calbirthday == 1) {
     
// Load the birthdays for this month:
     
$birthday=$DB_site->query("SELECT birthday,username,userid FROM user WHERE lastpost > ".(time()-3600*24*30)." AND birthday like '%-$doublemonth-%'");
  } 

that should just show birthdays of users which have posted within the last 30 days

diettalk 11-25-2002 03:28 PM

Thanks Stefan.. it works great. Thanks a bunch.

Xenon 11-25-2002 03:42 PM

:)
you're welcome


All times are GMT. The time now is 03:55 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.01001 seconds
  • Memory Usage 1,721KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete