vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Auto send a greeting PM/Email to Birthday members daily? (https://vborg.vbsupport.ru/showthread.php?t=29344)

Byron 10-02-2001 05:54 AM

Do we have a hack to auto send a greeting PM/Email to Birthday members daily?

If we do not have a hack, does anyone knows how to do this?

Hope to have this feature in the next VB version.

Thanks
Byron

merk 10-02-2001 09:24 AM

I think this would involve running a Cronjob that hits a certain script once every day...

Not sure.

orca 10-02-2001 12:13 PM

Yep, this would in fact need a cronjob. However, I guess it would be easier to hack that the popup would appear if the user would visit the forum that day. May you could specify a time frame within the popup appears.

Byron 10-09-2001 04:48 AM

Personally, I would prefer an email to be send to each birthday member on each day. This will help to increase return traffic too.

Rcooper 10-09-2001 12:28 PM

I agree a birthdya message e-mailed would be a great way to "remind":rolleyes: then of your board! I would also be interested in this!

Ryan
:rolleyes:

amykhar 10-10-2001 07:46 PM

This code ( a real ugly piece of work) will do it BUT php won't run as a cronjob on my host.

I use a windows scheduler program to hit the script with my browser every day at Midnight.

PHP Code:

<?php
         
require "global.php";
         
         
$today=date("-m-d");
         
$result $DB_site->query("SELECT username, email FROM user WHERE birthday like '%$today'");
         for (
$m=0$m mysql_num_rows($result); $m++) {
                  list(
$username$email) = mysql_fetch_row($result);
                 echo 
$username "<br>";
                 
$message "Happy Birthday $username!  Come celebrate your day at [url]http://www.yourforums.com[/url]";
                 
mail ($email,"Happy Birthday!",$message,"From: \"webmaster@yourforums.com\" <You>");
                     }
         
?>


bargie 10-12-2001 09:53 PM

i was working on this script a little while ago, i need one more bit of code, can any one tell me what i would need to code this

Store todays date (Day and month) in a table (all-ready set the table up)
Check that the date isn't todays

i have got this so far
$today = date("m-d");

$ecardcheck=$DB_site->query("SELECT date FROM ecard");

if ($ecardcheck=$today) {

$DB_site->query("UPDATE ecard SET date='$today'");

there is alot of other code but this is what i need to know
anyone help
i will release the hack when i know this.

jamie

M.C. 11-11-2002 01:49 AM

xm.... i need that hack too, but i don`t know PHP :( so... i just lift up topic! ;)

JulianD 11-11-2002 01:59 AM

https://vborg.vbsupport.ru/showthrea...thday+greeting


Use the search tool next time :p

Logician 11-11-2002 08:54 AM

Quote:

Originally posted by orca
Yep, this would in fact need a cronjob.
The referred hack can be used even if your hosting company does not give you cron job feature. It simulates cron in itself so will work even though you dont have cron jobs..

I planned to revise and enhance this cron simulation feature on its own but noticed that vb3 will integrated the feature by default so dropped the project..


All times are GMT. The time now is 06:24 AM.

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.01071 seconds
  • Memory Usage 1,735KB
  • 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)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete