Version: 1.00, by Kentaurus
Developer Last Online: Jul 2014
Version: 3.0.0
Rating:
Released: 01-16-2004
Last Update: Never
Installs: 136
No support by the author.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
You're right. I apologize. I was trying to put it on my forumhome at the bottom so I wasn't using the template. Using mday[age] worked fine. I was looking at the code in the php file and it said memberoftheday[age] which, or course, didn't work. Needless to say, I was confused. But all is well now.
serialize() returns a string containing a byte-stream representation of value that can be stored anywhere.
This is useful for storing or passing PHP values around without losing their type and structure.
To make the serialized string into a PHP value again, use unserialize(). serialize() handles all types, except the resource-type. You can even serialize() arrays that contain references to itself. References inside the array/object you are serialize()ing will also be stored.
Used quite alot in vB3, the majority of the stuff in the datastore table is serailized.
What does unserialize actually do? Is that like the RAND() variable or am I missing something?
Serialization is a method for making an object persistent in an OO language. You serialize the object and the use it later. PHP is still not so OO but still the serialization is a method to store data, in this case an array. I serialize an array, store it someplace then unserialize the data and get back my array. It is really useful because I can have arrays in arrays, different data types... almost everything.
When I try to run the cron I get: "Couldn't elect a member of the day, not enough members"...i have a couple of hundred members and I check to make sure the correct usergroups weren't restricted. Also the member box on FORUMHOME is just showing blank b/c it hasn't selected anybody.
When I try to run the cron I get: "Couldn't elect a member of the day, not enough members"...i have a couple of hundred members and I check to make sure the correct usergroups weren't restricted. Also the member box on FORUMHOME is just showing blank b/c it hasn't selected anybody.
Maybe you should lower the restrictions for the member of the day, maybe none of them have 50 (or the number you set) posts, or they all have less than 10 of reputation, or maybe no one has posted recently and the lastactivity var is set to 1 or something very low.
Maybe you should lower the restrictions for the member of the day, maybe none of them have 50 (or the number you set) posts, or they all have less than 10 of reputation, or maybe no one has posted recently and the lastactivity var is set to 1 or something very low.
I've got it set to where no groups are restricted, 0 posts, no last days logged in, a reputation of 0, etc....i've got it set to where anybody can get picked.
I've got it set to where no groups are restricted, 0 posts, no last days logged in, a reputation of 0, etc....i've got it set to where anybody can get picked.
Then anybody has posted in that day? It needs at least 1 user with 1 post... I can't think right now in anything else that could be causing that