The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[VB3 RC3] Member of the day Details »» | |||||||||||||||||||||||||
Tested in 3.0.1
This hack lets you "elect" a member of the day (member of any period of time actually, but defaults to member of the day). The member of the day is someone randomly picked from all the users in your forum that have certain amount of posts the day before, that have visited the forum and that have at least 50 posts and 10 reputation. You can also change that values. By default it appers in top of the forumhome. It is a nice way for members of the forum to get to know each other. Info for hackers: You may modify, improve, upgrade, redistribute this hack, include it in another hack or yours or translate it provided you do it free of charge and you distribute it in www.vbulletin.org at least, there is no need to pm me asking for permission Some portions of the code are (c) Jelsoft Enterprises Ltd. Show Your Support
|
Comments |
#2
|
||||
|
||||
Tu further customize this hack you can edit the memberoftheday.php files, the settings are:
This is a comma separated list of the groups that will not be considered for the member of the day. Banned usergroups should be here. $restrictedGroups = "3,4"; This are the minimum posts a user must have, if a user has less than 50 posts for example he cannot be selected member of the day $posts = 50; Since it makes no sense to make a user that visited the forum a month ago member of the day you can specify the number of days ago the user must have visited the forum. In this example if the user didn't visit the forum yesterday he is not elegible for member of the day $lastactivity = 1; Similar to the last setting only the user not only has to visit the forum but also has to post. $lastpost = 1; Users with less than x reputation will not be selected. $reputation = 10; As soon as a user is selected he cannot be selected again in this number of days. This gives other users a chance to be elected member of the day. In this example once a user was selected member of the day he cannot be selected again in 60 days. $days = 60; The member of the day shows the "favorite forum" of the user. This is the forum the user has more posts in. If by chance it is a private forum the name of the private forum will appear there. You might not want other users to see that because they cannot enter that forums anyway. Put a comma separated list of your private forums. $privateForums = "1,2,3"; |
#3
|
||||
|
||||
Looks like a nice idea, a screenshot would be nice aswell incase something goes wrong with your site.
Note the link in your first post isnt even a link to your site (check your spelling in it) |
#4
|
||||
|
||||
Would be nice to see proper permissions for the forums. Good to see some use of the datastore and the cron system here.
|
#5
|
||||
|
||||
Quote:
PHP Code:
However there is no easy way to do this. Even if the forum is not shown the user can know that since there is no favorite forum it means that the user has 0 posts (not likely) or the forum is a private one. Then he knows that there are private forums. Sometimes you don't even want your users to know that there are private forums. Of course, I could always run the favorite forum check at index.php and if the first forum can't be seen I would go for the second, third or fourth one. But that query is a little heavy and I wouldn't like it to run at the index page. |
#6
|
||||
|
||||
The 2nd, 3rd etc forums could be stored during the cron preventing the need to add extra queries on every index.php load then use code similar to what you posted along with some conditionals to display it.
|
#7
|
||||
|
||||
is there a way this could be modifed that the member of the moment has like a special title in their profile and postbit? just wondering
|
#8
|
|||
|
|||
I love this hack... :up:
At my Forum, we call it Camel of the Day Great Work! C. |
#9
|
||||
|
||||
Tha age part of this hack is way off. It shows 34 for mine and it should be 49.
|
#10
|
||||
|
||||
This is great - It could be used on KuraFire's Journal hack as well (hint, hint)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|