Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
vBa CMPS - Member of the Day Details »»
vBa CMPS - Member of the Day
Version: 1.00, by restless restless is offline
Developer Last Online: Aug 2009 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-08-2005 Last Update: Never Installs: 8
 
No support by the author.

This adds Kentaurus' "Member of the Day" to your vBa CMPS. I take no credit for his hack whatsoever. You must have his hack installed for this to work.

- Added function to show default avatar for users with no selected avatar.
- Added link to member's Usernotes (in template).
- Added like to member's Friends [vBBuddies hack] (in template).

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:
if (defined('VBA_PORTAL'))
{
    require_once(
'./includes/vba_cmps_include_bottom.php');

Add ABOVE:
PHP Code:
$mday unserialize($datastore['memberoftheday']);
if (
$mday['hascustomavatar'] AND $vboptions['avatarenabled'])
        
            {
             
$avatarurl "$vboptions[bburl]/image.php?u=$mday[userid]";
            }
         else
        {
            
$avatarurl "$stylevar[imgdir_misc]/noavatar.gif";
        }
eval(
'$memberoftheday .= "' fetch_template('memberoftheday') . '";'); 
2. create new template adv_portal_member

Add code:
PHP Code:
$memberoftheday 
or you can make any new template using the templates in the next post below (without having to call the original hack's memberoftheday template)

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.

Show Your Support

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

Comments
  #2  
Old 05-09-2005, 05:40 AM
restless's Avatar
restless restless is offline
 
Join Date: Jan 2002
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are a few different ways to display this of course. I'll include a few of my own (see attachments):

Center Module:
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="5">
        <
tr
         <
td class="alt1" width="100"><div align="center"><a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]"><img src="$avatarurlborder="0" alt="Visit $mday[username]'s Profile"></a></div></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/>
     Favorite forum: <a href="$vboptions[bburl]/forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a> </td>
        </tr>
        
        </table></td></tr>
</table><BR> 
Left/Right Module:
PHP Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
<
tr>
<
td class="tcat">
<
span class="smallfont">
<
strong>$vba_options[portal_blockbulletMember of the Day</strong>
</
span>
</
td>
</
tr>
<
tr><td class="$getbgrowwidth="100%"><table width="100%" border="0" cellspacing="0" cellpadding="2">
        <
tr
         <
td align="left" class="alt1"><b><a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]">$mday[username]</a></b><BR
         <
a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]"><img src="$avatarurlborder="0" alt="Visit $mday[username]'s Profile"></a><BR>
            
View <a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]">Profile</a><br>
            
View <a target="_top" href="$vboptions[bburl]/usernote.php?&u=$mday[userid]">UserNotes</a><br>
            
Posts$mday[posts]<br/>
         
Favorite forum: <a href="$vboptions[bburl]/forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a
          </
td>
        </
tr>
      </
table></td></tr>
</
table><BR
CMPS Stats Module:
PHP Code:
<!-- Stats Block -->
    
<
table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder"width="100%">
  <
tr
    <
td width="200" class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet
     <
phrase 1="$vboptions[hometitle]">$vbphrase[x_statistics]</phrase> </strong></span></td>
    <
td class="tcat"><b>$vba_options[portal_blockbulletVagrant of the Day: <a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]">$mday[username]</a></b></td>
  </
tr>
  <
tr
    <
td class="$getbgrow"><span class="smallfont"$vbphrase[members]: $numbermembers<br />
      
$vbphrase[threads]: $totalthreads<br />
      
$vbphrase[posts]: $totalposts<br />
     
$vbphrase[top_poster]: <a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$topposter[userid]">$topposter[username]</a
      (
$topposter[posts])<br />
      <
br />
     <
phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$newuserid2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase
      </
span> <if condition="$birthdays"><BR>
      <
span class="smallfont"> <b>$vbphrase[todays_birthdays]:</b><br />
      
$birthdays</span></if> </td>
    <
td class="$getbgrow"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr
         <
td width="100"><div align="center"><a target="_top" href="$vboptions[bburl]/member.php?&u=$mday[userid]"><img src="$avatarurlborder="0" alt="Visit $mday[username]'s Profile"></a></div></td>
         <
td><span class="smallfont">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]<br/>
         Favorite forum: <a href="$vboptions[bburl]/forumdisplay.php?f=$mday[forumid]">$mday[forumname]</a></span></td>
        </tr>
      </table></td>
  </tr>
</table>
<br />
<!-- End Stats Block --> 
Reply With Quote
  #3  
Old 05-09-2005, 07:29 AM
iSpanish's Avatar
iSpanish iSpanish is offline
 
Join Date: Jan 2005
Location: Oregon
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Module

*Marboosh.Net Clicks Install


thanks
Reply With Quote
  #4  
Old 05-09-2005, 12:56 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice thank you restless
Reply With Quote
  #5  
Old 05-10-2005, 04:06 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

been having issues with this hack since I have the welcome pannel hack installed :ermm:

also, change this:

PHP Code:
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 13:38, Tue Feb 22nd 2005
|| # CVS: $RCSfile: global.php,v $ - $Revision: 1.256.2.5 $
|| ####################################################################
\*======================================================================*/ 
to something more clear... new/unexperienced people will not be able to find this part of the code, unless they downloaded the file from vbulletin.com at the very exact moment in time as you (which is almost impossible)
Reply With Quote
  #6  
Old 05-10-2005, 04:27 PM
restless's Avatar
restless restless is offline
 
Join Date: Jan 2002
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Polo
been having issues with this hack since I have the welcome pannel hack installed :ermm:
which hack is that, polo?
Reply With Quote
  #7  
Old 05-10-2005, 05:26 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This one restless:

https://vborg.vbsupport.ru/showthread.php?t=66969
Reply With Quote
  #8  
Old 05-10-2005, 07:07 PM
restless's Avatar
restless restless is offline
 
Join Date: Jan 2002
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it the avatar bit that's messing up the welcome panel?
Reply With Quote
  #9  
Old 05-10-2005, 07:53 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by restless
it the avatar bit that's messing up the welcome panel?
yes... exactly how do you know?

the member of the month avatar goes to the welcome pannel at the top... and my avatar is in the "member of the month" block...
Reply With Quote
  #10  
Old 05-12-2005, 12:07 AM
restless's Avatar
restless restless is offline
 
Join Date: Jan 2002
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed that hack just to see what was up. I got it working fine. i tested it with an avatar and with no avatar.

in global.php I changed
PHP Code:
$bbuserinfo['user_avatar']="<img src='{$bbuserinfo['user_avatar']}' alt='Edit Your Avatar' border='0'>"
to
PHP Code:
$bbuserinfo['user_avatar']="<img src='$vboptions[bburl]/image.php?u=$bbuserinfo[userid]' alt='Edit Your Avatar' border='0'>"
in the navar template I changed
PHP Code:
<if condition="THIS_SCRIPT == 'adv_index'">
    <
a href="profile.php?{$session['sessionurl']}&do=editavatar"><img src="$avatarurlborder=0></a>
    <else />
    {
$welcome_avatar}
    </if> 
to
PHP Code:
{$welcome_avatar
Reply With Quote
Reply

Thread Tools

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 04:33 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.04763 seconds
  • Memory Usage 2,390KB
  • Queries Executed 23 (?)
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
  • (15)bbcode_php
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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