![]() |
ok, now I'm running into some problems, lol. I don't have the MySQL access to the directory, so it's a coding problem (vBHacker added the query correctly, I wish all hacks where like this) anyway, it tells me it can't find
Code:
$permissions=getpermissions(); |
Quote:
|
I think I found a fix if you're having this problem
find PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
I'll try that! Thanks!
|
Let me know if it works for you.
|
Ok, will do. It might take a few days to make sure it's not going to use the same two names.
|
Quote:
|
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. |
This hack provides a link to their profile. :)
Quote:
Quote:
|
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 :D |
Good job! Looks great!
BTW, what is the "boardstat.php hack"? I must have missed that one. :) |
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. :eek: |
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). |
Quote:
|
Quote:
|
Quote:
|
:) 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] |
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:
|
Yes. ;)
|
:) I knew you'd be to my rescue. Thanks, Boofo!
|
You're very welcome. ;)
|
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? |
Ok, try this:
Change: PHP Code:
PHP Code:
|
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! |
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. |
Quote:
|
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. ;)
|
.
|
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:
|
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. ;)
|
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. ;) |
Quote:
|
Cool thanks Mheinemann! ;)
|
*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.
|
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:
|
:D Sweet. Thanks, Boofo. Even more random than random? Can't beat that! *lol*
[high]* Rose installs fix, edits as needed, and is mucho greatful[/high] |
Rose, you don't need to install the fix with this code I gave you. The $seed part is not necessary with the RAND(NOW()), the way I have it in the code. That takes care of the seed already. If you just install the code (no fix) the way it is and adjust the lines to who you want to include or exclude, that will be all you need to do. With the newer versions of mySQL, they need a seed or otherwise you get a randomizing that is close to the last one. The seed allows for a more random randomizing. Does that make any sense? ;) Anyway, enjoy and let me know if the 30 days feature is working ok. And you're very welcome. ;)
|
Quote:
;) Makes enough sense to go over me little head. :D When I said "fix", I meant I changed the chunk of code as you posted previous to mine. I don't mean I went back in the thread and installed any of the rest of it. Just your most recent update. :D Sorry if I mislead/misunderstood. [high]* Rose sings "It's a small world" [/high] That was random. Thanks again and I'll be sure to keep an eye on it and let you know how things go. So far I've had seven MOTD's and not a single one awarded a free Sunday Brunch. :( |
So I guess there's an extra free Sunday Brunch now that needs a home? ;)
|
I have Vbulletin 2.2.9, It shows the member of the day, but it never changes. It show the same member all the time every time.
What could my problem be. http://www.byuboyz.com |
All times are GMT. The time now is 03:41 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|