Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2001, 05:54 AM
Byron Byron is offline
 
Join Date: Oct 2001
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #2  
Old 10-02-2001, 09:24 AM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Not sure.
Reply With Quote
  #3  
Old 10-02-2001, 12:13 PM
orca's Avatar
orca orca is offline
 
Join Date: Oct 2001
Location: Switzerland
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-09-2001, 04:48 AM
Byron Byron is offline
 
Join Date: Oct 2001
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Personally, I would prefer an email to be send to each birthday member on each day. This will help to increase return traffic too.
Reply With Quote
  #5  
Old 10-09-2001, 12:28 PM
Rcooper Rcooper is offline
 
Join Date: Nov 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Ryan
Reply With Quote
  #6  
Old 10-10-2001, 07:46 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>");
                     }
         
?>
Reply With Quote
  #7  
Old 10-12-2001, 09:53 PM
bargie bargie is offline
 
Join Date: Dec 2001
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 11-11-2002, 01:49 AM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

xm.... i need that hack too, but i don`t know PHP so... i just lift up topic!
Reply With Quote
  #9  
Old 11-11-2002, 01:59 AM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Use the search tool next time
Reply With Quote
  #10  
Old 11-11-2002, 08:54 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04905 seconds
  • Memory Usage 2,253KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete