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 |
#167
|
||||
|
||||
Ok, will do. It might take a few days to make sure it's not going to use the same two names.
|
#168
|
||||
|
||||
Quote:
|
#169
|
||||
|
||||
Has anyone figured out how to allow for the member of the day's avatar to show and/or a link to their profile?
Thanks. |
#170
|
||||
|
||||
This hack provides a link to their profile.
Quote:
Quote:
|
#171
|
||||
|
||||
I am very new to this hacking thing, but I spent some time trying to do this myself, and I shocked myself! I added this to the boardstat.php hack so I could put it on a non-vb page. I hope I do not confuse anyone, but here is what I did and a screen shot. I am very pleased with the results.
in the boardstat.php file I added this to the end of the "member of the day stuff": if ($memberoftheday[userid]!=0) { $avatarurl2=getavatarurl($memberoftheday[userid]); if ($avatarurl2=='') { $avatarurl2='images/avatars/noavatar.gif' ; } $avatarimage2='<img src="http://www.cacfriends.com/shareacard/forums/upload/ '.$avatarurl2.'" border="0" height=38>'; } And at the bottom of the page just before the ?> I placed this (right HTML output): </td> <td width=40% align=right> <font size=1 face=verdana>Newest member <a href=\"http://www.cacfriends.com/shareacard/forums/upload /member.php?s=&action=getinfo&userid=$newuserid\">$ newusername</a><br> <font size=1 face=verdana>Member of the day is: <font color=yellow><b>$memberoftheday[username]</font></b><br> <font size=2 face=verdana><b><a href=\"http://www.cacfriends.com/shareacard/forums/upload /member.php?s=&action=getinfo&userid=$memberoftheda y[userid]\">$avatarimage2</b></a><br></td></table>"; WITH THE BLUE ITEMS NEEDING TO BE CHANGED TO YOUR SITE SPECS Everything is working just fine, here is a link to the testpage I have it on: My test page and a screen shot too. I hope I didn't screw anyting else up, I guess time will tell. This is more fun then I thought |
#172
|
||||
|
||||
Good job! Looks great!
BTW, what is the "boardstat.php hack"? I must have missed that one. |
#173
|
||||
|
||||
Here is the link:
Boardstat link Your signature sounds like me at the mall with my kids, I tell my 2 sons (13 and 10) not to walk with me, I don't want anyone to think I am that old. |
#174
|
||||
|
||||
Thank you for the link.
Congratulations on surviving teenagers. I have a 5 year old and 3 months old twins (all boys) and 2 grown boys (21 and 22) and I'm not sure I'll survive it all. I think that's why I adopted the signature. (But I wouldn't trade any of them for the world). |
#175
|
||||
|
||||
Quote:
|
#176
|
||||
|
||||
Quote:
|
#177
|
||||
|
||||
Quote:
|
#178
|
||||
|
||||
Thanks Firefly for the hack. And many thanks to Boofo whose previous posts (see page nine) have helped get it working for me.
[high]* Rose pounces on install[/high] |
#179
|
||||
|
||||
Outta curiosity - If I wanted to limit the usergroups that are eligible for the Member of the Day, I'd simply plug in the appropriate numbers as shown below, right? I mean, the below will pull members from usergroups 5,6,7, & 2, right?
PHP Code:
|
#180
|
||||
|
||||
Yes.
|
#181
|
||||
|
||||
I knew you'd be to my rescue. Thanks, Boofo!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|