View Full Version : Post of the Day
filburt1
05-19-2003, 10:00 PM
This hack allows you to designate one or more posts to be the "posts of the day." The hack works such that all posts marked as a POTD starting at midnight (based on the user's timezone) are the posts of the day.
filburt1
05-20-2003, 06:19 PM
forumhome:
filburt1
05-20-2003, 06:20 PM
postbit:
Chris M
05-20-2003, 06:26 PM
Nice:)
Satan
Mephisteus
05-20-2003, 06:36 PM
nice :) Installed :)
Excellent idea filburt. I'm probably going to implement this into my sidebar. :p
bigwest
05-20-2003, 06:56 PM
Wow... was this due to my request???
If so... your AWESOME!!!
The only thing I would like to see added is a way to recognize users as to how many "Posts of the Day" they have received. Like a tally or something.
bigwest
05-20-2003, 06:59 PM
Oh... and one more thing... (and they say beggers can't be choosers :) )
I would like to see... "Post of the Day, selected by - mod so and so" etc.
That way any mod or admin could select their posts of the day which may or may NOT be the same posts.
zajako
05-20-2003, 07:09 PM
looks good, however i dislike having another thing that im required to do every day at my boards, if you know what i mean....
bigwest
05-20-2003, 07:11 PM
Today at 09:09 PM zajako said this in Post #9 (https://vborg.vbsupport.ru/showthread.php?postid=397822#post397822)
looks good, however i dislike having another thing that im required to do every day at my boards, if you know what i mean.... Well that's the beauty of this....
You don't have to pick a "Post of the Day".
But when you read a post that strikes you as deserving you can quickly and easily note it!
Interesting hack... may install it sooner or later... but I know what zajako is saying :D
* Dan clicks install
bigwest
05-20-2003, 09:00 PM
I am having trouble with #6 in the instructions.
Every time I add the code I get fatal errors in my admin screen.
bigwest
05-20-2003, 09:17 PM
OK... I think I have it fixed.
Is there a way I could let Super mods and mods also pick POTD?
lordofgun
05-20-2003, 11:05 PM
What did you do to fix it, bigwest? I'm having the same problem.
In answering your question, I think you can just add if
($bbuserinfo['usergroupid'] == 6 OR $bbuserinfo[usergroupid] == 5) to add usergroups to be able to pick POTD.
lordofgun
05-20-2003, 11:16 PM
Today at 06:00 PM bigwest said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=397889#post397889)
I am having trouble with #6 in the instructions.
Every time I add the code I get fatal errors in my admin screen.
I'm having the same problem in 2.2.6.
Can anyone help? Thanks in advance! Incredible hack!
filburt1
05-20-2003, 11:22 PM
No offense but I'm not psychic: what are the errors? :)
lordofgun
05-20-2003, 11:28 PM
LOL...no offense taken.
Parse error: parse error, unexpected '(', expecting ',' or ';' in /home/keith/billszone.com/fanzone/admin/functions.php on line 67
Fatal error: Call to undefined function: getuserinfo() in /home/keith/billszone.com/fanzone/admin/sessions.php on line 324
EDIT: Keep in mind I'm on 2.2.6. Thanks again. ;)
lordofgun
05-21-2003, 12:08 AM
NM...figured it out. I just placed what you said after the next semi-colon.
lordofgun
05-21-2003, 12:31 AM
Just a quick qestion...is this really server intensive? My index page seems to be loading a lot slower.
bigwest
05-21-2003, 01:14 AM
Today at 02:08 AM lordofgun said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=397933#post397933)
NM...figured it out. I just placed what you said after the next semi-colon.
Yea... that is what I did as well.
filburt1
05-21-2003, 01:14 AM
Today at 09:31 PM lordofgun said this in Post #19 (https://vborg.vbsupport.ru/showthread.php?postid=397939#post397939)
Just a quick qestion...is this really server intensive? My index page seems to be loading a lot slower.
For very big forums, it probably is.
bigwest
05-21-2003, 01:19 AM
So filburt1 what do you think about my other suggestions....
In order of importance:
- Allow mods and supermods to pick POTD
- Have a way to mark the post (within the post) to distinguish it as POTD
- Keep a running tally for each user and their number of POTD's. (maybe award them little feathers or stars or whatever)
Without these above enhancements the POTD's are sort of meaningless or lost once the day is over.
Plus, if we kept a tally we could determine POTY (Post of the Year) - I guess POTY isn't the greatest acronym. :D
filburt1
05-21-2003, 01:27 AM
I generally release more powerful versions of my hacks released here as paid hacks, but I'll consider it.
bigwest
05-21-2003, 01:33 AM
Today at 03:27 AM filburt1 said this in Post #23 (https://vborg.vbsupport.ru/showthread.php?postid=397954#post397954)
I generally release more powerful versions of my hacks released here as paid hacks, but I'll consider it. Cool, that would be GREAT!
In the meantime is there an easy way to let mods and supermods pick POTD?
It seem's like there was some of the code that determined usergroups. Couldn't other usergroups be added?
filburt1
05-21-2003, 01:53 AM
The addon for that was posted a few posts up (the if statement).
bigwest
05-21-2003, 02:03 AM
Oh I didn't notice when lordofgun wrote.. ($bbuserinfo['usergroupid'] == 6 OR $bbuserinfo[usergroupid] == 5)I will try it thanks!!
To both of you!
bigwest
05-21-2003, 02:18 AM
Uh.... I think I found a bug.
I tried the above alteration which did not work.
But in trying I noticed that only admins can see the posts of the day in the first place (on the forum home page).
When I log in as a regular member it says...No posts have been designated "Post of the Day" by the administrator.Even though there are three POTD's.
I see them fine when I am logged in as a admin.
Anyone else have the same problem?
P.S. The problem exists with or without the alteration for letting mods pick POTD.
bigwest
05-21-2003, 02:29 AM
This is worse than I thought.
It seems to me the only people who can see the POTD's on the forum index is the person who picked the POTD.
Everyone else including other admins only see...No posts have been designated "Post of the Day" by the administrator.
lordofgun
05-21-2003, 02:40 AM
It's working fine for me. Make sure you followed all the steps.
bigwest
05-21-2003, 02:43 AM
Today at 04:40 AM lordofgun said this in Post #29 (https://vborg.vbsupport.ru/showthread.php?postid=397973#post397973)
It's working fine for me. Make sure you followed all the steps. Weird... did you get your other usergroups code to work?
bigwest
05-21-2003, 02:47 AM
This is too strange I have followed the instructions to a "T". Yet only the originator of the POTD can see the POTD's. Any ideas?
lordofgun
05-21-2003, 02:49 AM
I haven't tried it. Not working for you? You realize you have to replace the number 5 with whatever usergroup you want to be able to approve POTD, right?
bigwest
05-21-2003, 02:53 AM
Today at 04:49 AM lordofgun said this in Post #32 (https://vborg.vbsupport.ru/showthread.php?postid=397978#post397978)
I haven't tried it. Not working for you? You realize you have to replace the number 5 with whatever usergroup you want to be able to approve POTD, right? Yea... I realize that. But it didn't work.
But I do appreciate your input.
bigwest
05-21-2003, 04:17 AM
I have checked everything and still no luck. Any ideas?
bigwest
05-21-2003, 04:23 AM
HA!!!!! I figured out the first problem.
This hack is based on the individual users time setting therefore if the setting is wrong you might not see anything because your clock is in essence showing tomorrow.
Yes, I admit it I should have figured this out quicker.
I apologize!
But maybe my stupidity will help someone else! :D
bigwest
05-21-2003, 04:37 AM
However, the alteration for mods and supermods does not work. It gives the mods and supermods a "no permissions" page.
Dean C
05-21-2003, 01:02 PM
So this automatically expires at midnight and sets all posts to not potd?
- miSt
ethics
05-21-2003, 01:05 PM
Fili, anyway to make this hack in to Post of the Month? Counting days instead of hours?
I'd be willing to pay for something like that.
filburt1
05-21-2003, 03:03 PM
Today at 10:02 AM Mist said this in Post #37 (https://vborg.vbsupport.ru/showthread.php?postid=398071#post398071)
So this automatically expires at midnight and sets all posts to not potd?
- miSt
Yes to the first bit, no to the second (they're still marked as a POTD, but just not that day; it stores a potddateline for each post (0 = not a POTD, anything else = made a POTD at that date/time, and it shows anything with a potddateline > midnight of that day).
bigwest
05-21-2003, 03:15 PM
Today at 05:03 PM filburt1 said this in Post #39 (https://vborg.vbsupport.ru/showthread.php?postid=398106#post398106)
Yes to the first bit, no to the second (they're still marked as a POTD, but just not that day; it stores a potddateline for each post (0 = not a POTD, anything else = made a POTD at that date/time, and it shows anything with a potddateline > midnight of that day). Filburt1 I have been using this thing for a day now and I really see awesome potential for this hack - in a way I am really surprised this didn't already exist.
You already know my other suggestions but here is one more....
Due to the fact that almost nobody on these forums takes the time to actually set their clock to the correct time zone a large percentage of the users don't even SEE the post of the day because their clock is displaying tomorrow or yesterday.
Maybe it would be better if the post of the day simply lasted 24 hours from the time it was picked. That way it wouldn't matter how your clock was set.
filburt1
05-21-2003, 03:18 PM
I was simply following the model for most daily vB things; namely birthdays which work the same way...
Dean C
05-21-2003, 03:28 PM
Today at 05:18 PM filburt1 said this in Post #41 (https://vborg.vbsupport.ru/showthread.php?postid=398116#post398116)
I was simply following the model for most daily vB things; namely birthdays which work the same way...
Ahh very cleverly done ;)
- miSt
interesting and usefull hack, thanks
*clicks install
Intex
05-23-2003, 07:26 PM
Sweet hack Filburt1.
/me clicks install.
bigwest
05-23-2003, 08:12 PM
Hey, can anyone figure out how to allow mod's and supermod's (or any ther user group) to also select POTD's?
The suggestion earlier on this thread doesn't work it simply gives the added usergroup the "no permissions" page when selecting the POTD.
Thanks in advance for you time and effort.
bigwest
05-27-2003, 08:46 PM
bump...
Seawolf
05-27-2003, 09:05 PM
I think it has something to do with the
if ($bbuserinfo['usergroupid'] != 6) show_nopermission();
in markaspotd.php
bigwest
05-27-2003, 09:14 PM
Today at 11:05 PM Seawolf said this in Post #47 (https://vborg.vbsupport.ru/showthread.php?postid=400797#post400797)
I think it has something to do with the
if ($bbuserinfo['usergroupid'] != 6) show_nopermission();
in markaspotd.php I think so too.
Seawolf
05-28-2003, 03:28 AM
Yesterday at 06:05 PM Seawolf said this in Post #47 (https://vborg.vbsupport.ru/showthread.php?postid=400797#post400797)
I think it has something to do with the
if ($bbuserinfo['usergroupid'] != 6) show_nopermission();
in markaspotd.php
Replace that quoted code with this:
if (($bbuserinfo['usergroupid'] != 6) && ($bbuserinfo['usergroupid'] != 5))
bigwest
07-24-2003, 04:16 AM
OK.... first things first I want to thank filburt1 for creating this hack.
And I certainly do not want to sound like I don't like the hack because I do. In fact its installed on my board as we speak.
However.....
For this to be a really great hack I think it needs some enhancements. Is anyone interested in fixing it up???
Here is what the hack needs in my opinion....
- A way to display in the postbit (for all to see) that the post was selected as a "Post of the Day" and who selected it. Maybe even a graphic with a trophy could be implemented. This designation needs to stay up unless the post is unselected as "post of the day". That way when you look through old threads you can see which ones were awarded "Post of the Day".
- A way to track all the posts of the day so later you could pick a "post of the month" or "Post of the year" etc.
- A way to display in the postbit how many "posts of the day" each user has been awarded.
- A easy way to allow other usergroups to select "Post of the Day" i.e.; super mods and mods etc.
Personally I think this hack could be one of the most useful hacks EVER created if it was enhanced.
Would anyone like to expand on this hack???
Shuriken-UK
07-26-2003, 08:04 PM
|I like this also, I would like it to be possible to upload an image to go with the POTD for forumhome (as I run a 3d forum) and for the POTD to be displayed in columns, also Bigwest's ideas :)
Expanding #1 idea from bigwest - Just using the same sort of thing as vb.org's "HotM", a text at start of title, and a graphic at top of page
Catch-22|BL
09-09-2003, 07:56 PM
This is a great concept but it was way too much of a burden for our servers. Regardless, nice idea and nice work!
lasto
09-09-2003, 08:22 PM
anyone know what sort of queries this adds ?
its a good idea if its no queries :)
Aaron1
11-25-2003, 06:41 PM
Yeah i would like to know this aswell before installing this.
How much queries does this add to the forumhome page?
index
01-29-2004, 08:51 AM
Hi,
I liked the hack, and I just wanna know, if theres a way to make POTD to be scrolling in the forum home
for example, I select the POTD by clicking the link, and when it shows up in the forum home, I want it to be scrolling comes from left to right !!
can anyone help me in showing the POTD scrolls without the table that its in ?
Thanks a lot
nhochochack
01-29-2004, 02:07 PM
thank for share .. it a nice mod .. click install
index
01-30-2004, 09:05 PM
Hi again
can anyone help me out to make the hack works in scrolling !!
Thanks a lot
index
02-04-2004, 12:53 AM
Hi guyz
wanna reply to my Q. if anyone can help
Thanks a lot
deaconxgp
04-06-2004, 04:09 PM
Is there a version 3.0 of this hack?
deaconxgp
04-13-2004, 01:10 PM
^^anyone know if there is?
ethics
04-24-2004, 01:27 PM
Good question...
index
04-10-2005, 08:57 PM
Hi filburt1,
I liked your old hack, Post Of The Day which was for vb 2.3.x a lot
and I hope you can help us to let it work with 3.0.7 or at least vb 3.0.x so we can get use from it in our new 3.0.x forums
I hope to hear from you ASAP
Thanks a lot
index
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.