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

Reply
 
Thread Tools
Yet Another Awards System Details »»
Yet Another Awards System
Version: 4.0.9, by squidsk squidsk is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Category: Major Additions - Version: 4.0.2 Rating:
Released: 01-09-2010 Last Update: 12-15-2014 Installs: 982
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

*** CREATE A BACKUP OF YOUR FORUM AND DATABASE BEFORE INSTALLING ***


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
+ Writes granting/removing awards to the log

In ModCP
- Issue awards to members, based on username or userid, with Issue Reason
- Remove awards from members
+ Writes granting/removing award to the log

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)

New Features/Additions since 3.8
- Points System
- Separate Award Request/Recommendation Forms
- CSS Customizable

Current Release Version 4.0.9
  • Added - Handling of user merges
  • Added - Handling of user deletes
  • Added - Manage awards on per user basis
  • Added - Extra info to the logs for mass removal and editing of issued awards
  • Added - Ability to collapse categories on awards.php
  • Added - Checksum file for checking for suspect file versions
  • Added - Various missing phrases
  • Fixed - Memberlist not showing awards when option is active
  • Fixed - Navtab not being selected (vb version < 4.2)
  • Fixed - Category title not being displayed on awards.php
  • Fixed - Logging not working in modcp
  • Fixed - A few other minor bugs

Download Now

File Type: zip YaAS-Automation-R4.zip (6.1 KB, 735 views)
File Type: zip YaAS-4.0.9.zip (1.34 MB, 984 views)

Screenshots

File Type: png YaAS4-AwardListings.png (164.2 KB, 0 views)
File Type: png YaAS4-ProfileTab.png (162.9 KB, 0 views)
File Type: png YaAS4-Post.png (176.0 KB, 0 views)
File Type: png YAAS4-AdminCP.png (381.0 KB, 0 views)
File Type: png YaAS4-AdminCP-EditAward.png (255.4 KB, 0 views)
File Type: jpg YaAS4-AdminCP-EditCSS.jpg (126.2 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #1622  
Old 02-16-2014, 01:12 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elite_360_ View Post
Just wrote the code. squidsk let me know if you want to add it and i will give you the code

Can you post the code here so people can just add it themselves?
Reply With Quote
  #1623  
Old 02-16-2014, 04:20 AM
Elite_360_'s Avatar
Elite_360_ Elite_360_ is offline
 
Join Date: Nov 2012
Location: New Hampshire
Posts: 518
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the awards.php file

find this

PHP Code:

            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 
replace with this
PHP Code:

            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id, IF(u.displaygroupid = 0, u.usergroupid, u.displaygroupid) AS displaygroupid
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 
---------------------------------------------------------

find this
PHP Code:

            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            WHERE au.award_id = " 
$vbulletin->GPC['award_id'] . "
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 
replace with this
PHP Code:

            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id, IF(u.displaygroupid = 0, u.usergroupid, u.displaygroupid) AS displaygroupid
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            WHERE au.award_id = " 
$vbulletin->GPC['award_id'] . "
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 


find both of these


PHP Code:

$templater 
vB_Template::create('awards_awardusers_bit');

$newTemplate vB_Template::create('awards_awardusers_bit'); 

add this right above both of those

PHP Code:

                                fetch_musername
($awardusers); 


go edit the awards_awardusers_bit template and change {vb:raw awardusers.username} to this


HTML Code:
{vb:raw awardusers.musername}
Reply With Quote
2 благодарности(ей) от:
CAG CheechDogg, squidsk
  #1624  
Old 02-16-2014, 05:51 AM
Square Nexus Square Nexus is offline
 
Join Date: Feb 2013
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried searching through all the posts but i cant figure out how to do this:

An example thread is here

What i want to do is have the gray box around the awards template 1 like all the other user info like join date and such instead of the clear background that it has now, but i cant figure out how or where to go to add the grey box background.
Reply With Quote
  #1625  
Old 02-16-2014, 06:15 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elite_360_ View Post
Edit the awards.php file
Thanks a lot Elite, this actually works to help figure out and point out who is no longer a member of our clan to remove their awards, pretty awesome man thanks!
Reply With Quote
Благодарность от:
CoZmicShReddeR
  #1626  
Old 02-16-2014, 07:03 PM
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Sep 2006
Location: MI, USA
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elite_360_ View Post
Edit the awards.php file
Thanks Elite_360

Made the edits works wonderfully and still thanks to squidsk for continuing this modification!
Reply With Quote
Благодарность от:
CAG CheechDogg
  #1627  
Old 02-16-2014, 11:31 PM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CoZmicShReddeR View Post
Thanks Elite_360

Made the edits works wonderfully and still thanks to squidsk for continuing this modification!
Yes CoZ...this really adds some flavor to this already great mod ! Thank you both Squid and Elite for everything!
Reply With Quote
  #1628  
Old 02-17-2014, 05:52 AM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elite_360_ View Post
Edit the awards.php file

find this

PHP Code:

            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 
replace with this
PHP Code:

            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id, IF(u.displaygroupid = 0, u.usergroupid, u.displaygroupid) AS displaygroupid
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 
---------------------------------------------------------

find this
PHP Code:

            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            WHERE au.award_id = " 
$vbulletin->GPC['award_id'] . "
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 
replace with this
PHP Code:

            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id, IF(u.displaygroupid = 0, u.usergroupid, u.displaygroupid) AS displaygroupid
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            WHERE au.award_id = " 
$vbulletin->GPC['award_id'] . "
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 


find both of these


PHP Code:

$templater 
vB_Template::create('awards_awardusers_bit');

$newTemplate vB_Template::create('awards_awardusers_bit'); 

add this right above both of those

PHP Code:

                                fetch_musername
($awardusers); 


go edit the awards_awardusers_bit template and change {vb:raw awardusers.username} to this


HTML Code:
{vb:raw awardusers.musername}
Added it into the new release.
Reply With Quote
2 благодарности(ей) от:
CAG CheechDogg, Crotan
  #1629  
Old 02-17-2014, 06:12 AM
Pocket Aces Pocket Aces is offline
 
Join Date: Mar 2007
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squidsk View Post
Quote:
Originally Posted by Pocket Aces View Post
Quote:
Originally Posted by squidsk View Post
Quote:
Originally Posted by Pocket Aces View Post
username/userid override for congratulatory pm doesn't seem to work
Its a known issue that has been been fixed for the next release.
Is yesterday's release the 'next release' mentioned here? Is this fixed already in the current version posted here?
No, there are two products listed on this page (YaAS and YaAS automation) this update is for the second, and doesn't fix any outstanding issues with the first, base, YaAS product, which is still at version 4.0.6.

I will in due course separate the two products but part of that process for me means making sure that the YaAS automation product could be properly uninstalled as the larger changes I'm working on for YaAS automation are not compatible with this version so being able to properly uninstall it will be required for the major upgrade.
There are already two major 'next release's. I assume username/userid override for congratulatory pm already fixed?
Reply With Quote
  #1630  
Old 02-17-2014, 07:16 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squidsk View Post
Added it into the new release.

Good stuff squidsk...thanks for such a great mod my Man!

One quick question ! lol...would it be possible to add a feature, a one click feature to completely remove all the awards from a user with one click? Or list all the awards for one user and check a box for each award we want to remove in clusters?

Thanks in advance!
Reply With Quote
  #1631  
Old 02-17-2014, 01:52 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pocket Aces View Post
There are already two major 'next release's. I assume username/userid override for congratulatory pm already fixed?
Yes, it was fixed in 4.0.7.
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 09:20 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.10169 seconds
  • Memory Usage 2,445KB
  • Queries Executed 29 (?)
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_html
  • (12)bbcode_php
  • (11)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (25)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete