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
  #132  
Old 04-18-2005, 06:11 AM
dark dragun dark dragun is offline
 
Join Date: Apr 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I need to create the award_cat table again, cause when I click on Award Category Manager I get a error

Could not find phrase 'no_award_categories_found'.

Also when clicking Award Manager, or Add New Award I get this error

(Fatal error: Cannot redeclare construct_depth_mark() (previously declared in D:\Inetpub\wwwroot\forums\admincp\award.php:91) in D:\Inetpub\wwwroot\forums\includes\adminfunctions. php on line 1235)

should i delete all 3 awards tables and run query manually for this part ?
if so whats the code ? I try useing whats in awards_install.php under updateds - Run Querys, and created the tables that way but as you can see some thing is wronge. I need a little help.
Reply With Quote
  #133  
Old 04-18-2005, 07:39 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dark dragun
I think I need to create the award_cat table again, cause when I click on Award Category Manager I get a error

Could not find phrase 'no_award_categories_found'.

Also when clicking Award Manager, or Add New Award I get this error

(Fatal error: Cannot redeclare construct_depth_mark() (previously declared in D:\Inetpub\wwwroot\forums\admincp\award.php:91) in D:\Inetpub\wwwroot\forums\includes\adminfunctions. php on line 1235)

should i delete all 3 awards tables and run query manually for this part ?
if so whats the code ? I try useing whats in awards_install.php under updateds - Run Querys, and created the tables that way but as you can see some thing is wronge. I need a little help.
Seems like you were upgrading, and you might have to go through "step 1b" where it says
IF you upgrade from YAAS 1.0 and DID NOT have Award Category, click here to CREATE Category Table -->

if you dont have anything yet, you can just un-install and install it again. it's easier.

anyway, I update the award_cat.php to fix the category error.

You may need to create a category first, before adding award. in the installation, I have a default category, but you missed that by one step.
Reply With Quote
  #134  
Old 04-18-2005, 08:08 AM
dark dragun dark dragun is offline
 
Join Date: Apr 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed

Thank you so much, wow support at 1:30 a.m. lmao so cool. I redownloaded the zips. I than removed all querys from awards_install.php and manually ran the querys, then ran my edited awards_install.php which skipped the query section and finished the rest step. Maybe you should leave it out had have people run it manually.
Once again thanks so much this hack is awsome !
Reply With Quote
  #135  
Old 04-18-2005, 10:30 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha
The example looks really nice.
however, i think that your would lead to a seperate award system, or a branch of it.

I dont really like the idea of giving awards "automatically" very much, for right now, but that'd be a nice idea.
However, for this to work,you dont have award issue time and reason, you also dont have award history. just the current users has, says, top posts (or reputation) showing up, right? if tomorrow, someone else has higher score, the former one will lose his award?
It's ok if you don't do the auto awards it's easier with cron jobs for this right ?

other parts are good, I think you should make it, I'm looking forward to it (wait for an update mail ^^).
Reply With Quote
  #136  
Old 04-18-2005, 03:54 PM
playstation playstation is offline
 
Join Date: Feb 2005
Location: Wrexham,Wales
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I went to install this today and when i run the installer i am getting this error

Code:
Parse error: parse error, unexpected '}' in /backup/home/carzone/public_html/forum/admincp/awards_install.php on line 126
This is lines 126-128
Code:
126			}
127		}
128		echo "<font size=\"1\">Updated Setting - $varname </font><br />";
Reply With Quote
  #137  
Old 04-18-2005, 06:22 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by playstation
I went to install this today and when i run the installer i am getting this error

Code:
Parse error: parse error, unexpected '}' in /backup/home/carzone/public_html/forum/admincp/awards_install.php on line 126
This is lines 126-128
Code:
126			}
127		}
128		echo "<font size=\"1\">Updated Setting - $varname </font><br />";
strainge. I have enough } in there. do you have the latest awards_install.php? just to make sure, download the zip file again, and use the installer in there.

- whats is the process running when you get the error?
something like:


Updated Phrase - award_settings
Updated Phrase - request_award
Updated Phrase - total_awards
Updated Phrase - more_awards

Phrases Updated Successfully

Updated Phrase - settinggroup_awards
Updated Phrase - setting_aw_memberlist_title
Updated Phrase - setting_aw_memberlist_desc
Updated Setting - aw_memberlist
Reply With Quote
  #138  
Old 04-18-2005, 09:58 PM
MikeGK MikeGK is offline
 
Join Date: Apr 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack looks amazing, but it would be more awesome if we could have a place where an award winner could fill in their name and home address to claim for prizes. We're talking about real awards. Maybe there's a button where they can click on to claim and after clicking on the claim button it will prompt to fill in personal info where the admin can then send real prizes to the winners. The claim button can be in the postbit or user profile. Thanz
Reply With Quote
  #139  
Old 04-18-2005, 11:05 PM
gigaenvy gigaenvy is offline
 
Join Date: Jul 2004
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upgrade to 1.2.0 and received this error as well

Quote:
Parse error: parse error, unexpected '}' in /home/mmotri2/public_html/forums/admincp/awards_install.php on line 126
Edit: Fixed it myself knowing less than zilch about vbulletin or php syntax.

I added a trailing ';' at the end of 'WHERE varname' statement.

Code:
{
				$DB_site->query("UPDATE " . TABLE_PREFIX . "setting SET grouptitle = '$settinggroup' " . 
						iif($value, ", value = '" . $value . "'") . 
						iif($defaultvalue, ", defaultvalue = '" . $defaultvalue . "'") . 
						iif($optioncode, ", optioncode = '" . $optioncode . "'") . 
						iif($displayorder, ", displayorder = '" . $displayorder . "'") . 
						" WHERE varname = '$varname'");
			}
Reply With Quote
  #140  
Old 04-18-2005, 11:21 PM
dark dragun dark dragun is offline
 
Join Date: Apr 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this hack installed and working, but I need help with one thing.
I have mine set up after someone request a award, a new thread is started stating the request with no replys, and a poll option. Also a pm is set to admins and mods. My problem is when you read the request in the thread or if its email or pm to you they all have this bold tag in them twice as you can see below. How can I remove these ?

Dark Dragun Award Request Form

--------------------------------------------------------------------------------


Award Request Form - Dark Dragun

------------------
Sender Information

UserID: 1
Username: Dark Dragun
Fullname: Dark Dragun

-----------------------------
Request Information:
Award ID: 3
Award Name : Distinguished Service Cross
Award Description : Awarded to AMA Special Forces who have distinguished themselfs by extraordinary heroism.[b]


Recipient username : [b] Dark Dragun

-----------------------------------------------------
Please explain why the listed recipient should receive the award.

test
-----------------------------------------------------

Update: I dont know how to paste code here per rules, but I can tell you were my error was. It was in awards_request_formanswers template. Left out a slash in the last bold tag toward the bottom, I know did this late a night huh ? lol I love your hack thanks again.
Reply With Quote
  #141  
Old 04-19-2005, 03:36 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gigaenvy
Upgrade to 1.2.0 and received this error as well

Edit: Fixed it myself knowing less than zilch about vbulletin or php syntax.

I added a trailing ';' at the end of 'WHERE varname' statement.
Thanks gigaenvy, someone had an error with ";" and I removed the wrong ; by mistake :">

the file was updated.

Quote:
Update: I dont know how to paste code here per rules, but I can tell you were my error was. It was in awards_request_formanswers template. Left out a slash in the last bold tag toward the bottom, I know did this late a night huh ? lol I love your hack thanks again.
fixed in installer too. :"> actually you nead a closing [/b] instead of [b] at the end of $award[award_desc]


Quote:
This hack looks amazing, but it would be more awesome if we could have a place where an award winner could fill in their name and home address to claim for prizes. We're talking about real awards. Maybe there's a button where they can click on to claim and after clicking on the claim button it will prompt to fill in personal info where the admin can then send real prizes to the winners. The claim button can be in the postbit or user profile. Thanz
You can make another form for this. just like the "Award request form". Look over Dr Erwin Loh for FORM TO THREAD/ FORUM/ PM/ EMAIL hack for detail.
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 06:59 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.04752 seconds
  • Memory Usage 2,336KB
  • 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
  • (5)bbcode_code
  • (7)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