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)

ChurchMedia 08-27-2004 05:07 PM

Great idea. You can also use \n for line breaks. I'm going to post a new version of the b-day hack today and I'll change the HTML to BB code. Thanks!

ChurchMedia 08-27-2004 08:38 PM

Version 2.0 has just been released. Bug fixes, new features and update instructions are in the first post.

Enjoy,

NuclioN 08-27-2004 11:29 PM

Works great so far Churchmedia :) Tnx

SnowBot 08-27-2004 11:46 PM

Going to install NOW!!! :)

jluerken 08-28-2004 07:06 AM

Thanks man for version 2. I installed it two minutes ago and get a DB error when running it.

Database error in vBulletin 3.0.3:

Invalid SQL:
INSERT INTO vb3_thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline,iconid, visible)
VALUES
('Happy Birthday to billyjobob, m4|Ranger, XeDa101, on August 28, 2004', 1093680294, 15,
1, 0, 'CFN|BirthdayBot', ,
'CFN|BirthdayBot', 1093680294, 0, 1)
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
'CFN|BirthdayBot', 1093680294, 0, 1)' at line 4

mysql error number: 1064

Can you help?

ChurchMedia 08-28-2004 07:22 AM

Check your variables. The $greeter variable should be a number -- the user ID for CFN|BirthdayBot. Check that and if you still have problems, post the lines with \\change me in them.

EDIT: Actually, it looks like there is no user ID there. Again, make sure the $greeter variable has the correct user ID for the greeter name.

jluerken 08-28-2004 07:31 AM

I wrote greeter1 instead of greeter=1 but now I have a new error which is really one :D

Database error in vBulletin 3.0.3:

Invalid SQL: UPDATE user SET posts=posts+1 WHERE userid=4
mysql error: Table 'usr_web1_3.user' doesn't exist

mysql error number: 1146

Means you've once forgotten to check for table prefixes in this line
UPDATE user SET posts=posts+1 WHERE userid=4
Can you update this and tell me what to change?

jluerken 08-28-2004 07:48 AM

Ok I've done it already.

Pls. change this part of your hack
PHP Code:

// Updating User's Post
$DB_site->query("UPDATE user SET posts=posts+1 WHERE userid=$greeter"); 

with this
PHP Code:

// Updating User's Post
$DB_site->query("UPDATE " TABLE_PREFIX "user SET posts=posts+1 WHERE userid=$greeter"); 


HiDeo 08-28-2004 10:14 AM

Nice hack

Thanks

ChurchMedia 08-28-2004 11:44 AM

Fixed it! Sorry about that!


All times are GMT. The time now is 04:35 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.01746 seconds
  • Memory Usage 1,736KB
  • 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_php_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