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
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
  #22  
Old 09-09-2005, 02:51 PM
Colejo Colejo is offline
 
Join Date: Jul 2005
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a small problem on this. Instead of showing the member of the day's avatar it shows the avatar of the person logged in. Can anyone tell me what might be wrong?
Reply With Quote
  #23  
Old 09-12-2005, 04:43 AM
uReside.com uReside.com is offline
 
Join Date: Oct 2003
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could this be changed a little bit to be a "featured forum" instead of the member, i have 840 forums and a featured one would be cool, i have it hard coded right now.
www.ureside.com
Reply With Quote
  #24  
Old 11-15-2005, 09:08 AM
StuKeR StuKeR is offline
 
Join Date: Nov 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it works on 3.5.1 ? cause I try to modify the global.php and I don't find anything similar to replace with this code...

any idea please?

thx
Reply With Quote
  #25  
Old 11-26-2005, 10:54 PM
sidewinder1 sidewinder1 is offline
 
Join Date: Dec 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do you change the text color in that block? cant find it... my forums are dark grey and the hack's letters are black,makes it really hard to see this.
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:04 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.03988 seconds
  • Memory Usage 2,257KB
  • Queries Executed 21 (?)
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
  • (7)bbcode_php
  • (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
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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