Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[VB3 RC3] Member of the day Details »»
[VB3 RC3] Member of the day
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-16-2004 Last Update: Never Installs: 136
 
No support by the author.

Tested in 3.0.1

This hack lets you "elect" a member of the day (member of any period of
time actually, but defaults to member of the day).

The member of the day is someone randomly picked from all the users in
your forum that have certain amount of posts the day before, that have
visited the forum and that have at least 50 posts and 10 reputation. You
can also change that values.

By default it appers in top of the forumhome. It is a nice way for members
of the forum to get to know each other.

Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 05-13-2004, 11:44 PM
Maikeru's Avatar
Maikeru Maikeru is offline
 
Join Date: Apr 2004
Location: arizona
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work. I learned a lot by seeing this hack on some forums. I even made friends. :nervous:. I'll probably be using this hack too.
Reply With Quote
  #53  
Old 05-15-2004, 02:25 PM
brandy's Avatar
brandy brandy is offline
 
Join Date: Mar 2004
Location: Florida
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AlexanderT
That is what I am looking for, too. Looks like Kentaurus hasn't visited this thread for the past two months though
I've noticed on mine, that some avatars appear, and others don't. It seems that the smaller avatars appear, but the larger ones don't - but I'm not sure if size is the defining factor.
Brandy
Reply With Quote
  #54  
Old 05-16-2004, 08:10 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brandy
I installed the hack - it is nice, but isn't the user's profile image supposed to display? It isn't displaying. Am I wrong?
Brandy

Another question, how can I add a custom profile field to display in the memberoftheday? I tried various things, but can't figure it out.

Thanks much!
Brandy
Some modifications to my hack (just download the files again):

Added support for default avatars (not the ones uploaded by the user but the ones the administrator has configured in the forum)

You can now use any user or userfield variable in the memberoftheday template.




About your question of moderators being ignored I suggest you increase the value of $days to something really high. Sometimes mysql is not very good at random numbers... In my forum sometimes some member is elected twice very quickly and some other members are still waiting their turn.
Reply With Quote
  #55  
Old 05-16-2004, 09:10 AM
AlexanderT's Avatar
AlexanderT AlexanderT is offline
 
Join Date: Mar 2003
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

update works great!

Thanks Kentaurus.
Reply With Quote
  #56  
Old 05-16-2004, 08:28 PM
brandy's Avatar
brandy brandy is offline
 
Join Date: Mar 2004
Location: Florida
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kentaurus
Some modifications to my hack (just download the files again):

Added support for default avatars (not the ones uploaded by the user but the ones the administrator has configured in the forum)

You can now use any user or userfield variable in the memberoftheday template.




About your question of moderators being ignored I suggest you increase the value of $days to something really high. Sometimes mysql is not very good at random numbers... In my forum sometimes some member is elected twice very quickly and some other members are still waiting their turn.
Thank You!
The avatars are still not showing (just the small ones)
I changed the number of days from 30 to 90, so we'll see if that helps
Also, how do you write the syntax to include field5 in the template?
I tried just: $field5
but it doesn't work.
Thanks much!
Brandy
Reply With Quote
  #57  
Old 05-17-2004, 04:11 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brandy
Thank You!
The avatars are still not showing (just the small ones)
I changed the number of days from 30 to 90, so we'll see if that helps
Also, how do you write the syntax to include field5 in the template?
I tried just: $field5
but it doesn't work.
Thanks much!
Brandy
Just wait for the next member of the day to be generated, I expect then the avatar will be visible.

You need to use $mday[field5], please let me know if that works as expected.
Reply With Quote
  #58  
Old 05-31-2004, 01:31 AM
fridayweb's Avatar
fridayweb fridayweb is offline
 
Join Date: Jun 2002
Location: F13 Headquarters
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you know of a way to get the tasks list to generate a page so that people could see all of the previous members of the day?

Hmm... or maybe just do an automatic entry on the calendar so people can see it that way.
Reply With Quote
  #59  
Old 06-01-2004, 09:27 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i just installed it
everything is fine except the users avtars are not getting display

i think they are using custom avtars on forum..
any ideaz to fix this.

Thnx.
Sandy...
Reply With Quote
  #60  
Old 06-03-2004, 08:15 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaN-DeeP
i just installed it
everything is fine except the users avtars are not getting display

i think they are using custom avtars on forum..
any ideaz to fix this.

Thnx.
Sandy...
pretty weird
but as stated in ur above post. it will work after 1 day and it does


however here is one question.
My forums are hosted in us (TIME HERE IS GMT - 8:00) and my forums people are located in india (GMT + 5:30)

When the clock strike 1:00 pm afternoon here, member of day gets changed. and not @ midnight 12:00
How do i change this,
Its kinda buggy that i changes @ afternoon when almost 13 hours have passed away.

Sandy...
Reply With Quote
  #61  
Old 06-04-2004, 06:00 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaN-DeeP
pretty weird
but as stated in ur above post. it will work after 1 day and it does


however here is one question.
My forums are hosted in us (TIME HERE IS GMT - 8:00) and my forums people are located in india (GMT + 5:30)

When the clock strike 1:00 pm afternoon here, member of day gets changed. and not @ midnight 12:00
How do i change this,
Its kinda buggy that i changes @ afternoon when almost 13 hours have passed away.

Sandy...
Change the hour in the cron job. Instead of having it at 0 hour substract 13 hours so it can change just at midnight.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04732 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete