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)
-   -   Most Active User Hack (https://vborg.vbsupport.ru/showthread.php?t=71806)

shabbirbhimani 11-15-2004 10:00 PM

Most Active User Hack
 
Hello All

The hack is about who is most active user of the Week, Month, It counts the no of post by the user from a given time which can be updated in the admin panel. The use of this is for who are starting with forums and can give some awards to the most active user. I give a free banner though. I dont know if anything like this is available but would like to share this hack.

Read Install.txt as how to install the hack.

Also please remember
Its better if you keep the files that are replaced and everyone
should follow the thumb rule -
"If anything can go wrong it will go wrong".

Thanks
Shabbir Bhimani

HiDeo 11-16-2004 03:34 AM

Nice job !

Can we have a screenshot ?

Lionel 11-16-2004 04:07 AM

From the instruction files:

Quote:

stats.php in your admin folder
queries.php in your admin folder
index.php in your forum folder
This ought to be a joke, right? You want us to swap forums/index.php with your own? Have you taken into consideration that 99% of us here have installed hacks? The way to do this thing is to point out the changes to be made in index.php.stats.php and querries.php

:squareeyed:

Natch 11-16-2004 04:15 AM

Agreed: your best bet is to indicate where the changes should be made, and what those changes are, as opposed to suggesting we should just wholesale replace the files with your modified files.

Good job tho' I've been looking for a more extensive version of the "daily" version of this...

// EDIT: Looking over the code: I like it, but it will take some time to integrate, as I'd want to get some data from queries that are already run by other hacks (I definitely don't need *more* queries on FORUMHOME), so I'll remove this, and get back to it when I have time...

Good job tho'

nighteyes 11-16-2004 07:04 AM

This goes against the vBulletin.org rules and is in breach of your licensing agreement. You cannot distribute full working copies of scripts from vBulletin. You must publish your code separately. You're also shipping your vBulletin license number around.... can't believe this is a good thing either?

shabbirbhimani 11-16-2004 09:15 AM

Quote:

This ought to be a joke, right? You want us to swap forums/index.php with your own? Have you taken into consideration that 99% of us here have installed hacks? The way to do this thing is to point out the changes to be made in index.php.stats.php and querries.php
I placed the below lines also.

Replacing the above files will inject some additional codes which
you can find between the comment.
// Coded By ....

Quote:

Good job tho' I've been looking for a more extensive version of the "daily" version of this...
Daily version can be done if you execute the sql to update timestamp daily.

Quote:

This goes against the vBulletin.org rules and is in breach of your licensing agreement. You cannot distribute full working copies of scripts from vBulletin. You must publish your code separately. You're also shipping your vBulletin license number around.... can't believe this is a good thing either?
Deleted the attachment with this and I will attach a seperate files maintaining all the above mentioned guidelines.

I hope as this is my first work its bound to have some mistakes.

Thanks
Shabbir Bhimani

Johnny 11-16-2004 11:48 AM

umm... wheres the file at.

shabbirbhimani 11-16-2004 02:27 PM

Quote:

Can we have a screenshot ?
Attached

Also I have tried to apply all the guidelines and let me know how the hack is working.

reteep 11-16-2004 07:16 PM

Thanks, quite useful!

kauka 11-19-2004 05:16 PM

hmmmm i have followed the instructions but now i get a db error

shabbirbhimani 11-22-2004 02:10 AM

Quote:

hmmmm i have followed the instructions but now i get a db error
Can you tell me what error you are getting and where. If you can explain a bit more I can help you out.

Thanks
Shabbir Bhimani

bigM 11-24-2004 08:22 AM

I can't find the "monthly.php and weekly.php"

Can you tell me, where I can find the templates and php files?

Thanks
bigM

shabbirbhimani 11-24-2004 08:36 AM

Quote:

I can't find the "monthly.php and weekly.php"
I havent provided them as they are not part of the hack. This files are on my server which just list what I offer for most active user monthly/Weekly.

http://www.go4expert.com/weekly.php
http://www.go4expert.com/monthly.php

They are just plain html files names as php.

Thanks
Shabbir Bhimani

bigM 11-24-2004 09:36 AM

Thanks, but now I have a new problem:

Quote:

Datenbankfehler in vBulletin 3.0.3:

Ungueltige SQL-Abfrage: SELECT weekly from timestamp where weekly < 1101295899
mysql error: Table 'usr_web40_1.timestamp' doesn't exist

mysql error number: 1146
I get this MySQL Error, when I go to index.php...

shabbirbhimani 11-24-2004 09:42 AM

You have created the table as expert_timestamp but you dont have any prefix for your forums so you need to create the table as
CREATE TABLE timestamp
(weekly int(10) unsigned,
monthly int(10) unsigned);

Thanks and I am updating the install files too.
Shabbir Bhimani

shabbirbhimani 11-24-2004 09:46 AM

I have uploaded the latest with a note below create table ...

I think this should solve the problem.

bigM 11-24-2004 10:00 AM

Now it works. Thanks a lot!

great hack ;)

shabbirbhimani 11-24-2004 10:05 AM

Quote:

Originally Posted by bigM
Now it works. Thanks a lot!

great hack ;)

My pleasure and
I see the hack installed on http://www.comedy-foren.de/

MikaK 01-11-2005 10:04 AM

How does this hack adjust the timespan for weekly and montly views? Can I add additional time interwalls like quarterly, semiannually and yearly?

How about excluding specific members or perhaps entire member groups?

Best regards,
-Mika

shabbirbhimani 01-12-2005 02:36 AM

Quote:

How does this hack adjust the timespan for weekly and montly views?
it does that by keeping the unix timespan in the table that has been created.

Quote:

Can I add additional time interwalls like quarterly, semiannually and yearly?
You can always edit the table to add the time span. I have two time span weekly/monthly you can add or use them for monthly/yearly.

Quote:

How about excluding specific members or perhaps entire member groups?
I havent done this as I was interested in manually giving a banner so I did not have any need as this.

MauriceReed 02-10-2005 05:32 PM

just installed this one mate, but as a total n00b, how do i create the 2 .php files??

monthly.php and weekly.php??

any help would be appreciated.
btw..install went fine....all SQL queries went ok, and displays on forum index fine......just with 2 blank columns tho, due to the 2 .php files not being installed.;)

MauriceReed 02-11-2005 05:12 PM

anyone??

shabbirbhimani 02-22-2005 06:15 AM

Quote:

Originally Posted by MauriceReed
just installed this one mate, but as a total n00b, how do i create the 2 .php files??

monthly.php and weekly.php??

any help would be appreciated.
btw..install went fine....all SQL queries went ok, and displays on forum index fine......just with 2 blank columns tho, due to the 2 .php files not being installed.;)

Sorry but I was outstation.

The 2 php files can be created in any Editor like Notepad or VI.

Thanks
Shabbir Bhimani

taffy056 03-10-2005 10:30 PM

Hi,

I was getting the same error message as post number 14, but after I put the query in the following post I get this error on the forumhome, can you suggest a fix to this.

Thanks


PHP Code:

Database error in vBulletin 3.0.7:
Invalid SQLSELECT useridusernamecount(username) as posts FROM post as post where dateline >  group by username ORDER BY posts DESC
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 'group by username ORDER BY posts DESC' at line 1

mysql error number
1064 


shabbirbhimani 03-11-2005 02:27 AM

Quote:

Originally Posted by taffy056
Hi,

I was getting the same error message as post number 14, but after I put the query in the following post I get this error on the forumhome, can you suggest a fix to this.

Thanks


PHP Code:

Database error in vBulletin 3.0.7:
Invalid SQLSELECT useridusernamecount(username) as posts FROM post as post where dateline >  group by username ORDER BY posts DESC
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 'group by username ORDER BY posts DESC' at line 1

mysql error number
1064 


possible reason for your error can be the prefix that you have given when installing the vB. Use that prefix in all the tables but here in post table you are not prefixing it. I hope this should solve the problem but if not you can post again.

Also if you want much faster response you can use my site also.. url in sig.

Startinfresh 03-20-2005 02:07 AM

Got a question :)

Is there any way that you can make it so that only Admin and Super Mods can view this?

Another question, timestamp table has me stumped. Anyone care to help out ;)

Startinfresh 03-20-2005 02:08 AM

is timestamp table the same as a template???

Startinfresh 03-20-2005 02:29 AM

Ok, I got the timestamp table ;)

JagFan 04-15-2005 09:55 PM

Installed. Thanks!


All times are GMT. The time now is 04:55 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.01255 seconds
  • Memory Usage 1,807KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete