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)
-   -   Member of the Day! (https://vborg.vbsupport.ru/showthread.php?t=34779)

NexDog 08-15-2002 05:49 AM

Double post. :tired:

NexDog 08-16-2002 06:38 AM

Quote:

Originally posted by FireFly
Replace:
Code:

                                      WHERE userid<>$daybits[1]
with:
Code:

                                      WHERE userid<>$daybits[1] AND lastactivity>".time()-(86400*14)."
(14 is the number of days)

By the way, I'm not sure myself whether it's lastactivity or lastvisit we need to check, so I'm open for corrections here. :)

Well, that produced this:

Code:

Database error in vBulletin 2.2.6:

Invalid SQL: -1209600
                                        AND (usergroupid=5
                                          OR usergroupid=6
                                          OR usergroupid=7
                                          OR usergroupid=2)
                                      ORDER BY RAND()
                                      LIMIT 1
mysql error: You have an error in your SQL syntax near '-1209600
                                        AND (usergroupid=5
          ' at line 1

mysql error number: 1064

Date: Friday 16th of August 2002 05:47:34 AM
Script: http://www.hostnexus.com/forum/forum/
Referer:

So I just used the minimum posts requirement instead of last activity....

Boofo 08-16-2002 06:42 AM

Did you try lastvisit?

Quote:

Originally posted by NexDog


Well, that produced this:

Code:

Database error in vBulletin 2.2.6:

Invalid SQL: -1209600
                                        AND (usergroupid=5
                                          OR usergroupid=6
                                          OR usergroupid=7
                                          OR usergroupid=2)
                                      ORDER BY RAND()
                                      LIMIT 1
mysql error: You have an error in your SQL syntax near '-1209600
                                        AND (usergroupid=5
          ' at line 1

mysql error number: 1064

Date: Friday 16th of August 2002 05:47:34 AM
Script: http://www.hostnexus.com/forum/forum/
Referer:

So I just used the minimum posts requirement instead of last activity....


NexDog 08-16-2002 06:44 AM

Not a happy chappie though. ;)

Hack still rocks Chen. To chose an active member from the last 14 days is much better. What is wrong with the syntax in this statement:

Code:

WHERE userid<>$daybits[1] AND lastactivity>".time()-(86400*14)."
???

Boofo 08-16-2002 06:47 AM

Try this and let me know what happens:

Code:

WHERE userid<>$daybits[1] AND lastvisit>".time()-(86400*14)."
Quote:

Originally posted by NexDog
Not a happy chappie though. ;)

Hack still rocks Chen. To chose an active member from the last 14 days is much better. What is wrong with the syntax in this statement:

Code:

WHERE userid<>$daybits[1] AND lastactivity>".time()-(86400*14)."
???


NexDog 08-16-2002 07:08 AM

You mean:
Code:

WHERE userid<>$daybits[1] AND lastvisit>".time()-(86400*14)."
I'm not to keen as it took a while to identify the problem.....

NexDog 08-16-2002 07:10 AM

Ooops, didn't see that post, dude. You want to try it?

Boofo 08-16-2002 07:11 AM

Yes. Did you try it yet? :)

Quote:

Originally posted by NexDog
You mean:
Code:

WHERE userid<>$daybits[1] AND lastvisit>".time()-(86400*14)."
I'm not to keen as it took a while to identify the problem.....


NexDog 08-16-2002 07:15 AM

You won't know until the a new day and a visitor triggers the MOTD query. That's 18 hours for me.

Boofo 08-16-2002 07:20 AM

But did you get an error with that like you did with the other code?

Quote:

Originally posted by NexDog
You won't know until the a new day and a visitor triggers the MOTD query. That's 18 hours for me.


All times are GMT. The time now is 11:04 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.02472 seconds
  • Memory Usage 1,748KB
  • 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
  • (9)bbcode_code_printable
  • (5)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