Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Yet Another Awards System Details »»
Yet Another Awards System
Version: 3.7.4, by Xanlamin Xanlamin is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 08-08-2008 Last Update: 11-22-2008 Installs: 511
DB Changes Uses Plugins Auto-Templates
Re-useable Code Code Changes Additional Files  
No support by the author.

A lot of you have been waiting for this forever to work 100% with 3.7 due to the new profile tabs...Well wait no longer, here is the new revises version of HacNho's YAAS (Yet Another Awards System).

DESCRIPTION:
This is a Medals/Awards system. Admin can give members awards, and award icons will be displayed in member's profile, posts, as well as in a award list.

FEATURES:
In AdminCP
- Can Create/Edit/Delete/Reorder categories/sub-categories in ACP (with category name and description)
- Can Create/Edit/Delete awards in ACP (with Award Name, Description, Icon URL, Image URL)
- Can Move one (or all) award(s) from one category to another
- Can set some awards un-classified (not displayed for public)
- Can re-order awards in awards showcase
+ Issue awards to members, based on username or userid, with Issue Reason
+ Remove awards from members

In ModCP
+ Issue awards to members, based on username or userid, with Issue Reason
+ Remove awards from members

Front page
- Display awards list in with: Award Name, Description, Icon, Image, and Members who get each award.
- Display awards showcase in profile, with Award information, Issue time and reason
- Display award icons in postbit (showthread, showpost, announcement, private)

CHANGES/MODIFICATION:
- Tables to add: 3 (award, award_user, award_cat)
- Files to add: 4 (/awards.php, /award_request.php, /admincp/award.php, /admincp/award_cat.php)


DIFFICULTY:

Easy
Time: about 5 minutes
Installer is included (1 product XML)

CREDIT:
Idea has been carried on by many people, here are some:
- Lesane for original Award hack for vB2, eventhough I've never use his hack
- AnimeWebby for Awards/ Medals/ Cards Hack [vB3], which I write new code based on his.
- Mac ycl6 for phpBB Medal System for phpBB forum
- Dr Erwin Loh for FORM TO THREAD/ FORUM/ PM/ EMAIL hack
- Cypher for helping with the tabs in 3.7
- liwo for re-writing plugins
- and all others for supports and ideas

And most of all to HacNho

This MOD is 100% Supported.

Authors of YaAS 3.7:
Xanlamin
CypherSTL

Current Release: v3.7.4

Supporters / CoAuthors

Show Your Support

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

Comments
  #492  
Old 02-05-2009, 08:56 AM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot for this update . i have missed it .

no more template edit in this version which is GREAT
Reply With Quote
  #493  
Old 02-11-2009, 04:43 PM
74corvette 74corvette is offline
 
Join Date: Sep 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all thanks to the coder for this mod, my members dig it. I do have a question, I'm using the 4.0 version and I noticed that when I go a member profile and look on the awards tab I have 3 columns. Icon, Image and Description but they are not spaced the way I would like or its not displaying correctly. It appears that the description is in the image column somehow. You can see it here http://www.buellforums.com/forum/member.php?u=1938

Really, I would like to just have the Icon and the description with why the member received the award.

Any suggestions ?
Reply With Quote
  #494  
Old 02-11-2009, 10:09 PM
74corvette 74corvette is offline
 
Join Date: Sep 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I got it. I just removed :

<td class="thead" width="100%">$vbphrase[award_description]</td>

form the memberinfo_block_myawards template. It looks 100% better.
Reply With Quote
  #495  
Old 02-15-2009, 04:23 PM
almqdad almqdad is offline
 
Join Date: Jul 2003
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello

I am using Yet Another Award System 3.6 2.1.4 I want to upgrade to this version please tell me what to do

thanks in advance
Reply With Quote
  #496  
Old 02-16-2009, 06:25 PM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why does my board say i am using version 4.0.1
Yet the zip here is - YaAS 3.7.4.zip
Reply With Quote
  #497  
Old 02-19-2009, 04:44 PM
almqdad almqdad is offline
 
Join Date: Jul 2003
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack is very nice

is there away to restrict awarding awards by admin 7 supermoderator

may be group based or id based

thanks
Reply With Quote
  #498  
Old 02-20-2009, 06:06 AM
Gandalf-LoJ Gandalf-LoJ is offline
 
Join Date: Feb 2005
Location: Sussex, UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by almqdad View Post
This hack is very nice

is there away to restrict awarding awards by admin 7 supermoderator

may be group based or id based

thanks
I wanted to do something similar so came up with this method that works great. Allow access to moderators in the options (Turn on YAAS in ModCP)

Now create a new User Profile Field as follows;

Type: Single-Selection Radio Buttons
Name: Award System Manager
Options:
No
Yes

Set Default: Yes
Field Editable by User: No
Private Field: Yes
Field Searchable on Members List: No
Show on Members List: No

Now go into the Plugin Manager and Edit Plugin YAAS - Give Award to User Nav
Find
PHP Code:
if ($vbulletin->options['aw_modcp']) 
replace with (or comment out and add below)
PHP Code:
if ($vbulletin->userinfo['fieldXX'] == 'Yes'
Where fieldXX is the User Profile Field ID of the field you've just created.

My entire block for that now looks like (note I commented out the first line)
PHP Code:
// *************************************************
    
$cangiveaward false;

//    if ($vbulletin->options['aw_modcp'])
    
if ($vbulletin->userinfo['field12'] == 'Yes')
    {
        
$cangiveaward true;
        
construct_nav_option($vbphrase['give_user_award'], 'award.php?do=manage');
    }
    if (
$cangiveaward)
    {
        
construct_nav_group($vbphrase['award_system']);
        
construct_nav_spacer();
    } 
Finally, pick the users that you want to give access to and go into their profile in the AdminCP and select Yes in the Award System Manager profile field.

The user WILL need to already have access to the ModCP for this to work but as you're looking at Super Mods then I assume this is already the case.

I've done this on our forum as we did not want all moderators to be able to give awards, just our 'section heads'

On another note, I've also got the award system plugged into the permissions now and when an award is given to a user a scheduled task runs and checks for new awards and assigns them to a usergroup based on the award. There is also a script that checks for removed awards and will remove the relevant usergroup too.
Reply With Quote
  #499  
Old 02-22-2009, 12:21 PM
JohnChapman's Avatar
JohnChapman JohnChapman is offline
 
Join Date: Aug 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Mod!

I made a couple extra medals using PowerPoint shapes...not very sophisticated, but then neither are my graphics abilities. Attached is the 2 medals I made along with the power point file that has the shape templates in it.





Reply With Quote
  #500  
Old 02-22-2009, 12:35 PM
almqdad almqdad is offline
 
Join Date: Jul 2003
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gandalf-LoJ View Post
I wanted to do something similar so came up with this method that works great. Allow access to moderators in the options (Turn on YAAS in ModCP)

Now create a new User Profile Field as follows;

Type: Single-Selection Radio Buttons
Name: Award System Manager
Options:
No
Yes

Set Default: Yes
Field Editable by User: No
Private Field: Yes
Field Searchable on Members List: No
Show on Members List: No

Now go into the Plugin Manager and Edit Plugin YAAS - Give Award to User Nav
Find
PHP Code:
if ($vbulletin->options['aw_modcp']) 
replace with (or comment out and add below)
PHP Code:
if ($vbulletin->userinfo['fieldXX'] == 'Yes'
Where fieldXX is the User Profile Field ID of the field you've just created.

My entire block for that now looks like (note I commented out the first line)
PHP Code:
// *************************************************
    
$cangiveaward false;

//    if ($vbulletin->options['aw_modcp'])
    
if ($vbulletin->userinfo['field12'] == 'Yes')
    {
        
$cangiveaward true;
        
construct_nav_option($vbphrase['give_user_award'], 'award.php?do=manage');
    }
    if (
$cangiveaward)
    {
        
construct_nav_group($vbphrase['award_system']);
        
construct_nav_spacer();
    } 
Finally, pick the users that you want to give access to and go into their profile in the AdminCP and select Yes in the Award System Manager profile field.

The user WILL need to already have access to the ModCP for this to work but as you're looking at Super Mods then I assume this is already the case.

I've done this on our forum as we did not want all moderators to be able to give awards, just our 'section heads'

On another note, I've also got the award system plugged into the permissions now and when an award is given to a user a scheduled task runs and checks for new awards and assigns them to a usergroup based on the award. There is also a script that checks for removed awards and will remove the relevant usergroup too.

Thank you Gandalf-LoJ

but I will not be able to do this

I wish the author comeup with some thing easier
Reply With Quote
  #501  
Old 02-22-2009, 02:20 PM
Charles_1 Charles_1 is offline
 
Join Date: Jun 2006
Location: Czech Republic, Brno
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using this mod (right now in actual version 3.7.4) since version for vBulletin 3.5.x, but becouse of recently server load problems I noticed, that when I enable showing of awards for postbit_legacy it adds 12 queries when generating showthread (vB 3.8.1). Is it normal? Becouse I am using this mod since older version for vBulletin 3.5.x, I tried uninstall it on separate copy of forum for testing purposes (vB 3.8.0) and when I install this mod again (version 3.7.4) as fresh install, it adds 15 queries to showthread - that is too many from my point of view.

How many queries it should add to showthread with enabled viewing of awards in postbit? What are your observations?
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:26 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.05299 seconds
  • Memory Usage 2,346KB
  • Queries Executed 26 (?)
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_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
  • (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