vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Post of the Day (https://vborg.vbsupport.ru/showthread.php?t=53170)

filburt1 05-19-2003 10:00 PM

Post of the Day
 
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 :)

rake 05-20-2003 06:37 PM

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

Quote:

Today at 09:09 PM zajako said this in Post #9
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!

Dan 05-20-2003 07:16 PM

Interesting hack... may install it sooner or later... but I know what zajako is saying :D

[high]* Dan clicks install[/high]

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

Quote:

Today at 06:00 PM bigwest said this in Post #12
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

Quote:

Today at 02:08 AM lordofgun said this in Post #18
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

Quote:

Today at 09:31 PM lordofgun said this in Post #19
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

Quote:

Today at 03:27 AM filburt1 said this in Post #23
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..
Quote:

($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...
Quote:

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...
Quote:

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

Quote:

Today at 04:40 AM lordofgun said this in Post #29
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

Quote:

Today at 04:49 AM lordofgun said this in Post #32
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

Quote:

Today at 10:02 AM Mist said this in Post #37
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

Quote:

Today at 05:03 PM filburt1 said this in Post #39
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.


All times are GMT. The time now is 07:27 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
  • Page Generation 0.01243 seconds
  • Memory Usage 1,815KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete