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 01-28-2003 10:19 AM

Quote:

Originally posted by Intex
I set this up last night and it certainly sent an email, PM and put a thread in a forum as I specified in my options. However it only put the subject title in, i.e. Happy Birthday to Our Members for the thread and no body content, Happy Birthday !!! in the PM but no body content etc.

Sounds like a template problem. You can
1- make sure templates are created and their names are exact (check CAPS too!)

2- Create the templates in all template sets, if you have more than one..

Either one should fix the problem.. :glasses:

Okiewan 01-28-2003 10:23 AM

It occassionaly leaves-out the names in posts on my board as well.

Logician 01-28-2003 11:12 AM

Quote:

Originally posted by Okiewan
It occassionaly leaves-out the names in posts on my board as well.
if you mean it does not congratulate the birthday for some members this is related to $excluded_usergroups settings. By default usergroup 3 is set to be ignored so if member is from usergroup 3 (ie waiting for email confirmation), hack will ignore them..

Change the settings if you want otherwise..

Okiewan 01-28-2003 11:16 AM

Not the problem... it leaves ALL names out, meaning, a blank post. Seems to do it every few days.

NuclioN 01-28-2003 11:33 AM

Fatal error: Cannot redeclare make_seed() in /www/global.php(321) : eval()'d code on line 323

???

Logician 01-28-2003 11:55 AM

Quote:

Originally posted by NuclioN
Fatal error: Cannot redeclare make_seed() in /www/global.php(321) : eval()'d code on line 323

???

You have another hack that uses the same function. Just delete these line from my hack code to avoid the clash:
PHP Code:

function make_seed() 
{
list(
$usec$sec) = explode(' 'microtime());
return (float) 
$sec + ((float) $usec 100000);


Quote:

it leaves ALL names out, meaning, a blank post. Seems to do it every few days.
Do you have admin notification on? Turn it on and see if its content is also blank or not? Also try to create templates in all templates sets if you have more than 1..

NuclioN 01-28-2003 12:28 PM

Tnx Logician, it works. :) Clicks install

Intex 01-28-2003 06:19 PM

I actuallly cut and paste the text titles etc. so those should be ok. However I do have two templates and I didn't copy the template to both. Since you mentioned it, I reckon that must be the answer :).

Thx. m8 and keep up the cool hacks.

Quote:

Originally posted by Logician

Sounds like a template problem. You can
1- make sure templates are created and their names are exact (check CAPS too!)

2- Create the templates in all template sets, if you have more than one..

Either one should fix the problem.. :glasses:


ChurchMedia 01-30-2003 05:45 PM

Fantastic hack! I had been emailing users on thier birthdays. Now it's automatic!

I'd like to give them a "birthday present" of 50 points (Lesane's store hack). I know the code is:

Code:

$DB_site->query("UPDATE user SET storep=storep+50 where userid='$userinfo[userid]'");
But I'm not sure where to put it in the index.php file. Any help?

Logician 01-31-2003 08:39 AM

Quote:

I'd like to give them a "birthday present" of 50 points (Lesane's store hack). I know the code is:
I see.. This should work:

edit hack code (index.php), find:

PHP Code:

$celebrated_at_least_one++; 

After that add:

PHP Code:

$DB_site->query("UPDATE user SET storep=storep+50 where userid='$birthday_children[userid]'"); 

Enjoy..


All times are GMT. The time now is 11:59 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.01663 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (6)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