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)

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



All times are GMT. The time now is 11:40 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.01422 seconds
  • Memory Usage 1,761KB
  • 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
  • (3)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