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
Yet Another Awards System [1.2.1] Details »»
Yet Another Awards System [1.2.1]
Version: 1.2.1, by mtha mtha is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-27-2005 Last Update: 08-17-2005 Installs: 166
DB Changes Template Edits
Code Changes Additional Files  
No support by the author.

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


Hack Version: 1.2.1.050818
Compatible vB version: 3.0.8. It should work with all vB 3.0.x versions.
Support: https://vborg.vbsupport.ru/showthread.php?t=78934


For vBulletin 3.5.0, please check the other version:
https://vborg.vbsupport.ru/showthread.php?t=94836


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 ACP
- 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

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 add: 9 ('AWARDS', 'awards_awardbit','awards_awardusers_bit','awards_ bit','awards_userawards_bit','awards_category','aw ards_categorybit', 'awards_request_form', 'awards_request_formanswers')
- Templates to edit: 5 (MEMBERINFO, postbit, postbit_legacy, memberlist, memberlist_resultsbit )
- Phrases to add: 49

DIFFICULTY:
Easy-medium
Time: about 5-10 minutes
Installer is included

HISTORY:
For detail, please click here
2005.08.18: Version 1.2.1
2005.04.14: Version 1.2.02005.04.03: Version 1.1
2005.03.29: Version 1.0.1b
2005.03.28: Version 1.0.1
2005.03.28: Initial release

FUTURE PLAN:
- Allow comments on user's award (by Arial)
- PM/Email user when he/she get an award.
- Allow voting on user's award (by Arial)

ADD ONs


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


IMPORTANT:
- BACKUP modified files and templates before making changes.
- Backup database is recommended.
- This hack is NOT compatible with AnimeWebby's Awards/Medals/CardsHack [vB3], you need to UNINSTALL his hack, before installing this one.

INSTALLATION:
Read HERE: https://vborg.vbsupport.ru/showthrea...316#post632316

UNINSTALL:
Read HERE: https://vborg.vbsupport.ru/showthrea...316#post632316

MANUAL:
Included in zip file

SCREENSHOT:
https://vborg.vbsupport.ru/showpost.php?p=632316

DEMO:
http://www.global-army.com/forum/awards.php
http://www.global-army.com/forum/sho...=9253#post9253
http://www.global-army.com/forum/member.php?u=22#award
There's some custom modification on this site, but you have the idea.

DONATIONS:
YAAS is free, but a donation of any amount is much appreciated.


SERVICE:
Installation service is available upon request

Show Your Support

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

Comments
  #32  
Old 03-29-2005, 07:08 AM
Arial Arial is offline
 
Join Date: Feb 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not a function we would want but I can see how some would require it as a function. I presumed this to mean that members can request an award for another member not for themselves.

Say for instance you have a large group of individuals say over a 100 or so and many of them are in different sub groups etc, only they know whether somebody is deserving of a medal not one potentially aloof admin. , so the system allows the admin to see 'votes' if you like , that a certain member has had for an award from other members then he can authorise it or decline it.

I guess that is the meaning, however I think its of secondary importance to issues like
allowing members to comment on awards given etc.

I will get this new version with posbit installed basically now and put up a link shortly.
Reply With Quote
  #33  
Old 03-29-2005, 07:12 AM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the upgrade mtha .. installed with no problems
Reply With Quote
  #34  
Old 03-29-2005, 07:29 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arial
allowing members to comment on awards given etc.
Interesting, I give this some thought, and added to the todo list for a later version.

Quote:
Originally Posted by TTG
thanks for the upgrade mtha .. installed with no problems
Wow, it looks nice on your colourful site TTG. I mean your site looks great

Can I borrow your site as a demo? :>
Reply With Quote
  #35  
Old 03-29-2005, 08:34 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2005.03.29 - Version .1.0.1b
+ Display awards in postbit for hybrid and threaded mode
+ Display award users for each awards in ACP/Award Manager
- Upgrade instruction: /docs/UPGRADE2.txt
- Replace /admincp/award.php with the one in zip file
Reply With Quote
  #36  
Old 03-29-2005, 10:03 AM
Creed's Avatar
Creed Creed is offline
 
Join Date: May 2002
Location: The Matrix
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the only thing I could ask for which was included in my add-on to Animewebby's hack is teh ability to request awards
Reply With Quote
  #37  
Old 03-29-2005, 12:33 PM
ChrisBaktis ChrisBaktis is offline
 
Join Date: Mar 2004
Location: CT
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha
Hmm, I dont see any error there. I install/uninstall several times without error.

Why dont you try to download the new version, uninstall the hack (just to make sure your database is clean), and install it again.

If the error still there, try to edit the awards_install.php, remove line 233 (where executing that drop table query) and see how it works out.

Good luck
Tried and same error - I removed that line as you said and now get this error.

PHP Code:
Database error in vBulletin 3.0.7:

Invalid SQLCREATE TABLE award (
              
award_id smallint(5unsigned NOT NULL auto_increment,
              
award_cat_id smallint(5NOT NULL default '1',
              
award_name varchar(50NOT NULL default '',
              
award_desc varchar(250NOT NULL default '',
              
award_icon_url varchar(250NOT NULL default '',
              
award_img_url varchar(225NOT NULL default '',
              
award_displayorder smallint(5NOT NULL default '0',
              
PRIMARY KEY  (award_id)
            ) 
TYPE=MyISAM;
        
mysql errorYou have an error in your SQL syntax near ';
        ' 
at line 10

mysql error number
1064 
Not sure why im the only one getting this error.
Reply With Quote
  #38  
Old 03-29-2005, 12:39 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisBaktis
Tried and same error - I removed that line as you said and now get this error.

PHP Code:
Database error in vBulletin 3.0.7:

Invalid SQLCREATE TABLE award (
              
award_id smallint(5unsigned NOT NULL auto_increment,
              
award_cat_id smallint(5NOT NULL default '1',
              
award_name varchar(50NOT NULL default '',
              
award_desc varchar(250NOT NULL default '',
              
award_icon_url varchar(250NOT NULL default '',
              
award_img_url varchar(225NOT NULL default '',
              
award_displayorder smallint(5NOT NULL default '0',
              
PRIMARY KEY  (award_id)
            ) 
TYPE=MyISAM;
        
mysql errorYou have an error in your SQL syntax near ';
        ' 
at line 10

mysql error number
1064 
Not sure why im the only one getting this error.
Please try to execute the query in phpMyAdmin or in AdminCP

[sql]
CREATE TABLE award (
award_id smallint(5) unsigned NOT NULL auto_increment,
award_cat_id smallint(5) NOT NULL default '1',
award_name varchar(50) NOT NULL default '',
award_desc varchar(250) NOT NULL default '',
award_icon_url varchar(250) NOT NULL default '',
award_img_url varchar(225) NOT NULL default '',
award_displayorder smallint(5) NOT NULL default '0',
PRIMARY KEY (award_id)
) TYPE=MyISAM;
[/sql]

there's a list of SQL queries in my "Notes.txt", could you try that manually, and see if you can do it.
BTW, do you have the right to CREATE TABLE in the database?
Reply With Quote
  #39  
Old 03-29-2005, 12:43 PM
ChrisBaktis ChrisBaktis is offline
 
Join Date: Mar 2004
Location: CT
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got a message 'effected rows: 0'

I used the vbulletin admin cp to run it. would I have gotten an error or message if it didnt take?
Reply With Quote
  #40  
Old 03-29-2005, 01:03 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisBaktis
I got a message 'effected rows: 0'

I used the vbulletin admin cp to run it. would I have gotten an error or message if it didnt take?
It seems that you was able to create the database. Check database structure in phpMyAdmin to see if you have that table created?

Is there any different from the query you ran and the one in the installation file?

Or if you are the only one who get this error, I just have you to create the tables manually.

Execute the following queries: (if you run in AdminCP, you need to run each of them individually)

[sql]
DROP TABLE IF EXISTS `award`;
[/sql]
[sql]
CREATE TABLE `award` (
`award_id` smallint(5) unsigned NOT NULL auto_increment,
`award_cat_id` smallint(5) NOT NULL default '1',
`award_name` varchar(50) NOT NULL default '',
`award_desc` varchar(250) NOT NULL default '',
`award_icon_url` varchar(250) NOT NULL default '',
`award_img_url` varchar(225) NOT NULL default '',
`award_displayorder` smallint(5) NOT NULL default '0',
PRIMARY KEY (`award_id`)
) TYPE=MyISAM;
[/sql]
[sql]DROP TABLE IF EXISTS `award_user`;[/sql]
[sql]CREATE TABLE `award_user` (
`issue_id` smallint(5) NOT NULL auto_increment,
`award_id` smallint(5) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`issue_reason` varchar(255) NOT NULL default '',
`issue_time` int(10) NOT NULL default '0',
PRIMARY KEY (`issue_id`)
) TYPE=MyISAM;
[/sql]

and then go to the next step:
/admincp/awards_install.php?step=dofileedits


You may also create the award_cat table, for future development:
[sql]
REMOVED
[/sql]
Reply With Quote
  #41  
Old 03-29-2005, 01:41 PM
ChrisBaktis ChrisBaktis is offline
 
Join Date: Mar 2004
Location: CT
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it all working by doing it manually - I was going to ask if a single user can get the same award more then once...that would make this hack everything I needed - well you can - Thanks!
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 10:25 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.05029 seconds
  • Memory Usage 2,344KB
  • 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
  • (2)bbcode_php
  • (5)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