View Full Version : [VB3 RC3] Member of the day
Kentaurus
01-16-2004, 10:00 PM
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.
Kentaurus
01-17-2004, 08:25 PM
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";
MindTrix
01-17-2004, 08:28 PM
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)
NTLDR
01-17-2004, 08:31 PM
Would be nice to see proper permissions for the forums. Good to see some use of the datastore and the cron system here.
Kentaurus
01-17-2004, 08:46 PM
Would be nice to see proper permissions for the forums. Good to see some use of the datastore and the cron system here.
You mean something like this?
$forumpermsmday = fetch_permissions($mday['forumid']);
if (!($forumpermsmday & CANVIEW))
{
unset($mday['forumid']);
unset($mday['forumname']);
}
This will hide the forum from the users that cannot see them. A conditional in the template is also needed.
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.
NTLDR
01-17-2004, 09:13 PM
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.
AN-net
01-18-2004, 03:48 PM
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;)
Chris-FH
01-18-2004, 03:57 PM
I love this hack... :up:
At my Forum, we call it Camel of the Day :D
Great Work!
C.
Boofo
01-19-2004, 05:28 AM
Tha age part of this hack is way off. It shows 34 for mine and it should be 49. ;)
gmarik
01-19-2004, 07:15 AM
This is great - It could be used on KuraFire's Journal hack as well (hint, hint)
Kentaurus
01-19-2004, 11:51 PM
Tha age part of this hack is way off. It shows 34 for mine and it should be 49. ;)
Are you sure you have your correct year of birth in your member's info? Age seems to be working for me...
Boofo
01-20-2004, 12:21 AM
Are you sure you have your correct year of birth in your member's info? Age seems to be working for me...
Change your birthday to January 31st, 1954 and check it out. It shows up as 49 everywhere else just fine. ;)
Link14716
01-20-2004, 02:07 AM
Are you sure you have your correct year of birth in your member's info? Age seems to be working for me...
Sounds like the old infamous January 1st, 1970 bug.
dede1
01-20-2004, 10:33 PM
I do not have a problem, no Avatar lock here:
http://63.246.136.220/Board (http://63.246.136.220/Board)
Boofo
01-20-2004, 11:11 PM
Sounds like the old infamous January 1st, 1970 bug.That's exactly what I was going to suggest except I though the bug had been squashed. ;)
Anyone got a fix for it?
dede1
01-21-2004, 03:23 AM
I have
<td><img src="image.php?u=$mday[userid]"></td>
that now assigned
<td><img src= link adress<td>
Looks better than this cross
gmarik
01-21-2004, 05:20 PM
You could export the limitating settings (group id, post minimum) to the admin cp input boxes so I could change it not connecting with ftp to my page, ok?
Kentaurus
01-21-2004, 05:39 PM
That's exactly what I was going to suggest except I though the bug had been squashed. ;)
Anyone got a fix for it?That's because... nobody told me about that January 1970's bug :) It is new to me.
Fixed. Just download the new memberoftheday.php
Also, I just tested this hack with RC3, it works fine.
Boofo
01-22-2004, 01:15 AM
You might want to change the name of the age variable in the text file, too, since you renamed it in the php file. ;)
Kentaurus
01-22-2004, 08:46 AM
You might want to change the name of the age variable in the text file, too, since you renamed it in the php file. ;)
It wasn't renamed, it is still $mday['age']. I renamed other variables but they shouldn't harm the templates or the index.php modifications
Boofo
01-22-2004, 07:00 PM
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. ;)
Boofo
01-22-2004, 07:03 PM
What does unserialize actually do? Is that like the RAND() variable or am I missing something?
NTLDR
01-22-2004, 07:12 PM
http://uk2.php.net/manual/en/function.serialize.php
http://uk2.php.net/manual/en/function.unserialize.php
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.
Kentaurus
01-23-2004, 02:57 AM
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.
Boofo
01-23-2004, 10:11 AM
I'll have to look into that more. Thanks for explaining it. ;)
Also, here is what I get for an age for someone who hasn't entered a birthday.
(Age: 2004).
AutomatikStudio
01-24-2004, 03:06 PM
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.
Kentaurus
01-24-2004, 07:33 PM
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.
AutomatikStudio
01-26-2004, 01:07 AM
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.
Kentaurus
02-01-2004, 08:43 PM
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
Boofo
02-01-2004, 09:07 PM
kentaurus, can you look at post 25 here and see if you can figure out why this is doing that, please, sir? ;)
Kentaurus
02-05-2004, 02:26 AM
kentaurus, can you look at post 25 here and see if you can figure out why this is doing that, please, sir? ;)
Yes, you are right. Fixed. In memberoftheday.php
find this:
if ($year > $date[2] AND $date[2] != '0000')
change it to:
if ($year > $date[2] AND $date[2] != '0000' AND $date[2])
file updated also
KuraFire
02-05-2004, 08:02 AM
This is great - It could be used on KuraFire's Journal hack as well (hint, hint)
Only if he would turn this into a Module for the Modules Manager, though. :)
Kentaurus
02-05-2004, 08:32 AM
Only if he would turn this into a Module for the Modules Manager, though. :)
But first I would need an explanation of what is that modules manager.....
Anyway... I am expecting HTL 1.1 before any other hack, I am not releasing HTL hacks until I can make the .txt from there... it is really bothersome to do both an HTL and a TXT
rinkrat
02-14-2004, 06:53 PM
I'm getting this, do I need to wait for the cron to run or something?
Kentaurus
02-14-2004, 10:21 PM
I'm getting this, do I need to wait for the cron to run or something?
Wait for the cron or run it yourself at the admin control panel, it needs to be run at least once for the information to be generated.
KuraFire
02-15-2004, 09:42 AM
But first I would need an explanation of what is that modules manager.....
Anyway... I am expecting HTL 1.1 before any other hack, I am not releasing HTL hacks until I can make the .txt from there... it is really bothersome to do both an HTL and a TXT
read http://everythingvb.com/showthread.php?t=28 for an explanation on what the Modules Manager is :) (I'm not gonna cut-paste all that here)
and HTL 1.1 will come, I hope soon but I dunno how soon.. it's so much work :(
rinkrat
02-18-2004, 05:42 PM
They are asking what they get for being MOTD. How can I rig it to give the member of the day 5000 reputation points?
Kentaurus
02-29-2004, 05:51 PM
They are asking what they get for being MOTD. How can I rig it to give the member of the day 5000 reputation points?Isn't that a lot? Oh anyway.
In the memberoftheday.php
Look for this:
$memberOfTheDay['forumname'] = $favoriteForum['title'];
replace it with:
$DB_site->query("UPDATE ".TABLE_PREFIX."user SET reputation=reputation+5000 WHERE userid=".$memberOfTheDay[userid]."");
$memberOfTheDay['forumname'] = $favoriteForum['title'];
Trunks ssj4
03-05-2004, 01:02 PM
it is easy to change it to Member of the month? :rolleyes:
Kentaurus
03-06-2004, 08:58 PM
it is easy to change it to Member of the month? :rolleyes:
Sure. Just set your cron job to run monthly instead of daily.
AlexanderT
03-09-2004, 06:24 AM
Good hack :)
AlexanderT
03-09-2004, 07:51 AM
Btw, does anyone know how to modify the hack to display the member's avatar, even if the avatar is from the database and not custom (currently only custom uploaded avatars are shown).
brandy
03-20-2004, 09:21 PM
I installed the hack - it is nice, but isn't the user's profile image supposed to display? It isn't displaying. Am I wrong?
Brandy
brandy
03-21-2004, 02:09 PM
I installed the hack - it is nice, but isn't the user's profile image supposed to display? It isn't displaying. Am I wrong?
Brandy
Another question, how can I add a custom profile field to display in the memberoftheday? I tried various things, but can't figure it out.
Thanks much!
Brandy
will_lean
04-22-2004, 11:21 PM
Is it possible to also call the users avatar(default one if you use it) to be displayed along with the info?
$memberOfTheDay = $DB_site->query_first("SELECT user.userid,user.username,user.posts,user.reputati on,user.birthday
im assuming itd be more or less adding the extra avatar or profile tables to the above query?
could this also be possible for what brandy is looking for?
i.e adding in the profile feild table to the query.
this hack is very cool thanks alot!
fridayweb
04-29-2004, 08:09 PM
Nice feature. I would like to add the info of "join date" next to their posts. I can see where to put things, but I'm not sure the exact language to create a new variable of $mday[join]. Could anyone help me out? :squareeyed:
JagFan
05-03-2004, 05:45 PM
Nice hack! Thanks..installed and working great.
brandy
05-09-2004, 03:10 AM
I've got "member of the day" at my site www.doggiedoor.com/forums/ and I have it set up so that only the moderators are elected (did this by restricting all other usergroups). We've had it up for about a month now, I've got 15 moderators that it chooses from, and a few have never been chosen.
Note: They DO meet the requirements I have set up, as in posted at least once, posted and logged in in the last 30 days, have a reputation over 99.
I can't seem to figure out why they would be passed over? They are feeling neglected, apparently they've been waiting for their turn to no avail.
Any clues?
Brandy
Odoin
05-09-2004, 03:33 AM
Could it just be the luck of the draw? It you look at many things that use random numbers it seems sometimes a few numbers do not come up as much as others... I donno :ermm:
AlexanderT
05-09-2004, 11:23 AM
Is it possible to also call the users avatar(default one if you use it) to be displayed along with the info?
That is what I am looking for, too. Looks like Kentaurus hasn't visited this thread for the past two months though :(
Maikeru
05-13-2004, 11:44 PM
Good work. I learned a lot by seeing this hack on some forums. I even made friends. :nervous:. I'll probably be using this hack too.
brandy
05-15-2004, 02:25 PM
That is what I am looking for, too. Looks like Kentaurus hasn't visited this thread for the past two months though :(
I've noticed on mine, that some avatars appear, and others don't. It seems that the smaller avatars appear, but the larger ones don't - but I'm not sure if size is the defining factor.
Brandy
Kentaurus
05-16-2004, 08:10 AM
I installed the hack - it is nice, but isn't the user's profile image supposed to display? It isn't displaying. Am I wrong?
Brandy
Another question, how can I add a custom profile field to display in the memberoftheday? I tried various things, but can't figure it out.
Thanks much!
Brandy
Some modifications to my hack (just download the files again):
Added support for default avatars (not the ones uploaded by the user but the ones the administrator has configured in the forum)
You can now use any user or userfield variable in the memberoftheday template.
About your question of moderators being ignored I suggest you increase the value of $days to something really high. Sometimes mysql is not very good at random numbers... In my forum sometimes some member is elected twice very quickly and some other members are still waiting their turn.
AlexanderT
05-16-2004, 09:10 AM
update works great!
Thanks Kentaurus.
brandy
05-16-2004, 08:28 PM
Some modifications to my hack (just download the files again):
Added support for default avatars (not the ones uploaded by the user but the ones the administrator has configured in the forum)
You can now use any user or userfield variable in the memberoftheday template.
About your question of moderators being ignored I suggest you increase the value of $days to something really high. Sometimes mysql is not very good at random numbers... In my forum sometimes some member is elected twice very quickly and some other members are still waiting their turn.
Thank You!
The avatars are still not showing (just the small ones)
I changed the number of days from 30 to 90, so we'll see if that helps
Also, how do you write the syntax to include field5 in the template?
I tried just: $field5
but it doesn't work.
Thanks much!
Brandy
Kentaurus
05-17-2004, 04:11 AM
Thank You!
The avatars are still not showing (just the small ones)
I changed the number of days from 30 to 90, so we'll see if that helps
Also, how do you write the syntax to include field5 in the template?
I tried just: $field5
but it doesn't work.
Thanks much!
Brandy
Just wait for the next member of the day to be generated, I expect then the avatar will be visible.
You need to use $mday[field5], please let me know if that works as expected.
fridayweb
05-31-2004, 01:31 AM
Do you know of a way to get the tasks list to generate a page so that people could see all of the previous members of the day?
Hmm... or maybe just do an automatic entry on the calendar so people can see it that way.
SaN-DeeP
06-01-2004, 09:27 AM
i just installed it
everything is fine except the users avtars are not getting display :)
i think they are using custom avtars on forum..
any ideaz to fix this.
Thnx.
Sandy...
SaN-DeeP
06-03-2004, 08:15 AM
i just installed it
everything is fine except the users avtars are not getting display :)
i think they are using custom avtars on forum..
any ideaz to fix this.
Thnx.
Sandy...
pretty weird
but as stated in ur above post. it will work after 1 day and it does ;)
however here is one question.
My forums are hosted in us (TIME HERE IS GMT - 8:00) and my forums people are located in india (GMT + 5:30)
When the clock strike 1:00 pm afternoon here, member of day gets changed. and not @ midnight 12:00
How do i change this,
Its kinda buggy that i changes @ afternoon when almost 13 hours have passed away.
Sandy...
Kentaurus
06-04-2004, 06:00 AM
pretty weird
but as stated in ur above post. it will work after 1 day and it does ;)
however here is one question.
My forums are hosted in us (TIME HERE IS GMT - 8:00) and my forums people are located in india (GMT + 5:30)
When the clock strike 1:00 pm afternoon here, member of day gets changed. and not @ midnight 12:00
How do i change this,
Its kinda buggy that i changes @ afternoon when almost 13 hours have passed away.
Sandy...
Change the hour in the cron job. Instead of having it at 0 hour substract 13 hours so it can change just at midnight.
SaN-DeeP
06-05-2004, 06:23 AM
Change the hour in the cron job. Instead of having it at 0 hour substract 13 hours so it can change just at midnight.
where are the changes to be done exactly ??
In my cron jobs
i have set the hours to be 13 and minutes 0
is that fine ??
also the avtars are still not getting displayed.
1 more things, i have set to give 50 points to users who get this Member of Day Title.
But, it just shows members reputation to be done on the Member of Day box.
weras in there profiles it shows more. :S
Any fix for this
Thnx.
Sandy...
Malke
06-05-2004, 07:15 PM
I have 2 questions:
If I set it to run once/week, does that mean that $days now stand for 1 week, or do I still set it so that the same member can't be "member of the week" in i.e 14 for 2 weeks?
In that case does 14 mean 14 days (2 weeks) or 14 weeks (since it's only being updated once/week).
Also, I've made it so that it's being updated every monday. Do I need to set an exact hour & minute for it to be done or will it just automaticly do it sunday night at midnight?
brandy
06-06-2004, 12:57 AM
Just wait for the next member of the day to be generated, I expect then the avatar will be visible.
You need to use $mday[field5], please let me know if that works as expected.
Yes! Thank you, the $mday[field5] works like a charm!
Some of the avatars are still not showing up though.
When I look at the source code of the avatar image in their profile, it may be that the ones that look like this are showing up:
http://doggiedoor.com/forums/image.php?u=219&dateline=1084590730
And the ones that look like this are not showing up:
http://doggiedoor.com/forums/images/avatars/doggie/gooddoggie.gif
Just a thought.
SaN-DeeP
06-10-2004, 01:01 AM
the avtar still has problems getting displayed
i stripped down my template to not fetch the avtar ;) finally
thnx for mod.
Sandy...
SaN-DeeP
06-27-2004, 06:53 AM
i dunt want to display avtars using this hack.
can someone guide, what queries to be removed from memberoftheday.php file :)
i have edited index.php and template
Thnx.
Sandy...
This question was here before, but never was answered. Is there a way to show the information member of the day in the postbit for that user, that got elected?
I tried to do it myself (to get the information "member of the day" in the postbit).
My steps were:
I inserted the same things that go into index.php in the showthread.php. Also I inserted the 'memberoftheday' into showthread.php to the datastore. Even though I don't get the variables in the postbit.
Can someone help me out here?
Gary King
08-27-2004, 08:27 PM
I don't like the original look of this mod, because it was so big, took up too much space, and whatnot, so I changed it a bit.
What do you think of the way it looks now, on my forums? :)
SaN-DeeP
08-28-2004, 12:15 PM
I don't like the original look of this mod, because it was so big, took up too much space, and whatnot, so I changed it a bit.
What do you think of the way it looks now, on my forums? :)
looks impressive, i did the same when i had this mod installed, but due to extra amount of queries i had to take it off
sully02
08-29-2004, 10:58 PM
Has someone already converted this into a CMPS module? If so, I'd like to see it. If not... I may give it a try, though my PHP is rusty at best.
mokoboo
09-06-2004, 01:04 AM
Need help here, I installed your hack, but since I did, the database is down... the forums shows "refresh" and VB database error...
Please help me :(
dfmafia
12-11-2004, 04:42 PM
how would i go about having just the member of the day info on its own page so i can use <?php
include('/home/XXX/XXX/forums/member_of_the_day.php');
?>
Boofo
12-11-2004, 04:49 PM
how would i go about having just the member of the day info on its own page so i can use <?php
include('/home/XXX/XXX/forums/member_of_the_day.php');
?>
Just run the cron job for it and then use a query to pull the info from the db. ;)
dfmafia
12-11-2004, 05:27 PM
huh?
lol
this is where im putting it:
http://dfmafia.net/network.php
as you can c its not showing up (next to the news)
Boofo
12-11-2004, 05:30 PM
huh?
lol
Since it is stored in the db, all you have to do is run the query for the info in the file you want to run for the new page. I use a query for it in my forumhome cache stats hack. The file is run by cron isn't it?
dfmafia
12-11-2004, 05:33 PM
from the instructions:
################################################## ####################
# Scheduled tasks to add
################################################## ####################
In your admin control panel add a new scheduled task. Name it whatever you
want and set it to run in filename: ./includes/cron/memberoftheday.php
so i would do this:
<?php
include('/home/XXX/XXX/forums/includes/cron/member_of_the_day.php');
?>
dfmafia
12-11-2004, 05:35 PM
nah that didnt work
i dont want to use the format im using for the forums
thats y i made a .php page for it
i can get login info and recent posts but not member of the day info
boo.3
12-12-2004, 12:31 AM
I don't like the original look of this mod, because it was so big, took up too much space, and whatnot, so I changed it a bit.
What do you think of the way it looks now, on my forums? :)
ahh yours is 10x better could u PM me code?
Malke
12-15-2004, 07:51 PM
Is there any way to edit this hack so that you just pick the member of the week yourself? By let's say entering a member-id somewhere or something?
StuKeR
12-16-2004, 06:34 AM
Hi I've installed as the TXT says but instead of put $memberoftheday on the forum template I put it on the CMPS template... (the unique diference) but when I try to run the scheduled task it says this...
Warning: main(): open_basedir restriction in effect. File(/includes/cron/memberoftheday.php) is not within the allowed path(s): (/home/motos/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/motos/public_html/foro/admincp/cronadmin.php on line 56
Warning: main(/includes/cron/memberoftheday.php): failed to open stream: Operation not permitted in /home/motos/public_html/foro/admincp/cronadmin.php on line 56
Fatal error: main(): Failed opening required '/includes/cron/memberoftheday.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/motos/public_html/foro/admincp/cronadmin.php on line 56
so I open the cronadmin.php to see if there's a mistake and I don't see anything wrong...
if any one knows how to repair this disaster... I would be very congratulated :p
thx alot
StuKeR
12-16-2004, 06:48 AM
aRG, I' so stupid, I forgotten the dot before /includes/cron/memberoftheday.php.
well I've just made it run but now appears ! as a member of the day.
When I executed the task it said this
log_cron_action("Member of the day elected: $memberOfTheDay[username]", $nextitem); ?>?>
and now I coudn't run the task again because it says
Couldn't elect a member of the day, not enough members
I've configurated the file for, anybody could be member of the day (for proposes only) but as I said before apears ! instead of the name of one of the forum...
is that correct???
thx
Roxie
12-16-2004, 07:31 AM
Has anyone installed on 3.0.3?
StuKeR
12-16-2004, 08:01 AM
Roxie I've installed on 3.0.3
bigcurt
12-19-2004, 03:21 PM
If I want to make this a MEMBER OF MONTH. Does the box show up every day or just that one day where it picks a member? I just want it to be there for that one day.
Also I dont use the reputation system if I set the permissions to 0 for that than that will be off right?
Pixelgrounds
12-19-2004, 08:42 PM
i would love a member of the month hack, has anyone done one ?
StuKeR
12-20-2004, 08:56 PM
pixelgrounds just select Month by Month and the hack will select the user of the month :p.
But I don't get to make the hack running :'(. always put the ! exclamation mark instead of the user :'(
Malke
12-27-2004, 01:45 PM
Suker... there's probably noone matching the description. Maybe you should change nr of posts etc requier. The same thing happened to me when I changed the reputation value by mistake.
StuKeR
12-27-2004, 06:05 PM
Suker... there's probably noone matching the description. Maybe you should change nr of posts etc requier. The same thing happened to me when I changed the reputation value by mistake.
hi, there's no mistake with the requier, cause I'f the template runs on the forumhome it works well. I try to modify the $memberoftheday for the new $adv_portal_memberoftheday on the index.php but I don't get to make it run...
there's someone as an angel who wants to help me :ermm: :ermm: ?
T3MEDIA
01-03-2005, 09:53 AM
Would be nice to see proper permissions for the forums. Good to see some use of the datastore and the cron system here.
NTLDR are you still alive????
HEY I hucked this up on my site. AWSOME have a mouse over and all that. really cool. Just how would I put a dont have avatar image up if they dont have one? that part is needed cuz some dont have.
Thanks.
T3MEDIA
01-03-2005, 09:57 AM
Has someone already converted this into a CMPS module? If so, I'd like to see it. If not... I may give it a try, though my PHP is rusty at best.
www.sprnch.com/forums/vbindex.php
T3MEDIA
01-03-2005, 10:01 AM
Just wait for the next member of the day to be generated, I expect then the avatar will be visible.
You need to use $mday[field5], please let me know if that works as expected.whaaT field 5! didnt know about this baby!
T3MEDIA
01-03-2005, 04:41 PM
Just wait for the next member of the day to be generated, I expect then the avatar will be visible.
You need to use $mday[field5], please let me know if that works as expected.
Darn... doenst work for me????
StuKeR
01-08-2005, 08:42 AM
does any one knows how to put the member of the day as a CMPS module?
dacho
01-10-2005, 02:52 PM
there is a problem
error in page memberoftheday.php
Fatal error: Call to a member function on a non-object in /hsphere/local/home/gehenom/forums.dacho.co.il/includes/cron/memberoftheday.php on line 34
line 34 is = $memberOfTheDay = $DB_site->query_first("
Marco van Herwaarden
01-10-2005, 07:12 PM
there is a problem
error in page memberoftheday.php
Fatal error: Call to a member function on a non-object in /hsphere/local/home/gehenom/forums.dacho.co.il/includes/cron/memberoftheday.php on line 34
line 34 is = $memberOfTheDay = $DB_site->query_first("
Are you running it as a scheduled job from ACP? Or are you just calling the script?
dacho
01-10-2005, 07:25 PM
Are you running it as a scheduled job from ACP? Or are you just calling the script?
just calling the page from CP, like that :
construct_nav_option($vbphrase['Member_of_the_day'], '../includes/cron/memberoftheday.php', '<br />');
Marco van Herwaarden
01-10-2005, 07:54 PM
Cron files can not be called like that i think, the schedule task mechanism wraps some initialisations around htem.
Just add a new scheduled task pointing at this script, then click run now to test
StuKeR
01-11-2005, 05:55 AM
Hi... :'(
There's someone solidary who wants to help me to put the member of the day on a CMPS module... ???
help please because i'm a bit desesperated U_U
thx
dacho
01-11-2005, 07:22 PM
someone ?!
StuKeR
01-16-2005, 05:15 PM
well I've see that there's some one ho has converted to a CMPS module... the question is... HOW has he done... ?? help please :'(
dacho
01-17-2005, 08:51 AM
where is Kentaurus ?
we need help here!!!!
someone
StuKeR
01-17-2005, 09:01 AM
I think he want to kill us... :D:D:D:D muahah
dacho
01-21-2005, 08:38 AM
probably :(
StuKeR
01-21-2005, 08:50 AM
well Is anyone alive?
LadyBeth
01-22-2005, 12:30 PM
Can this be used in the following ways?
1. can it be a user of the week
2. based upon a minimum number of posts
3. can admins and moderators be excluded
4. can this be done automatically so there is nothing for the admin to do
Please advise....thanks :)
LB~
StuKeR
01-22-2005, 09:10 PM
yes could be
Elfo King
01-23-2005, 11:33 AM
Nice Hack...installed!
I need to assign at the "Member of the day" 1 point of reputations, it's possible ?:P
Thx
carolmyt
01-28-2005, 06:55 PM
Warning: Newbie question
I love this hack, but I want to make the background transparent. Any advice on how I can do that?
Thanks!
SpanishHarlem
02-13-2005, 03:40 AM
Would have been a great hack. I installed it on my forum. It show's me that a member has been chosen in the task manager but for some reason it's not showing up at the top of the forum.
SpanishHarlem
02-13-2005, 02:26 PM
Ok I have partly figured this out. Does anyone here know how I can make it so that it show's in all skin's?
Rogue Pan
02-14-2005, 11:52 PM
Ok I have partly figured this out. Does anyone here know how I can make it so that it show's in all skin's?
Add the templates to all skins.
Also have one small problem i've noticed. It's set for me to change member of the day at 6:00pm every day. Ever since i had this hack, my DB crashes at 6:00pm every day for a few minutes..Any idea why this hack causes it. I say this hack, because i never had this problem until using this hack.
SpanishHarlem
02-17-2005, 10:38 AM
hmmm hopefully someone will know any solution's to this. I added the skin's I do have to the default skin but it seem's for some reason member of the day will only show in default and two other's.
Can you help me so that I can make it so that it will show all skin's.
Please and thank you. :laugh:
jilly
03-09-2005, 01:36 AM
Warning: Newbie question
I love this hack, but I want to make the background transparent. Any advice on how I can do that?
Thanks!
Take out this code out of the memberoftheday template to make it transparent - class="tborder"
Take this code out to shrink the space between the lines of info. - cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"
I also put a font size="1" around the text to make it smaller
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="80%" align="center">
<tr>
<td><img src="$avatarurl"></td>
<td>
<b>Member of the day is: <a target="_top" href="member.php?&u=$mday[userid]">$mday[username]</a>!</b><br/><br/>
Posts: $mday[posts]</span><br/>
Reputation: $mday[reputation]</span><br/>
<if condition="$mday[age]">Age: $mday[age]</span><br/></if>
<br/>
Favorite forum: <a href="forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a>
</td>
</tr>
</table>
<br/>
I'm also interested on using this on the cmps... has anyone accomplish this successfully? i did it, but only the avatar show in the block :( anyone else has tried it?
jilly
03-27-2005, 06:32 PM
I would like to add a link in the memberoftheday template to pm the member, so if people want to pm the member of the day they can click right there and send it..
kisersose
03-27-2005, 09:36 PM
When will this take effect?????????
i installed this today, and its just a blank box with this....
---------
Emcee of the day is: !
Posts:
Reputation:
Favorite forum:
jilly
04-05-2005, 03:13 AM
kisersose - you need to go into scheduled tasks and click 'run now' to start it off and run it the first time - go to admin cp > scheduled tasks > scheduled tasks manager - then look for the name you gave the task, and click the 'run now' button below it.
StuKeR
04-14-2005, 08:17 PM
still the same question (for remember propouses only :P )...
Does any one convertered this to a CMPS module? or atleast that it could be showed on the CMPS main page???
I'll be very pleased if anyone could help me
thx
jilly
04-15-2005, 08:28 PM
If I wanted to run this more than once on a board, could I do this? For example if I wanted 'member of the day', yet I also wanted 'moderator of the month' - any ideas on what to add or how to do that?
restless
05-08-2005, 03:25 AM
Not sure if anyone has answered this anywhere... but I've added this to my vba cmps.
Here how i did it (I have no idea if this is the BEST way to do it):
1. Edit global.php
Find:
$specialtemplates = array_merge($specialtemplates,
array(
'adv_modules',
add BELOW:
'memberoftheday',
Find:
$globaltemplates = array_merge($globaltemplates,
array(
'adv_portal',
Add BELOW:
'memberoftheday',
Find:
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 13:38, Tue Feb 22nd 2005
|| # CVS: $RCSfile: global.php,v $ - $Revision: 1.256.2.5 $
|| ################################################## ##################
\*================================================ ======================*/
Add ABOVE:
$mday = unserialize($datastore['memberoftheday']);
if (!$mday['hascustomavatar'] && $mday['avatarpath'])
{
$avatarurl = $mday['avatarpath'];
}
else
{
$avatarurl = "vboptions[bburl]/image.php?u=$mday[userid]";
}
eval('$memberoftheday .= "' . fetch_template('memberoftheday') . '";');
2. create new template adv_portal_member
Add code:
$memberoftheday
3. Add a new module:
Module Title: Member of the Day
Template to Include: member
Place it wherever you like (left, center, right)
That's it.
restless
05-08-2005, 03:44 AM
you can see this in action here: http://www.vagrantcafe.com/index.php?
this is my code for my memberoftheday template:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="80%">
<tr><td class="alt1" width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="alt1"><img src="$avatarurl"></td>
<td class="alt1"><b>Vagrant of the Day: <a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]">$mday[username]</a></b><br/><br/>
View $mday[username]'s <a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]">Profile</a><BR>
View $mday[username]'s <a target="_top" href="$vboptions[bburl]/usernote.php?&u=$mday[userid]">UserNotes</a><BR>
View $mday[username]'s <a target="_top" href="$vboptions[bburl]/buddies.php?&u=$mday[userid]">Friends</a><BR>
Posts: $mday[posts]</span><br/>
<if condition="$mday[age]">Age: $mday[age]</span><br/></if>
Favorite forum: <a href="$vboptions[bburl]/forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a> </td>
</tr>
</table></td></tr>
</table><BR>
i literally just figured out and installed this tonight... so i'll probably change my look at a bit.
cdoyle
05-15-2005, 10:11 PM
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.
I'm getting this too on my testboard. Here are the settings I have everything at.
I have created a couple test members, and just posted several threads for each.
$restrictedGroups = "0";
$posts = 0;
$lastactivity = 90;
$lastpost = 30;
$reputation = 0;
$days = 7;
$privateForums = "0";
When I run the scheduler, I get that "Couldn't elect a member of the day, not enough members"
any ideas?
cdoyle
05-16-2005, 10:12 PM
I got it to work, I was having the problem because this is a test forum, and I only have about 7 members listed. Since the hack wouldn't allow you to 'repeat' member of the day for at least 7 days, that is why I would get the error.
I just decreased it to 1 day and it worked finally.
Now to install on the real forum!!
cdoyle
05-20-2005, 12:52 AM
Has support for this hack stopped?
I did finally get everything working, and got it to work on my CMPS page. But was wondering if some other features could be added?
Is it possible to display the users profile image? (I think that question was asked before, but I didn't see an answer)
Or how about also displaying their signature?
I hope the creator of this hack is still around!
Thanks in advance
Chris.
Paul M
05-20-2005, 12:57 AM
Has support for this hack stopped?
.
.
I hope the creator of this hack is still around!
Well the hack is not marked as supported - but that may just be an oversight. The coder last visited four days ago so he's still around.
Corriewf
05-20-2005, 01:05 AM
Has support for this hack stopped?
I did finally get everything working, and got it to work on my CMPS page. But was wondering if some other features could be added?
Is it possible to display the users profile image? (I think that question was asked before, but I didn't see an answer)
Or how about also displaying their signature?
I hope the creator of this hack is still around!
Thanks in advance
Chris.
Dont you think that will be a little over doing it? How much do you want to have people go through when they are trying to get to your forums?
If you really want it just input the variables using the hacks syntax.
cdoyle
05-20-2005, 08:57 PM
I'm not really sure what you mean by input the 'vairables using the hacks syntax' I'm new to this, could you give me an example of what you mean?
Thanks
Chris.
cdoyle
05-27-2005, 03:59 AM
I've just noticed something, it seems that it selects a new user whenever you refresh the screen?
I've checked the scheduler and it's only suppose to run on the 23rd hour of each day.
Anyone know why it would be selecting a new one, everytime the page is refreshed or opened?
Also, I'm still not sure what I would need to do add the profile pic?
Chris.
Corriewf
05-27-2005, 12:40 PM
I've just noticed something, it seems that it selects a new user whenever you refresh the screen?
I've checked the scheduler and it's only suppose to run on the 23rd hour of each day.
Anyone know why it would be selecting a new one, everytime the page is refreshed or opened?
Also, I'm still not sure what I would need to do add the profile pic?
Chris.
Did you run the queries from the install? Somehow the cron is running everytime you refresh.
Corriewf
05-27-2005, 01:01 PM
I'm not really sure what you mean by input the 'vairables using the hacks syntax' I'm new to this, could you give me an example of what you mean?
Thanks
Chris.
Add a template with name "memberoftheday" (without the quotes), and this content:
-------------------------------------------------------------------
<table class="" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="80%" align="center">
<tr>
<td>
<b>Member of the day is: <a target="_top" href="member.php?&u=$mday[userid]">$mday[username]</a>!</b><br/><br/>
Posts: $mday[posts]</span><br/>
Reputation: $mday[reputation]</span><br/>
<if condition="$mday[age]">Age: $mday[age]</span><br/></if>
<br/>
Favorite forum: <a href="forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a>
<br/>
<if condition="$mday[signature]">Signature: $mday[signature]</span><br/></if
<td><img src="$avatarurl"></td>
</td>
</tr>
</table>
<br/>
This code will move the avatar to the right hand side ( as I think it looks better there) and give you the signature you were looking for.
cdoyle
05-27-2005, 01:06 PM
Ya I ran the query, but just to make sure I tried to run it again, and it said that it already existed.
I also noticed that it doesn't do it on every refresh, it seems to be more random. One time you may be able to refresh the screen 10 times in a row, and it stays the same. Then the next time you open the page, and refresh it changes on the first try.
cdoyle
05-27-2005, 01:11 PM
Add a template with name "memberoftheday" (without the quotes), and this content:
-------------------------------------------------------------------
<table class="" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="80%" align="center">
<tr>
<td>
<b>Member of the day is: <a target="_top" href="member.php?&u=$mday[userid]">$mday[username]</a>!</b><br/><br/>
Posts: $mday[posts]</span><br/>
Reputation: $mday[reputation]</span><br/>
<if condition="$mday[age]">Age: $mday[age]</span><br/></if>
<br/>
Favorite forum: <a href="forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a>
<br/>
<if condition="$mday[signature]">Signature: $mday[signature]</span><br/></if
<td><img src="$avatarurl"></td>
</td>
</tr>
</table>
<br/>
This code will move the avatar to the right hand side ( as I think it looks better there) and give you the signature you were looking for.
Thanks, that does look better have the avatar on the right.
I did just noticed something with the sig, not sure if this can be fixed or not, On the current member it shows as this
[COLOR=Black [SIZE=1 BMWBoard (http://www.bmwboard.com) [/SIZE [/COLOR
I had to remove some brackets in this post to make it look the way it does on my member field.
You can really see what I'm talking about at
www.caraudiocentral.net
Is there anyway to make it display correctly?
Thanks again for your help.
Corriewf
05-27-2005, 01:33 PM
Ya I ran the query, but just to make sure I tried to run it again, and it said that it already existed.
I also noticed that it doesn't do it on every refresh, it seems to be more random. One time you may be able to refresh the screen 10 times in a row, and it stays the same. Then the next time you open the page, and refresh it changes on the first try.
Sounds like you have the time to run cron incorrectly set.....
Corriewf
05-27-2005, 01:46 PM
Thanks, that does look better have the avatar on the right.
I did just noticed something with the sig, not sure if this can be fixed or not, On the current member it shows as this
[COLOR=Black [SIZE=1 BMWBoard (http://www.bmwboard.com) [/SIZE [/COLOR
I had to remove some brackets in this post to make it look the way it does on my member field.
You can really see what I'm talking about at
www.caraudiocentral.net
Is there anyway to make it display correctly?
Thanks again for your help.
This has nothing to do with the code or this hack itself but with cmps as the software is outside of the forum index so any link like say "navbar" have to be fully inputed along with smileys and BB code. The user who is currently member of the day is using BBcode which is currently not recognized by your cmps. You need to go to vbadanced.com and research getting that to work.
cdoyle
05-27-2005, 01:58 PM
Thanks, I had a feeling it might have something to do with that.
Thanks again
Chris.
Corriewf
05-27-2005, 02:00 PM
Thanks, I had a feeling it might have something to do with that.
Thanks again
Chris.
Yeah I am sure that its a easy fix, but I just dont have the time to research it for you right now......
cdoyle
06-04-2005, 11:39 PM
Well I tried posting over at teh vbadvance forums about this, and the only response was to contact the author of the hack.
Here is what they said.
You'll need to talk to the hack author about including the bb code parse logic in his hack. CMPS is just displaying the results of the hack code, in order to get the hack to parse the bb codes it'll have to be changed to call the vB function.
I really don't know anything about this stuff, so if anyone has an idea! THANKS :)
mfarmerhi
06-06-2005, 08:17 PM
Ooo Ooo! Me too! Me too! LOL
If anyone has some direction on porting this for a Vbadvanced module, I'd really appreciate it.
~ Mark
bmroyer
08-21-2005, 04:36 AM
How do I remove this hack from my website? Or atleast get it out of view if I cant delete the hack..I don't like it anymore. Do I just edit my template addons? Not sure how to go about it, thanks.
jilly
08-23-2005, 04:08 PM
How do I remove this hack from my website? Or atleast get it out of view if I cant delete the hack..I don't like it anymore. Do I just edit my template addons? Not sure how to go about it, thanks.
Did you add it to your main page, where you look at the index of the boards? if it's there, then you'd have to edit your forumhome template in your main style to find it and remove the code from view.
FreeFox
09-30-2005, 02:40 PM
Hello all,
I followed the step by step, but still the box is empty from any informations !
So please provide me with the resolution.
Regards
jilly
10-26-2005, 06:54 PM
Is there a way we could set this to do any or all of these things? I'd liek to make member of the day have some of the same functions as 'birthday', for example..
* Notify the member of the day that they are "member of the day" through email, or pm, or both?
* Start a thread in a specified forum, like the birthday function, that says "Today's member of the day is xxx"
JayJay
11-20-2005, 01:21 PM
Would be nice to see this hack updated for 3.5.x
cdoyle
11-20-2005, 05:19 PM
Ya I'm hoping someone is working on a 3.5 version as well. I really like this hack.
ambrosious
12-28-2005, 10:06 PM
Is there a way to have the hack not pick a member for a pre determined time? I have it set up on a weekly basis and sometimes one member will be member of the week for three weeks out of four. Can I put code in that will take them out of the pool for... say, 4 weeks?
MarsNIIT
01-19-2006, 03:57 PM
error when run Scheduled Task Manager in vbb 3.5.3
Fatal error: Call to a member function on a non-object in /home/marsniit/public_html/includes/cron/memberoftheday.php on line 34
cdoyle
01-20-2006, 11:38 AM
This hack is for 3.0x, and hasn't been converted over to 3.5x yet.
I hope someone does soon, I miss this one.
Zachariah
01-20-2006, 01:45 PM
I have it almost done - I'll post soon.
75%
cdoyle
01-20-2006, 04:59 PM
Great!! Cant' wait to see it!
MarsNIIT
01-20-2006, 09:29 PM
Yes, great :D
Have body know about mod display member who post many of today???
Zachariah
01-22-2006, 12:56 AM
I'll post 3.5x ver. tomorrow. (Sunday - 01.22.06 PST)
- CMPS Block
- FORUMHOME (no image yet)
- AdminCP settings vs. edit Cron file.
- Other things as the hack progresses
Teasers:
cdoyle
01-22-2006, 02:38 AM
sweet!!
and a CMPS block too!!!
Can't wait to see it!
jilly
01-22-2006, 03:50 PM
wooohooo! Go zachariah!
cdoyle
01-22-2006, 04:25 PM
Is it posted yet, is it posted yet, is it posted yet :)
MarsNIIT
01-22-2006, 05:35 PM
Have body know about mod display member who post many of today???
Zachariah
01-22-2006, 09:34 PM
Not yet no :D
- I was working on the forumhome layout.
Default is @ the top. I had thoughts of in the "What's Going On?" box @ the bottem.
cdoyle
01-22-2006, 09:42 PM
will we be able to not have it display on the forumhome?
I'm the 3.0x version, I just had it appear on the CMPS homepage and not on the actual forum.
Zachariah
01-22-2006, 10:06 PM
yes the hack will have options of both.
- I have a CMPS done
- working on the "look" of the forumhome side.
There is tons of data you can pull up from the selected member, but how much of that should be, and not shown (since its all in the Profile anyhoo.)
- Shall we go basic and work from there ?
Simple w/ no member avatar.
EX: https://vborg.vbsupport.ru/attachment.php?attachmentid=20416
Zachariah
01-23-2006, 01:59 AM
delays
- Perhaps Monday.
JayJay
01-23-2006, 05:28 AM
Thanks for your efforts thus far Zachariah :) Am looking forward to getting this working again. Been 2 months already, and the members of my community are missing it severely.
jilly
01-23-2006, 05:08 PM
I just used to display mine in the upper left corner of forumhome. I put a table in above the navbar, and stuck it in that table. looked great.
Fields I suggest are:
Avatar
Username:
Join Date:
Number of Posts:
Number of Shouts:
That's all I need..
cdoyle
01-23-2006, 09:57 PM
If I remember right on mine I had the
Avatar
UserName
Favorite forum
A link to their profile (but that may have just been done by clicking on their user name, cant remember)
But really the biggie for me would be the User Name, and Avatar.
Can't wait to see this.
Zachariah
01-24-2006, 03:48 PM
3.5.x
https://vborg.vbsupport.ru/showthread.php?t=106188
solent
01-26-2006, 12:59 AM
Are you going to release one for 3.0.xx also ?
Pretty Please Zachariah :classic:
GamerJunk.net
02-08-2006, 08:13 PM
Any word on porting this to 3.5.3? I may just do it
jilly
02-09-2006, 03:02 PM
yes, it's now called honorable member
https://vborg.vbsupport.ru/showthread.php?t=106188
Loxias
09-23-2007, 12:17 AM
Will this work for 3.6 or is there something similar?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.