vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Automatic Birthday Thread (https://vborg.vbsupport.ru/showthread.php?t=100607)

divided_by_fear 11-20-2005 04:50 AM

ok i set this to hour 1 and it spams my board with threads how can i stop that? i figured it would create one thread for that day for the persons birthday but it post one and keeps going on and post the same threads numerous times... and i have it set on the first hour of the day

882 Automatic Birthday Thread 01:50, 20th Nov 2005 Birthday Thread created for: gizmo27
1881 Automatic Birthday Thread 01:45, 20th Nov 2005 Birthday Thread created for: gizmo27
1880 Automatic Birthday Thread 01:35, 20th Nov 2005 Birthday Thread created for: gizmo27
1879 Automatic Birthday Thread 01:33, 20th Nov 2005 Birthday Thread created for: gizmo27
1878 Automatic Birthday Thread 01:32, 20th Nov 2005 Birthday Thread created for: gizmo27
1877 Automatic Birthday Thread 01:31, 20th Nov 2005 Birthday Thread created for: gizmo27
1876 Automatic Birthday Thread 01:30, 20th Nov 2005 Birthday Thread created for: gizmo27
1875 Automatic Birthday Thread 01:29, 20th Nov 2005 Birthday Thread created for: gizmo27
1874 Automatic Birthday Thread 01:28, 20th Nov 2005 Birthday Thread created for: gizmo27
1873 Automatic Birthday Thread 01:27, 20th Nov 2005 Birthday Thread created for: gizmo27
1872 Automatic Birthday Thread 01:24, 20th Nov 2005 Birthday Thread created for: gizmo27
1871 Automatic Birthday Thread 01:23, 20th Nov 2005 Birthday Thread created for: gizmo27
1870 Automatic Birthday Thread 01:22, 20th Nov 2005 Birthday Thread created for: gizmo27
1869 Automatic Birthday Thread 01:21, 20th Nov 2005 Birthday Thread created for: gizmo27
1868 Automatic Birthday Thread 01:20, 20th Nov 2005 Birthday Thread created for: gizmo27

outlaw621 11-20-2005 04:55 AM

You need to set the cron to run at a specific time and not at every hour. For instance, if you set your cron to run at hour 23 and minute 55 then the birthday script will run everyday at 11:55 PM

Mine is set at 5 0 * * * which runs it at 12:05 AM

divided_by_fear 11-20-2005 04:56 AM

ok i think whats going on is its confliting with the birthday email set up by vbulletin

outlaw621 11-20-2005 05:00 AM

I have not changed the default settings for the birthday email and everything is working correctly. Set your minutes and hour time but leave a * in everything else.

divided_by_fear 11-20-2005 05:03 AM

now these both run off the same cron file right?

outlaw621 11-20-2005 05:06 AM

No. The birthday thread should be includes/cron/birthdaythread.php and thye birthday email should be includes/cron/birthday.php

divided_by_fear 11-20-2005 05:08 AM

ok last question now what happens if say a member registers later then the script is run they wont get picked up?

Lea Verou 11-20-2005 03:31 PM

Something like this but instead of creating threads it made posts in a specific thread would be really useful to me :)

GamerJunk.net 11-21-2005 04:16 PM

How would I be able to make this show the username and avatars in the post?

kall 11-22-2005 03:35 AM

I am still not getting anything printing for $bday_people .. :(

Latest version installed over the top of, then removing old one and reinstalling.. does it only fill up if there is more than one birthday person?

RGSMDNR 12-02-2005 01:42 PM

its posting the thread at about 10pm the day of the birthday...?

divided_by_fear 12-02-2005 01:46 PM

u have to edit the cron to make it post earlier... im still having trouble with it... it was posting over and over the same thing in the thread for the same users birthday.... i set mine to 1:01 am and it works ok but the funny thing is right now it still works and i have it shut off... seemed to work better when i shut it off in the product section and left the cron

outlaw621 12-02-2005 01:52 PM

One thing to note. Check your servers time setting. For example, you set it for 12:01 AM est but your server is located in California. there is a 3 hour time difference so in all actuality, your script would really run at 3:01 am est when the server reaches 12:01 in their time zone.

RGSMDNR 12-02-2005 01:56 PM

which line do i edit?

divided_by_fear 12-02-2005 01:59 PM

you dont have to edit a line you have to edit the cron in your Scheduled Tasks

RGSMDNR 12-02-2005 02:50 PM

ahh... found it!

Xtrato 12-02-2005 07:42 PM

Ok how can i get it to add the signature whats the code to add that to the postbit.

$signature??

Ramsesx 12-06-2005 03:50 PM

XML-Fehler: mismatched tag in Zeile 46
Got this error from the german xml file, product import was right?

Andreas 12-06-2005 04:10 PM

The XML should be fixed now.

Ramsesx 12-06-2005 04:15 PM

Error: Datei ungültig :squareeyed:
Installed now the english version and added phrases, thanks.

chet 12-12-2005 07:53 PM

where do I put birthdaythread.php?

Thanks

Ranger187 12-26-2005 07:10 PM

It didn't create the thread....

MB Dreamz 12-30-2005 01:40 PM

Works perfectly! Thanks.

CarpHunter 01-05-2006 01:45 AM

Good to see its already ported to 3.5

Use this hack already in 3.0.7 so cant do without it anymore :nervous:

trancetopia 01-06-2006 05:58 PM

Hello, just installed and get the following error when executing the cron job:

Fatal error: Call to a member function on a non-object in /home/littlewa/public_html/includes/cron/birthdaythread.php on line 117

It creates the thread fine but concerned about the error.

Is there any reason for this to happen?

Thanks.

Puntoboy 01-20-2006 03:19 AM

brilliant hack

cheers fella's.

Gripemaster 01-24-2006 02:05 PM

Where is the birthdaythread.php uploaded to? The forum directory or /includes?

*Needs to test before clicking install*

bloodwrath 01-26-2006 05:11 AM

installed and very slick

nicedreams 01-27-2006 04:43 AM

It's not creating the thread for me in 3.5.3

Jim

EDIT - It works now. Had another plugin interfering with it.

caimakale 01-27-2006 06:49 AM

This is the error I get in 3.5.3

Code:

Automatic Birthday Thread

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/website/public_html/includes/cron/birthdaythread.php(102) : eval()'d code on line 5

Any ideas or help?

Mikecp421 01-28-2006 08:27 PM

nice thanks, will buy the regular one soon!

caimakale 01-28-2006 09:22 PM

Quote:

Originally Posted by caimakale
This is the error I get in 3.5.3

Code:

Automatic Birthday Thread

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/website/public_html/includes/cron/birthdaythread.php(102) : eval()'d code on line 5

Any ideas or help?

This error only occurs when I run the cron. It only occurs on days when people have a birthday.

No birthday....no errors.

The line in question?
Code:

eval(fetch_email_phrases('bdaygreet', $userinfo['languageid']));
Anybody?

Mikecp421 01-29-2006 12:33 PM

I installed this and it does not post at all, I checked a member today and his profile has a displayed birthday so I dont know?? Any ideas

caimakale 01-29-2006 06:10 PM

Quote:

Originally Posted by Mikecp421
I installed this and it does not post at all, I checked a member today and his profile has a displayed birthday so I dont know?? Any ideas

Mike go into your Admin CP >> Scheduled tasks >> Scheduled Task Manager. Find the Automatic Birthday Thread and click on "Run Now".

When you do that are you getting the same error as me? I noticed you too are running 3.5.3, might be a bug with this version.

Mikecp421 01-29-2006 06:20 PM

I didn't know this was an option, thanks and yes I did get this error when trying that

Automatic Birthday Thread

Warning: main(/www/m/meogeecom/htdocs/./includes/cron/birthdaythread.php): failed to open stream: No such file or directory in /admincp/cronadmin.php on line 64

Warning: main(): Failed opening '/www/m/meogeecom/htdocs/./includes/cron/birthdaythread.php' for inclusion (include_path='.:/usr/local/php4') in /admincp/cronadmin.php on line 64

Done

kall 01-29-2006 06:30 PM

This works absolutely fine for me on 3.5.3.

Those of you who are having difficulties: Do you have any prior versions installed? If so, Uninstall them (especcially if you had this hack installed on 3.0.x .. this will require enabling debug mode and removing the entries from the AdminCP - vBulletin Options list.

Mike: Yours appears to be related to running on IIS? I am sorry, but I have no experience with this setup. Try entering the full path to the file in your Scheduled Task area.

Mikecp421 01-29-2006 06:39 PM

I got it figured out, the php folder it calls to is not named the same, the folder needs to be changed to birthdaythread.php and the error goes away

Mikecp421 01-29-2006 06:40 PM

now I need to check somehow if it works, let me try to run it now

caimakale 01-29-2006 07:37 PM

Mine had to do with my message. I took out all bb code and smilies and it works now.

Mikecp421 01-29-2006 07:40 PM

i'll give that a try then too


All times are GMT. The time now is 11:37 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.01274 seconds
  • Memory Usage 1,810KB
  • 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_code_printable
  • (2)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