![]() |
*hehe* Hey Boofo - I've got a dupe motd. It's not a biggie, but I wanted to let you know. The dupe was motd on 3/17 and 3/22.
Raptor - look back a page or two in this thread and I believe there's a fix for your problem. :) |
Quote:
|
Rather than have it choose a member at random, how can I make it so that the member of the day is the person with the highest amount of posts that day?
|
Quote:
https://vborg.vbsupport.ru/showthrea...threadid=50733 You might want to try that. :D Boofo - Not a problem at all. :D I'm thinking of adding some way to track the past X members of the day in a list of sorts. Like five days. Wanna point me in a direction? I keep track for reasons of giving away a free brunch, as established, but I keep an Excel sheet. I'm only afraid to miss weekends or when I'm not at the work computer which is why keeping track of the most recent 2-5 members or so might be nice. |
Is this compatible with 2.3.0? I notice it's no longer in use here....
|
It looks like a few have been removed and a few added here and there. ;)
|
nice
|
But will it work with 2.3.0?
|
Is there a way this can work with vbHome lite 4.2? I'd really like to add this, but that is where I'd want it to be.
|
OKay, I've installed this but even with all the different versions of lastactivity in the query, it still pulls people who haven't been active in months on my site. Anyone with a working query?
Also, I have modified it slightly to add the posts and title so they show up on my main page and it works fine with the manual reset, but doesn't work when it is automatically reset. What do I need to do to make sure it works with that as well? |
<a href="http://foros.animeko.com.mx/memberofday" target="_blank">http://foros.animeko.com.mx/memberofday</a>[1].hack.php
What Happen ! |
I'm trying to figure out the code necessary to make the words "Member of the Day" appear in the postbit of the MOTD, and I'd appreciate a little help...
I know the code needs to go somewhere in showthread.php. I'm not sure exactly where in the file it should go, but at the very least, I know it needs to start with the same code that the index.php uses: Code:
$getdaytemplate=$DB_site->query_first("SELECT template FROM template WHERE title='memberoftheday' AND templatesetid=-2"); Can someone help make this vision work? I love the idea for the hack but I don't want to install it if I can't have this postbit thing... Boofo? |
You're trying to make it so that when a member is Member of the Day, it says so in that member's postbit? That would be pretty cool. :)
|
|
How many queries will that add, though? Won't it add a query for each member?
|
Ooo... yeah, you're right, Boofo. Is there some other way I can code it so that it'll only perform one query?
|
I'm not really sure how to pull this one off. Give me some time to see what I can come up with. ;)
|
Never mind... I figured something out myself. :) Here's what I did... (This assumes you have it installed.)
1. Run the following query: Quote:
Quote:
Code:
$DB_site->query("UPDATE user SET motd='0' WHERE userid=$daybits[1]"); Code:
$DB_site->query("UPDATE template Code:
$DB_site->query("UPDATE user SET motd='1' WHERE userid=$newmember[userid]"); Code:
eval("\$post[profile] = \"".gettemplate("postbit_profile")."\";"); Code:
if ($post[motd]) { This not only adds two queries to the home page (which is not good, but better than 25+ more queries on each showthread page) but it allows the Member of the Day to be recorded as a variable in the user table. This might be useful if, say for instance, one wanted to have multiple Members of the Day for some reason. :) |
What? Now I'm interested in what I missed. ;)
|
Does this work?
|
It works great on my boards...
And just to clarify something. What I did adds two additional queries to the homepage, but those queries only run when the member of the day gets changed (i.e. once a day or whenever the admin adds the parameter) so it shouldn't adversely impact the homepage's regular performance. :) |
Extra cool. So those 2 queries are only added on one page view as that's all it takes to switch MOTD. I'm definitely trying to keep queries down on the home page at least...
|
here's a slight variation for the member of the day hack
I did it on my boards, and it works fine. I modified the code to use the table word from vbulletin. On my forum it's called the word of the day. Some words written from the members are just fun, especially when there are typo :) for exemple : "Word of the day : pie" |
Was Vivi Ornitier's emailing idea overlooked, because I think it's a wicked idea and should be considered.
I could actually put it to very good use because of a feature on my forums. |
will this Member of the day hack work in 2.3.2??
|
Quote:
|
what about vb 3.0.3?
|
My people miss this after I upgraded.
Chris |
Anyone using that on a VB2 board so i can have a look?
|
does this hack work on vb3.0.3? just wondering...
|
All times are GMT. The time now is 04:18 AM. |
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:
|