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
  #122  
Old 05-08-2005, 03:25 AM
restless's Avatar
restless restless is offline
 
Join Date: Jan 2002
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure if anyone has answered this anywhere... but I've added this to my vba cmps.

Here how i did it (I have no idea if this is the BEST way to do it):

1. Edit global.php

Find:
PHP Code:
$specialtemplates array_merge($specialtemplates
        array(
            
'adv_modules'
add BELOW:
PHP Code:
'memberoftheday'
Find:
PHP Code:
$globaltemplates array_merge($globaltemplates,
        array(
             
'adv_portal'
Add BELOW:
PHP Code:
'memberoftheday'
Find:
PHP Code:
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 13:38, Tue Feb 22nd 2005
|| # CVS: $RCSfile: global.php,v $ - $Revision: 1.256.2.5 $
|| ####################################################################
\*======================================================================*/ 
Add ABOVE:
PHP Code:
$mday unserialize($datastore['memberoftheday']);
if (!
$mday['hascustomavatar'] && $mday['avatarpath'])
{
    
$avatarurl $mday['avatarpath'];
}
else
{
    
$avatarurl "vboptions[bburl]/image.php?u=$mday[userid]";
}
eval(
'$memberoftheday .= "' fetch_template('memberoftheday') . '";'); 
2. create new template adv_portal_member

Add code:
PHP Code:
$memberoftheday 
3. Add a new module:

Module Title: Member of the Day
Template to Include: member

Place it wherever you like (left, center, right)

That's it.
Reply With Quote
  #123  
Old 05-08-2005, 03:44 AM
restless's Avatar
restless restless is offline
 
Join Date: Jan 2002
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can see this in action here: http://www.vagrantcafe.com/index.php?

this is my code for my memberoftheday template:
PHP Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="80%">

<
tr><td class="alt1" width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="1">
        <
tr
          <
td class="alt1"><img src="$avatarurl"></td>
    <
td class="alt1"><b>Vagrant of the Day: <a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]">$mday[username]</a></b><br/><br/>
      
      
View $mday[username]'s <a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]">Profile</a><BR>
      View $mday[username]'
<a target="_top" href="$vboptions[bburl]/usernote.php?&u=$mday[userid]">UserNotes</a><BR>
      
View $mday[username]'s <a target="_top" href="$vboptions[bburl]/buddies.php?&u=$mday[userid]">Friends</a><BR>
      Posts: $mday[posts]</span><br/>
    <if condition="$mday[age]">Age: $mday[age]</span><br/></if>
    
    Favorite forum: <a href="$vboptions[bburl]/forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a> </td>
        </tr>
        
        </table></td></tr>
</table><BR> 
i literally just figured out and installed this tonight... so i'll probably change my look at a bit.
Reply With Quote
  #124  
Old 05-15-2005, 10:11 PM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AutomatikStudio
When I try to run the cron I get: "Couldn't elect a member of the day, not enough members"...i have a couple of hundred members and I check to make sure the correct usergroups weren't restricted. Also the member box on FORUMHOME is just showing blank b/c it hasn't selected anybody.
I'm getting this too on my testboard. Here are the settings I have everything at.
I have created a couple test members, and just posted several threads for each.

$restrictedGroups = "0";
$posts = 0;
$lastactivity = 90;
$lastpost = 30;
$reputation = 0;
$days = 7;
$privateForums = "0";

When I run the scheduler, I get that "Couldn't elect a member of the day, not enough members"

any ideas?
Reply With Quote
  #125  
Old 05-16-2005, 10:12 PM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it to work, I was having the problem because this is a test forum, and I only have about 7 members listed. Since the hack wouldn't allow you to 'repeat' member of the day for at least 7 days, that is why I would get the error.

I just decreased it to 1 day and it worked finally.

Now to install on the real forum!!
Reply With Quote
  #126  
Old 05-20-2005, 12:52 AM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has support for this hack stopped?

I did finally get everything working, and got it to work on my CMPS page. But was wondering if some other features could be added?

Is it possible to display the users profile image? (I think that question was asked before, but I didn't see an answer)

Or how about also displaying their signature?

I hope the creator of this hack is still around!

Thanks in advance
Chris.
Reply With Quote
  #127  
Old 05-20-2005, 12:57 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cdoyle
Has support for this hack stopped?

.
.

I hope the creator of this hack is still around!
Well the hack is not marked as supported - but that may just be an oversight. The coder last visited four days ago so he's still around.
Reply With Quote
  #128  
Old 05-20-2005, 01:05 AM
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
Has support for this hack stopped?

I did finally get everything working, and got it to work on my CMPS page. But was wondering if some other features could be added?

Is it possible to display the users profile image? (I think that question was asked before, but I didn't see an answer)

Or how about also displaying their signature?

I hope the creator of this hack is still around!

Thanks in advance
Chris.
Dont you think that will be a little over doing it? How much do you want to have people go through when they are trying to get to your forums?


If you really want it just input the variables using the hacks syntax.
Reply With Quote
  #129  
Old 05-20-2005, 08:57 PM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #130  
Old 05-27-2005, 03:59 AM
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Posts: 462
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just noticed something, it seems that it selects a new user whenever you refresh the screen?

I've checked the scheduler and it's only suppose to run on the 23rd hour of each day.

Anyone know why it would be selecting a new one, everytime the page is refreshed or opened?

Also, I'm still not sure what I would need to do add the profile pic?

Chris.
Reply With Quote
  #131  
Old 05-27-2005, 12:40 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've just noticed something, it seems that it selects a new user whenever you refresh the screen?

I've checked the scheduler and it's only suppose to run on the 23rd hour of each day.

Anyone know why it would be selecting a new one, everytime the page is refreshed or opened?

Also, I'm still not sure what I would need to do add the profile pic?

Chris.
Did you run the queries from the install? Somehow the cron is running everytime you refresh.
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 08:33 PM.


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.05439 seconds
  • Memory Usage 2,341KB
  • 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
  • (8)bbcode_php
  • (4)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