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
  #132  
Old 05-27-2005, 01:01 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cdoyle
I'm not really sure what you mean by input the 'vairables using the hacks syntax' I'm new to this, could you give me an example of what you mean?

Thanks
Chris.

PHP Code:
Add a template with name "memberoftheday" (without the quotes), and this content:

-------------------------------------------------------------------
<
table class="" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="80%" align="center">
<
tr>
  
  <
td>
    <
b>Member of the day is: <a target="_top" href="member.php?&u=$mday[userid]">$mday[username]</a>!</b><br/><br/>
    
Posts$mday[posts]</span><br/>
    
Reputation$mday[reputation]</span><br/>
    <if 
condition="$mday[age]">Age$mday[age]</span><br/></if>
    <
br/>
    
Favorite forum: <a href="forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a>
    <
br/>
   <if 
condition="$mday[signature]">Signature$mday[signature]</span><br/></if
    <
td><img src="$avatarurl"></td>    
  </
td>
</
tr>
</
table>
<
br/> 
This code will move the avatar to the right hand side ( as I think it looks better there) and give you the signature you were looking for.
Reply With Quote
  #133  
Old 05-27-2005, 01:06 PM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya I ran the query, but just to make sure I tried to run it again, and it said that it already existed.

I also noticed that it doesn't do it on every refresh, it seems to be more random. One time you may be able to refresh the screen 10 times in a row, and it stays the same. Then the next time you open the page, and refresh it changes on the first try.
Reply With Quote
  #134  
Old 05-27-2005, 01:11 PM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by corriewf
PHP Code:
Add a template with name "memberoftheday" (without the quotes), and this content:

-------------------------------------------------------------------
<
table class="" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="80%" align="center">
<
tr>
  
  <
td>
    <
b>Member of the day is: <a target="_top" href="member.php?&u=$mday[userid]">$mday[username]</a>!</b><br/><br/>
    
Posts$mday[posts]</span><br/>
    
Reputation$mday[reputation]</span><br/>
    <if 
condition="$mday[age]">Age$mday[age]</span><br/></if>
    <
br/>
    
Favorite forum: <a href="forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a>
    <
br/>
   <if 
condition="$mday[signature]">Signature$mday[signature]</span><br/></if
    <
td><img src="$avatarurl"></td>    
  </
td>
</
tr>
</
table>
<
br/> 
This code will move the avatar to the right hand side ( as I think it looks better there) and give you the signature you were looking for.
Thanks, that does look better have the avatar on the right.

I did just noticed something with the sig, not sure if this can be fixed or not, On the current member it shows as this

[COLOR=Black [SIZE=1 BMWBoard [/SIZE [/COLOR

I had to remove some brackets in this post to make it look the way it does on my member field.

You can really see what I'm talking about at
www.caraudiocentral.net


Is there anyway to make it display correctly?

Thanks again for your help.
Reply With Quote
  #135  
Old 05-27-2005, 01:33 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cdoyle
Ya I ran the query, but just to make sure I tried to run it again, and it said that it already existed.

I also noticed that it doesn't do it on every refresh, it seems to be more random. One time you may be able to refresh the screen 10 times in a row, and it stays the same. Then the next time you open the page, and refresh it changes on the first try.

Sounds like you have the time to run cron incorrectly set.....
Reply With Quote
  #136  
Old 05-27-2005, 01:46 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cdoyle
Thanks, that does look better have the avatar on the right.

I did just noticed something with the sig, not sure if this can be fixed or not, On the current member it shows as this

[COLOR=Black [SIZE=1 BMWBoard [/SIZE [/COLOR

I had to remove some brackets in this post to make it look the way it does on my member field.

You can really see what I'm talking about at
www.caraudiocentral.net


Is there anyway to make it display correctly?

Thanks again for your help.

This has nothing to do with the code or this hack itself but with cmps as the software is outside of the forum index so any link like say "navbar" have to be fully inputed along with smileys and BB code. The user who is currently member of the day is using BBcode which is currently not recognized by your cmps. You need to go to vbadanced.com and research getting that to work.
Reply With Quote
  #137  
Old 05-27-2005, 01:58 PM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I had a feeling it might have something to do with that.

Thanks again
Chris.
Reply With Quote
  #138  
Old 05-27-2005, 02:00 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cdoyle
Thanks, I had a feeling it might have something to do with that.

Thanks again
Chris.

Yeah I am sure that its a easy fix, but I just dont have the time to research it for you right now......
Reply With Quote
  #139  
Old 06-04-2005, 11:39 PM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I tried posting over at teh vbadvance forums about this, and the only response was to contact the author of the hack.

Here is what they said.

Quote:
You'll need to talk to the hack author about including the bb code parse logic in his hack. CMPS is just displaying the results of the hack code, in order to get the hack to parse the bb codes it'll have to be changed to call the vB function.
I really don't know anything about this stuff, so if anyone has an idea! THANKS
Reply With Quote
  #140  
Old 06-06-2005, 08:17 PM
mfarmerhi mfarmerhi is offline
 
Join Date: Apr 2003
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ooo Ooo! Me too! Me too! LOL

If anyone has some direction on porting this for a Vbadvanced module, I'd really appreciate it.

~ Mark
Reply With Quote
  #141  
Old 08-21-2005, 04:36 AM
bmroyer bmroyer is offline
 
Join Date: Dec 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I remove this hack from my website? Or atleast get it out of view if I cant delete the hack..I don't like it anymore. Do I just edit my template addons? Not sure how to go about it, thanks.
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 10:42 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.04851 seconds
  • Memory Usage 2,345KB
  • 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
  • (2)bbcode_php
  • (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