Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Yet Another Awards System 2.1.4 Details »»
Yet Another Awards System 2.1.4
Version: 2.1.4, by mtha mtha is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.5 Rating:
Released: 03-18-2007 Last Update: 03-24-2007 Installs: 748
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

Yet Another Award System 2.1.4 ? by HacNho
Copyright (C) 2005 by HacNho, All rights reserved.


Hack Version: 2.1.4.070324
Compatible vB version: 3.6.x
Support: https://vborg.vbsupport.ru/showthread.php?t=142487

for vBulletin 3.5.x:
https://vborg.vbsupport.ru/showthread.php?t=94836
For vBulletin 3.0.x, please check the other version:
https://vborg.vbsupport.ru/showthread.php?t=78934

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
- [1.2] Options to set number of awards displayed in postbit
- [1.2] Options to turn on/off showing award icon, images, award requests in awards list, awards icons in memberlist
- [2.1.3] Notify awarded user by PM/email
- [2.1.4] Option to turn on/off Award System in ModCP

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)
[1.2] Display limit awards in postbit, with total awards, and a link to awards showcase in member profiles.
[1.2] Award request, link to a form sending to email/PM/new thead or post (based on Dr Erwin Loh's Form hack)
[1.2] Display award on Memberlist page (by trulylowcarb)

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)
- Files to edit: 8 (/admincp/index.php, member.php, showthread.php, showpost.php, announcement.php, private.php, memberlist.php, /include/functions_online.php)
- Templates to edit: 5 (MEMBERINFO, postbit, postbit_legacy, memberlist, memberlist_resultsbit )

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
- and all others for supports and ideas

Show Your Support

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

Comments
  #172  
Old 07-25-2007, 08:01 PM
The Ottoman The Ottoman is offline
 
Join Date: Nov 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by katie hunter View Post
Can someone help with this if they know
AdminCP\Styles&Templates\whatever the style is\YAAS Templates\awards_category shows you all the different phrases for the page.

It looks like you want to change the $vbphrase[award_name] and $vbphrase[award_description] phrases; so go to the Phrase manager and find it in the GLOBAL phrases; and change it there.

Repeat with awards_category.
Reply With Quote
  #173  
Old 07-25-2007, 08:09 PM
The Ottoman The Ottoman is offline
 
Join Date: Nov 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was wondering if anyone had managed to configure this so that awards were automatically awarded after the request was submitted rather than require administrator approval.
Reply With Quote
  #174  
Old 07-26-2007, 03:28 AM
lostgirl815 lostgirl815 is offline
 
Join Date: Apr 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And, I was wondering if there's any way to put the send-PM thing on no by default?
Reply With Quote
  #175  
Old 07-26-2007, 07:30 PM
military-space military-space is offline
 
Join Date: Jun 2007
Location: TN
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to change the displayed awards in postbit and member info to show on more that one row?

Lets say I want to set my awards system to show 6 awards and have them display on 2 rows instead of stretching across on one row.

Would this be possible? Any suggestions on how to do this?
Reply With Quote
  #176  
Old 07-26-2007, 09:58 PM
Apophis Apophis is offline
 
Join Date: Apr 2003
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been toying with this system for a while but what I really wanted to do was to get the awards to display via a bbcode tag.

I started by modifying the code a bit to get the awards to display below the signature area in the main body of a user's post but decided I wanted to give them more flexibility and give them some bbcode they could use to display their awards.

I added the following into class_bbcode.php

Code:
                // [RIBBONS]
                $tag_list['no_option']['ribbons'] = array(
                        'callback' => 'handle_bbcode_ribbons',
                        'strip_empty' => false,
                        'parse_option' => true
                );
Code:
        /**     
        * Handles a [RIBBONS] tag. TG Ribbons.
        *
        */ 
        function handle_bbcode_ribbons($ribbontext)
        {
                global $db, $vbulletin;
                $ribbontext = str_replace(array('<br>', '<br />', '\\"'), array('', '', '"'), $ribbontext);
                  
                $templaterib = 'tgribbons_display';
                eval('$html = "' . fetch_template($templaterib) . '";');
                return $html;
        }
Needles to say, it didn't do what I was hoping for. I created a new template called "tgribbons_display" using the code that I had placed in my postbit_legacy template and used the bbcode handler to display that template.

Well. Nothing shows up at all. I'm assuming that I'm missing some key step in pulling this off, such as making sure that the appropriate code is also executing to query the DB to display the awards when I call my template. Just to make sure I had the bbcode handler working I tried calling another template that just displays text and it worked fine.

Any ideas what I'm missing or what I could do to be able to use my custom bbcode tag to display the awards?
Reply With Quote
  #177  
Old 07-27-2007, 12:09 AM
Apophis Apophis is offline
 
Join Date: Apr 2003
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by military-space View Post
is there a way to change the displayed awards in postbit and member info to show on more that one row?

Lets say I want to set my awards system to show 6 awards and have them display on 2 rows instead of stretching across on one row.

Would this be possible? Any suggestions on how to do this?
I actually modified the template code and create a table with a fixed width to display the awards in. They will automatically wrap to a new line if the number of awards exceed the width. IE: If your awards are 50 pixels wide and you want no more than 3 in a row, set the table size to a width of 160.

Here's a sample of how I display my ribbons (although it's in a considerably different place than the stock code).

Code:
<table width="425" border="0" cellspacing="0" cellpadding="0"><tr>
<td align="left"><div>$post[userawards]</div></td></tr></table>
You could replace the $post[userawards] line with something similar to what I have above and it should work for you with some minor tweaking.
Reply With Quote
  #178  
Old 07-31-2007, 06:59 AM
lostgirl815 lostgirl815 is offline
 
Join Date: Apr 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to be able to have two rows of awards for two categories. I'd like to know if it would be possible to get such a thing as this via paid custom work. I wouldn't need most of the bells and whistles - don't need it to show on the members list, don't need the PM, the showcase, the description, and so on - I just need two rows and two categories and the ability for Mods to give a specific user an award in a category. (One category would be acquired game pieces and would change constantly. The other would be icons for completed games.)

If this is anything you would consider doing, I'd appreciate a PM and a ballpark figure. If we're not actually allowed to ask things like this in here... mea culpa. If it makes any difference, I wouldn't be asking for exclusivity and would not care who else used it for free.
Reply With Quote
  #179  
Old 07-31-2007, 11:15 AM
djdonx djdonx is offline
 
Join Date: May 2007
Location: Manchester, England
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, I currently have YAAS installed and I also have Psinoic Visions interactive profiles installed. The awards strectch my page because it is only in one half of the page, this only happens in internet explorer, not in fireworks. I was wondering if there is a way to make the awards flatten to say 4 per row and it works into columns like that.
Hopefully you understand my poor descriptive skills but if you don't then it is shown here: http://hffmforum.co.uk/member.php?u=222
Reply With Quote
  #180  
Old 08-01-2007, 09:21 AM
djdonx djdonx is offline
 
Join Date: May 2007
Location: Manchester, England
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So could anyone possibly help me? Please
Reply With Quote
  #181  
Old 08-01-2007, 06:16 PM
djdonx djdonx is offline
 
Join Date: May 2007
Location: Manchester, England
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BUMP. Its been over a day now
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 06:16 AM.


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.05179 seconds
  • Memory Usage 2,316KB
  • 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
  • (3)bbcode_code
  • (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
  • (2)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