vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Contest type hack (https://vborg.vbsupport.ru/showthread.php?t=24016)

Iliana 07-31-2001 02:24 AM

YOU ARE MY HERO!

Thank you!:)

BradC 07-31-2001 03:01 AM

Hero today, loser tommorow...

this concludes another story book ending...

... the end.

P.S. I FOUND A COW! so there!

snyx 07-31-2001 03:50 AM

http://a236.g.akamai.net/f/236/1428/...m/AA012104.JPG

Freddie Bingham 07-31-2001 03:52 AM

Only 52 posts to get it?

Sarge 07-31-2001 04:07 AM

<a href="http://www.dlrarmy.com/forums/contest.php" target="_blank">http://www.dlrarmy.com/forums/contest.php</a>

here is my error message
Warning: Offset 0 is invalid for MySQL result index 9 in ./admin/db_mysql.php on line 187

here is what I am using

<?
require('./global.php');
?>
<?php
$date1 = "UNIX_TIMESTAMP(\"2001-08-01\")";

$date2 = "UNIX_TIMESTAMP(\"2001-08-31\")";

$users = $DB_site->query(
"SELECT post.userid, count(post.userid) as count, user.username from " .
"post, user WHERE post.dateline >= $date1 and post.dateline <= $date2 " .
"and post.userid = user.userid and user.username <> 'admin' group ".
"by post.userid order by count DESC");
$admin = $DB_site->query(
"SELECT post.userid, count(post.userid) as count, user.username from " .
"post, user WHERE post.dateline >= $date1 and post.dateline <= $date2 " .
"and post.userid = user.userid and user.username = 'admin' group ".
"by post.userid order by count DESC");
?>
<!-- Put your header in here -->
<!-- This is mine -->
<? include("/home/dlrarmy/public_html/forums/head.html") ?>

<p align="center"><b><font face="verdana,arial,helvetica" size="2">The TOP THREE USERS who
posts the most on-topic posts from August 1st, 2001 to Aug 31st 2001 will receive the following: TO BE ANNOUNCED. For

residences in the U.S. and Canada.</font></b></p>
<div align="center">
<table border="1" cellpadding="4" cellspacing="4">
<tr>
<td bgcolor="#9900CC"><b><font face="verdana,arial,helvetica" color="#FFFFFF" size="3">User</font></b></td>
<td bgcolor="#9900CC"><b><font face="verdana,arial,helvetica" size="3"><font
color="#FFFFFF">Posts
from July 8th to Aug 8th</font></font></b></td>
</tr>
<tr>
<td>
<FONT face="verdana,arial,helvetica" size="2">
<br>
<?php
while ($user = $DB_site->fetch_array($users))
{
$username = $user["username"];
echo"$username<br>";
}
echo"<br>";
while ($user = $DB_site->fetch_array($admin))
{
$username = $user["username"];
echo"$username<br>";
}
?>
<br>
</font>
</td>
<td align="center">
<FONT face="verdana,arial,helvetica" size="2">
<br>
<?php
$DB_site->data_seek(0,$users);
while ($user = $DB_site->fetch_array($users))
{
$count = $user["count"];
echo"$count<br>";
}
echo"<br>";
$DB_site->data_seek(0,$admin);
while ($user = $DB_site->fetch_array($admin))
{
$count = $user["count"];
echo"$count<br>";
}
?>
<br>
</font>
</td>
</tr>
</table>
</div>
<p> </p>

<!-- Put any Footer info in here -->
<!-- This Is Mine -->
<?php
include ("/home/dlrarmy/public_html/forums/foot.html");
?>

I would love to get this to work! Any clues?!

BradC 07-31-2001 04:20 AM

thanks for the glass snyx :)

Freddie yes, cause I am dumber than a box of rocks.. and you forgot the countless pm's :)

Sarge.. see this line :

PHP Code:

"and post.userid = user.userid and user.username <> 'admin' group "

where it says : 'admin' : you need to change that to your administrators name.. like if it is yours then : 'Sarge'

the same for the next few lines down where it says : 'admin' : agan :)

see if that helps.

snyx 07-31-2001 04:24 AM

Quote:

Originally posted by freddie
Only 52 posts to get it?
naaaaa, we got more, if ya like ya can share the glasses fred (mind if I call ya that)

Sarge 07-31-2001 04:35 AM

Quote:

Originally posted by BradC
thanks for the glass snyx :)

Sarge.. see this line :

PHP Code:

"and post.userid = user.userid and user.username <> 'admin' group "

where it says : 'admin' : you need to change that to your administrators name.. like if it is yours then : 'Sarge'

the same for the next few lines down where it says : 'admin' : agan :)

see if that helps.

I changed it to

Sarge .. because I am a webmaster on the board,
and it didn't make any difference.
:confused:

Thanks
Sarge

BradC 07-31-2001 10:50 AM

as a test expain this :

$date1 = "UNIX_TIMESTAMP(\"2001-08-01\")";

to something like this :

$date1 = "UNIX_TIMESTAMP(\"2001-06-01\")";

see if that works.

Iliana 07-31-2001 12:00 PM

Brad will always be my hero with glasses and his cow. :)

WHERE IS MY PICKEL?


All times are GMT. The time now is 09:35 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.03945 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)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