vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Automatic Birthday Thread (https://vborg.vbsupport.ru/showthread.php?t=62613)

jugo 08-30-2004 01:15 PM

Mine has an issue...I run the Cron...but it just sits there and nothing happens.

Here is the CHANGEME Lines:

PHP Code:

if ($emails)
{
    
log_cron_action('Birthday Email sent to: ' $emails$nextitem);
    
$birthday_greeting_thread "Waddup My Peeps,\n\n[b]Here are today's Birthdays![/b]\n\n";
    
$birthday_greeting_thread $birthday_greeting_thread.$bday_people;
    
$birthday_greeting_thread $birthday_greeting_thread."\n\n[i]w00t w00t! I hope you like getting OLD!!![/i]";

    
$greetermail="birthdayfairy@s3squad.com"//CHANGE ME: Birthday greeter email
    
$greeter=2// CHANGE ME: Birthday greeter user ID
    
$greeter_name="jugo????"//CHANGE ME: Birthday greeter user name
    
$greetings_forum=2// CHANGE ME: Birthday forum ID
    
$todays_date11date("F j, Y"mktime (date("H")+$timesetdate("i"), date("s"), date("m"), date("d"), date("Y")));
    
$title3"Happy Birthday to "
    
$title3.= $bday_title
    
$title3.= "on "
    
$title3.=$todays_date11;

// Creating Thread 


ChurchMedia 09-02-2004 01:53 AM

It's working. Mine does that too. I'm not sure why it's not giving us a "done" message. It shows up in the cron logs, though. If anyone figures out what the problem is, let me know. Fortunately it isn't a big problem.

bspiller82 09-03-2004 06:50 AM

It seems after I upgraded from the old Birthday script to the new it stopped working. There is no errors that I see just that it's not posting the thread.

venomx 09-03-2004 12:25 PM

I am going to install this after the cron thing works right :P

trackpads 09-03-2004 01:47 PM

Is there a way to make it use Pets money instead of UCash?

Thanks again!!!

-Jason

ChurchMedia 09-03-2004 05:19 PM

Quote:

Originally Posted by venomx
I am going to install this after the cron thing works right :P

The cron message has never finished. It's really not a big deal and doesn't hurt anything. You never even see the message unless you run it manually.


So, I wouldn't worry about it and go ahead and install the hack :)

ChurchMedia 09-03-2004 05:23 PM

Quote:

Originally Posted by bspiller82
It seems after I upgraded from the old Birthday script to the new it stopped working. There is no errors that I see just that it's not posting the thread.

I suggest you start over with a fresh copy of birthday.php (without any hacks at all) and give it another shot. :)

ChurchMedia 09-03-2004 05:26 PM

Quote:

Originally Posted by trackpads
Is there a way to make it use Pets money instead of UCash?

Thanks again!!!

-Jason

Sure you can. I don't know what the code would be, though. Take a look at the code for the Pets hack and find the lines that give Pets money. Just insert those lines in place of the UCash lines. They should look very similar the to the Ucash code. Make sure the User ID variable looks the same as the Ucash hack and you should be okay.

bspiller82 09-06-2004 06:55 AM

Quote:

Originally Posted by ChurchMedia
I suggest you start over with a fresh copy of birthday.php (without any hacks at all) and give it another shot. :)

I did that and it diddn't work. I'll retry it with a fresh copy again and see what happens.

jugo 09-07-2004 08:40 PM

OK... it works. Awesome.

When i run it manually it just sits there but as a cron job it works just fine...I in cluded the /you hack and it does soem pretty cool things.

OK...Is there a way to make it only post the birthdays for those who have recent activity in the last xx days AND with at least xx posts?


All times are GMT. The time now is 12:29 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.01435 seconds
  • Memory Usage 1,755KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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