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)
-   -   Automatic Greeting Email/PM/Threads for Member Birthdays (https://vborg.vbsupport.ru/showthread.php?t=39663)

Lionel 06-14-2002 05:31 AM

I've got 5 birthdays today... the thread posted in the correct forum, but it shows only 2 birthdays :ermm:

Logician 06-14-2002 05:48 AM

Quote:

Originally posted by Lionel
I've got 5 birthdays today... the thread posted in the correct forum, but it shows only 2 birthdays :ermm:
Make sure other 3's usergroup is not excluded in options part.

Lionel 06-14-2002 06:05 AM

yep, number 3 is the users awaiting confirmation and that was the case

Logician 06-14-2002 06:17 AM

glad you figured that out. You either disable it or if you want not to greet awaiting confirmation members leave it as it is.

Lionel 06-14-2002 06:26 AM

My boards are 100% community based and I am sure the members appreciate to be remembered.

I must tell you that I was so impressed by your hack that I went hunting for your other hacks and installed a couple more. Both the webtemplates and the way that you provide for "cut and paste" of any section of a thread into news were impressive.
It's also good to know who rated.

Nice work, keep it up!

Logician 06-16-2002 08:33 AM

Addition to the Hack:

This small modifications will play happy birthday song to your members when they visit your board in their birthdays.


Features:
  • This addition is independent from the hack itself. So you can use one without another. That is, you can apply this modification even if you didnt applied the hack itself
  • It will play any .wav or .mid sound file to your users in their birthdays when they visited your board's main page.

Installation:

1-Edit global.php

find:

PHP Code:

// figure out the chosen style settings
unset($codestyleid);
unset(
$style); // prevent some weird issues 

After that add:

PHP Code:

// Logician Play Happy Birthday Song in users' birthday hack
$today_birthday=substr($bbuserinfo[birthday],-5);
$today_of_user vbdate("m-d",time());
if (
$today_of_user==$today_birthday) {$birthdaysong='<EMBED SRC="mysound.wav" hidden="true" AUTOSTART="true" loop=1  PLAYCOUNT=1>';}
// Logician Play Happy Birthday Song in users' birthday hack 

2- Upload the midi or wav you want to play under your board directory and replace mysound.wav with its name in the code.

3- Admin CP/Modify Template, edit template: forumhome

Find:
PHP Code:

$headinclude 

Replace it AS:

PHP Code:

$headinclude
$birthdaysong 

Notes:
  • The hack will play the song in the board's home page only. If you wanted to play in other pages too (user CP for example) add the $birthdaysong variable to any template you want
  • If you want the song be played in any page of your board, remove the $birthdaysong variable form forumhome and put it into a more global template like header. (But it would be boring to browse the board with a sound file chasing you in every page you visited so be warned!) ;)
  • By default song will be played once only when the page is loaded. If you want to play more than once replace 1s in "loop=1 PLAYCOUNT=1" part.

Enjoy!
Logician

Ps. If you apply the add-on that changes user's style in their birthdays, please check its post and reapply the code. I catched a bug in the code and corrected it. Considering the fact that nobody hollered, it seems nobody uses it though :)

amity 06-21-2002 03:12 AM

now i can't figure out why it isn't posting the thread on the forum.

if i put 1 for the forum number, does that mean the first forum i created? or the first forum listed on the main page? and does the numbering include the category as a forum?

thanks and blessings,
amity

Logician 06-21-2002 05:09 AM

Quote:

Originally posted by amity
now i can't figure out why it isn't posting the thread on the forum.

if i put 1 for the forum number, does that mean the first forum i created? or the first forum listed on the main page? and does the numbering include the category as a forum?

if you put 1 for the forum number this means that you want it to post in the forum with forum id 1. That is:

http://www.yoursite.com/forum/forumd...p?s=&forumid=1

Do mail/pm/admin notifications run ok?

David Bott 06-23-2002 07:09 PM

For the last 3 days this hack has sent out more than one birthday greeting and I receive more than one PM of the ones that went out.

What I mean is..When I go into my PM the next day...I find 2 or three of the notcies of what went out. They all have the same time stamp and the same data in the message of who it went to.

When I contacted one of the birthday people on the list...they told me they received the message more than once.

NOTE...I am using it for E-MAIL only sending with it checking for their OK to send a message.

Please advise.

Logician 06-23-2002 07:32 PM

Quote:

Originally posted by David Bott
For the last 3 days this hack has sent out more than one birthday greeting and I receive more than one PM of the ones that went out.

When I contacted one of the birthday people on the list...they told me they received the message more than once.

David increase the $estimated_load value.

The very high trafic of your board and very low estimated_load number (compared to your traffic) causes it. This is how it happens:

One visitor triggers the hack at midnight, the hack begins to compile birthday greetings but before it finishes and updates the database date, another visitor triggers it again (the first visitor's trigger didnt finished yet, so database date is still yesterday). Hack will be done in less than a second and your traffic is so high that, it gets triggered more than once in that very second and produce more than 1 greetings.

With so high traffic you really dont need so low estimated_load value. Increase it and you'll be fine.


All times are GMT. The time now is 03:30 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.02774 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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