The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
The idea is from SitePoint Forums.
I think a lot of people really want this hack, and I've even seen a released version of it here, but it used cronjobs and stuff like that I'm sure not all of use want to mess with. So, here's my version of the hack, completely crobjob-less and 100% working. The hack also includes an easy way for the admins to change the member of the day at any given time. (see note below) You can see it in action in this board, on the main page in the stats box. To install this hack download the attached file (memberofday.hack.php), upload to your /admin folder and use vbHacker. A couple of notes:
That's it, have fun. Show Your Support
|
Comments |
#182
|
||||
|
||||
You're very welcome.
|
#183
|
||||
|
||||
I'm having the "member shows up repeatedly 2/3 times" problem and have applied mheinemann and boofo's update to this. But will this limit the number of times a member can be chosen ina specific set of time?
For instance, I do not want the same member of the day more than one time every XX days (thirty, preferably), but I do not want the member's activity level to be a qualifying factor. For ever member of the day who catches themself as the "motd", I will give them a free Sunday Brunch to our restaurant. This is why I don't want the same member showing up but once a month, basically. I've read through the thread and haven't found a solution for this. Any takers? |
#184
|
||||
|
||||
Ok, try this:
Change: PHP Code:
PHP Code:
|
#185
|
||||
|
||||
Thanks, Boofo.
I'm not sure if it works (as it's hard to test, obviously), but I have faith in your code and it gives me no errors. This makes it so that a member can only be MOTD once every 30 days, regardless of activity and such. Thanks again! |
#186
|
||||
|
||||
Keep an eye on it a couple of days and let me know how it goes. I changed it on my site and will also keep an eye on it, although I don't have very many members. It should work fine, though.
It goes by the last site visit so activity should have nothing to do with it. |
#187
|
||||
|
||||
Quote:
|
#188
|
||||
|
||||
I mainly use my site for installing and playing with hacks. Kind of a learning center, I guess. I have about 25 users and most of them only show up once in a while.
|
#189
|
||||
|
||||
.
|
#190
|
||||
|
||||
Ummm, yeah. Boofo? The fix we tried comes up with a great big ol' db error when resetting. Try again? Or is it the "rand now" fix I tried? :S
Quote:
|
#191
|
||||
|
||||
Sorry about that. That isn't going to work. I got the same error. I will dig into the code a little more and get a fix for you shortly.
|
#192
|
||||
|
||||
I use this hack.
Very cool. But i think i would be much better if it takes only users with min. 1 Post... Zeroposters are not so good. |
#193
|
||||
|
||||
Quote:
|
#194
|
||||
|
||||
Cool thanks Mheinemann!
|
#195
|
||||
|
||||
*hehe* No problems, Boofo. In fact, I've taken out the "fix" from page 9 and now have just the original code, I do believe. It seems to be working fine and hasn't had but one duplicate member in five days. But, I am still interested in the "limit it to once every thirty days" modification if you get to it. No worries.
|
#196
|
||||
|
||||
Ok, Rose, I think I have it now. I tested it and it does not give any errors. Also, this should do the trick for the "limit it to once every thirty days" you asked for. Thanks goes out to Xenon for correcting my missing brackets mistake. Here is the code I use. You can adjust it for whatever you use. I don't have the Admins names show up and the user has to have at least one post to their credit to be picked. Let me know if it does the trick for you.
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|