Version: 1.00, by Admin (Coder)
Developer Last Online: Nov 2024
Version: 2.2.x
Rating:
Released: 02-03-2002
Last Update: Never
Installs: 103
No support by the author.
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:
The member of the day will reset every day at 12:00am server time.
It is possible for the admins to re-choose the member of the day at any given time, by adding "?resetmember=1" when visiting index.php. (only logged in admins can use this; for regular users it won't do anything)
The only check in the code is to prevent the same member of the day two days in a row. It is possible, however, that the same member will be chosen two days after he was already a member of the month.
I don't recommend using this hack on a small forum (with not-so-many members) because of the above.
That's it, have fun.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I tried to change the wording on the Member of the day to Member of the Moment (because it seems to picking a new member whenever it wants, lol).
I changed it to:
Quote:
// end of member of the day stuff";i:11;s:9:"forumhome";i:12;s:94:"<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername </a>";i:13;s:253:"<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername </a><br> The HN Forums Member of the Moment is <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$memberoftheday[userid]">$memberoftheday[username]</a>";i:14;s:114:"INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,-2,'memberoftheday','0||vb||0||vb||0')";}
And uploaded it. But it didn't change on the index page as you can see........
For the Quick Reply Box, You have mixed up the code for the showthread.php and the code for the showthread_replybox template. Start over and take what you have out of the showthread_replybox and put in the right code for it and then upload the showthtread.php that I fixed for you and it should work fine.
Dude, I ain't tripping. Look at what I'm seeing. There are no instructions other than to create the template itself. Then there's an image of the box. Is the html transforming into an image especially for me?
I'm not viewing it in anything. I'm just hitting FireFly's .txt link in his first post and that's what I get. And it isn't just FireFly's either. I'm getting on a few others/
Tell me I'm not crazy! I'm new to hacking vB but not to php and the concept of hacking in general.