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)

ChurchMedia 02-02-2003 09:07 PM

I'm using vbHome and I have the birthday thread going to the forum for my vcHome page articles. Curiously, the thread shows up on the page, but not the contents of the post.

Example is here: www.churchmedia.net/community/index.php

(I'm working on other vbhome bugs, BTW). Any ideas?

Other than that, the hack is working perfectly and the points addon is great! Fantastic work! :)

Logician 02-03-2003 09:52 AM

Quote:

Originally posted by ChurchMedia
I'm using vbHome and I have the birthday thread going to the forum for my vcHome page articles. Curiously, the thread shows up on the page, but not the contents of the post.

The threads created by my hack are just regular vb threads so are not technically different than other vb threads in anyway.

I don't know vbHome hack, never used it nor checked its code so I don't know why they clash but it's certain that it's not accepting "regular" vb threads as articles and requiring some modifications in them to assign them article status.

Sorry this is all help I can offer..

ChurchMedia 02-03-2003 01:12 PM

Thanks... I'll check with Teck on his hack and see if he has any ideas. Threads posted manually seem to work. I don't know why a thread created automatically wouldn't... :confused:

Sue 02-12-2003 06:06 PM

My members are getting birthday greetings sent to them when their birthdays are months away! :( Help :(

Logician 02-12-2003 06:48 PM

Quote:

Originally posted by Sue
My members are getting birthday greetings sent to them when their birthdays are months away! :( Help :(
Did it happen once at the first run of the hack (then it should be related to the wrong applience of installation step 2, very likely month-date order) or do you experience this problem constantly everyday? You can set the hack to debug mode (so members will not get notifications), turn on admin notification and monitor it for a while to make sure if it's a constant problem..

Erwin 02-13-2003 04:24 AM

Working great so far! Had to make minor changes to incorporate the last title of homepage hack, but it works great!

Sue 02-13-2003 11:45 AM

Quote:

Originally posted by Logician

Did it happen once at the first run of the hack (then it should be related to the wrong applience of installation step 2, very likely month-date order) or do you experience this problem constantly everyday? You can set the hack to debug mode (so members will not get notifications), turn on admin notification and monitor it for a while to make sure if it's a constant problem..

I set it to debug mode after I realized what was happening. :eek:

I'll take a look @ the date thingie and see what's up.

Sue 02-13-2003 11:55 AM

This is what I have in my timetick table:

Code:

id  action  leftdate  leftid 
 1 birthday 2003-02-13 0


Logician 02-13-2003 04:51 PM

Quote:

Originally posted by Sue
This is what I have in my timetick table:

Code:

id  action  leftdate  leftid 
 1 birthday 2003-02-13 0


It looks all right. If your server time is also correct, I strongly believe, the hack should work ok from now on. Please keep an eye on admin notifications..

If it's ok for a few days, this means initial date (step 2) was set wrongly in the installation. You can then turn off debug mode..

tkeil69575 02-20-2003 04:13 AM

hi logician,

super hack :)

is there a way to display the european date format in the thread e.g. 24.02.2002 after the age?

regards tina

Logician 02-20-2003 08:47 AM

Quote:

is there a way to display the european date format in the thread e.g. 24.02.2002 after the age?
Not tested but should work:

Find this:

PHP Code:

                   $greeting_thread.=" * [url=$bburl/member.php?s=&action=getinfo&userid=".$birthday_children[userid]."]".$birthday_children[username]."[/url]";
                  if (
$birthday_children[yas]!='-') {$greeting_thread.="(".$birthday_children[yas].")";}
                  
$greeting_thread.=" ".$birthday_children[birthday]." \n"

and replace it like this:

PHP Code:

if ($birthday_children[birthday] == '0000-00-00') {
        
$birthday321 "N/A";
     } else {
        
$bday explode("-",$birthday_children[birthday]);
        if (
date("Y")>$bday[0] and $bday[0]>1901 && $bday[0]!='0000') {
          
$birthday321  = @date($calformat1,mktime(0,0,0,$bday[1],$bday[2],$bday[0]));
        } else {
          
// lets send a valid year as some PHP3 don't like year to be 0
          // $calformat2 should not contania year identifier so the year doesn't matter
          
$birthday321  = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2],1993));
        }
        if (
$birthday321=="") {
          
$birthday321 ="$bday[1]-$bday[2]-$bday[0]";
        }
     }


$greeting_thread.=" * [url=$bburl/member.php?s=&action=getinfo&userid=".$birthday_children[userid]."]".$birthday_children[username]."[/url]";

 if (
$birthday_children[yas]!='-'
{
$greeting_thread.="(".$birthday_children[yas].")";
}
                  
$greeting_thread.=" ".$birthday321 ." \n"


tkeil69575 02-21-2003 10:27 AM

works great / thank you logician

tina :)

Sliderx 03-04-2003 12:01 PM

thx logician for that greet hack

refertech 03-05-2003 01:21 AM

Logician dont let this go to your head but your to damn smart man. Wow what a cool hack.

Mark

Mutt 03-05-2003 05:45 AM

saw this back at the top and thought I'd chime in again. Love this hack and it's been working great. The members get a kick out of it and I love how it works.

I recently went thru this hack and the email congratulation post count hack and adjusted the vars so they were the same then made the vars settable via the cp. the damn admin notify pms were driving me crazy and I forgot that you could just switch them off :)

jancarlo 03-23-2003 03:38 PM

su vb 230 ogni 15 minuti arrivano gli auguri in pm :( e 24 ore prima :(!!!

???

jancarlo



on vb 230 every 15 minuteren the auguries in pm arrive :( and 24 hours
before :( !!!

???

jancarlo

Logician 03-23-2003 10:19 PM

Quote:

Yesterday at 07:38 PM jancarlo said this in Post #136

on vb 230 every 15 minuteren the auguries in pm arrive :( and 24 hours
before :( !!!

jancarlo I'm not sure I understood your problem, but if timing of the greetings were incorrect, change $timeset variable's value..

jancarlo 03-26-2003 01:49 PM

wowwwwwww grazie tutto ok!!! su vb230 ;)

ciao
jancarlo



wowwwwwww thanks all ok!!! on vb230;)

hello
jancarlo

Intex 03-28-2003 04:40 PM

Logician - In your readme file you have vbulletin's website scrollable in the window. Just out of curiosity how did you do that?

Logician 03-28-2003 06:42 PM

Quote:

Today at 08:40 PM Intex said this in Post #139
Logician - In your readme file you have vbulletin's website scrollable in the window. Just out of curiosity how did you do that?
It's an iframe.. eg.
PHP Code:

<iframe name="cwindow" style="border:0" width=800 height=400 src="https://vborg.vbsupport.ru/showthread.php?threadid=38489"></iframe


maestrosdelweb 04-23-2003 11:37 AM

For next vertion, How about a birthday cake showing next to the birthday user in all threads and memberlist??

dede1 05-12-2003 06:18 AM

Hi

I have chop built in that 2.3.0 however nothing happened neither a
P.M/Mail am sent away nor the birthday in the forum registered.

Does someone know advice?

Logician 05-12-2003 07:12 AM

play with:

// Your estimated daily visitor number for the board (main page only!)
// If the hack sometimes sends the greetings late, lower the number.
$estimated_load=30;

and lower it..

dede1 05-12-2003 09:06 AM

Ok thanks

dede1 05-12-2003 10:23 AM

Thanks that was it runs now it :classic:

OmaniMan 05-27-2003 12:57 AM

Great .... Interesting

Alien 05-27-2003 08:54 PM

Very very nice work... I have it installed now, just have to test it!

-Jason

monstergamer 06-26-2003 07:12 AM

testing it now

gmarik 06-26-2003 09:08 AM

Nice to see this.
Well done, brother.

monstergamer 06-26-2003 09:17 PM

i did the debug mode and it sent me over 100 pm's of the same people
how do i make it stop
*in scared voice - please make it stop*

Logician 06-27-2003 06:40 AM

Getting a lot of notifications happens if you applied STEP2 wrongly and entered a wrong date or in a wrong format. So the hack wouldn't know your real installation date and in the first run will greet birthdays starting from your wrongly entered date until today (thus will produce a lot of greetings.)

It will stop "today"'s date is reached so it is safe to assume that the date in the database is correct now. Thus you shouldn't have any problems from now on. It will go on greeting normally from now on as date is now ok. But if you want to make sure, run this query and confirm date is today or yesterday:
[sql]
SELECT leftdate from timetick where action='birthday';
[/sql]

If you want to remove the hack, you can simply delete the hack code you inserted in index.php. This will uninstall (and stop) the hack.

interfx 07-13-2003 11:28 AM

I installed this, and appears I did everyhting correct... I set it to option 3 (ADMIN)...

How do I know if it is working??? What do I have to do?

Thanks for your help... (I'm sure it is obvious)
InterFX

Logician 07-13-2003 11:46 AM

if you turned on DEBUG option (ie 3), set admin notification ON and enter your email so that you can get greeting report from the hack. (Also make sure you have a few birthdays in the following days). If you get birtdays report ok and hack seems that it is greeting birthdays (actually it does not, as debug mode is on!), you can turn off debug mode. :)

interfx 07-14-2003 09:03 PM

Still never got anyhting (email)

Here's my main settings
$greeting_type=3;
$admin_report=2;
I also entered my correct email...

Also adjusted the load to
$estimated_load=10;

I added the right SQL stuff, and added directly into the index.php inside of Vbulletin... Any other things I should look for to amke this work??? I'm afraid to turn on live, if the debug is not working correctly...

Thanks for any suggestions out there...

INterFX

Logician 07-15-2003 07:24 AM

Quote:

Today at 01:03 AM interfx said this in Post #154
Still never got anyhting (email)

Here's my main settings
$greeting_type=3;
$admin_report=2;
I also entered my correct email...

Also adjusted the load to
$estimated_load=10;

I added the right SQL stuff, and added directly into the index.php inside of Vbulletin... Any other things I should look for to amke this work??? I'm afraid to turn on live, if the debug is not working correctly...

Thanks for any suggestions out there...

INterFX

Run this query and confirm date is today or yesterday:

[sql]
SELECT leftdate from timetick where action='birthday';
[/sql]

If date is today or yesterday it means that hack is working ok.

So why don't you get admin report emails? This is most probably because there some problems about templates. Here is a check list:
* Check all templates are created successfully
* Check template names are correct (CASE - SENSITIVE!!)
* Check there are no trailing space or something in template names
* If you have more than 1 template sets, make sure you created hack templates in your ALL sets.

interfx 07-15-2003 08:48 AM

I tried a few things, and it now seems to be working fine...

I had to lower the estimated load time from 30 to 10 to finally 5... At 5 it finally worked... I'm not sure what this really means - but others out there - go ahead and lower it right away to see if it makes it work correctly...

Thanks for all of the help -
InterFX

Logician 07-15-2003 09:15 AM

if hack didnt work for 3 days altough your estimated load was 10, it means that you have less than 10 visitors a day in your forum home page or testing the script in localhost or testboard so never got visitors in the homepage to initiate the hack.

dano 08-11-2003 05:53 PM

Cant wait to try it out. *Clicks Install*

dano 08-17-2003 08:02 PM

Strange, I installed this and for some reason I can not post polls anymore on the site. I have not installed any other hacks or anything and the polls worked fine before. The hack works great, but I need my polls back, any ideas?

dano 08-18-2003 03:43 PM

^


All times are GMT. The time now is 12:51 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.01541 seconds
  • Memory Usage 1,847KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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