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

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
  #382  
Old 03-11-2008, 11:12 PM
AWJunkies AWJunkies is offline
 
Join Date: Jan 2005
Location: San Diego
Posts: 947
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fluentdesigns View Post
Thanks AW, looking forward to release. Will it be for 3.7 as well?
Yes, Sorry again have a LOT of projects on plate at the moment. So we shall see.
Reply With Quote
  #383  
Old 03-12-2008, 08:46 AM
Xanlamin's Avatar
Xanlamin Xanlamin is offline
 
Join Date: Mar 2008
Location: St. Charles, MO
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there again AW...

Anyways, back to my post.

This hack works flawless in 3.7, been running it since 3.7 came out and I am currently on 3.7.0 Beta 6 with no issues.
Reply With Quote
  #384  
Old 03-13-2008, 06:26 PM
hjmaier hjmaier is offline
 
Join Date: May 2004
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xanlamin View Post
Hi there again AW...


Anyways, back to my post.

This hack works flawless in 3.7, been running it since 3.7 came out and I am currently on 3.7.0 Beta 6 with no issues.
Could you post your memberinfo template?

Best regards
hj
Reply With Quote
  #385  
Old 03-14-2008, 12:03 AM
Xanlamin's Avatar
Xanlamin Xanlamin is offline
 
Join Date: Mar 2008
Location: St. Charles, MO
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not a problem.

I just added it at the very end just above the footer hook (highlighted in bold red) so that it would not interfere with the new profiles.

Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude

$usercss
$memberinfo_css
<style type="text/css" id="vbulletin_tabctrl_css">
@import url("clientscript/vbulletin_tabctrl.css?v=$vboptions[simpleversion]");
<if condition="$show['rtl']">@import url("clientscript/vbulletin_tabctrl_rtl.css?v=$vboptions[simpleversion]");</if>
</style>

<script type="text/javascript" src="clientscript/vbulletin_tabctrl.js?v=$vboptions[simpleversion]"></script>

<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>

<if condition="$userinfo['userid'] == $bbuserinfo['userid']">
<script type="text/javascript" src="clientscript/vbulletin_profilefield_edit.js?v=$vboptions[simpleversion]"></script>
</if>
<script type="text/javascript">
<!--
vbphrase['server_failed_respond_try_again'] = "$vbphrase[server_failed_respond_try_again]";
vbphrase['edit_value'] = "$vbphrase[edit_value_js]";

<if condition="$show['post_visitor_message']">
function goto_post_pm()
{
	vB_TabCtrls['profile_tabs'].switch_tab('visitor_messaging');
	fetch_object('visitor_messaging').scrollIntoView();
	
	var textarea = fetch_object('visitor_message_form_textarea');
	if (textarea)
	{
		textarea.focus();
		textarea.select();
	}
}
</if>
-->
</script>

</head>
<body>

$header
$navbar


<!-- begin user css -->
<div id="usercss" class="floatcontainer">

<div id="content_container">
	<div id="content">
		
		<div id="main_userinfo" class="floatcontainer">
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<if condition="$prepared['profilepicurl']">
					<td id="profilepic_cell" class="tborder alt2"><img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td>
				</if>
				<td valign="top" width="100%" id="username_box"<if condition="$prepared['profilepicurl']"> class="profilepic_adjacent"</if>>
					<if condition="$prepared['rank'] OR $prepared['reputationdisplay']">
						<div id="reputation_rank">
							<if condition="$prepared['reputationdisplay']">
								<div id="reputation">$prepared[reputationdisplay]</div>
							</if>
							<if condition="$prepared['rank']">
								<div id="rank">$prepared[rank]</div>
							</if>
						</div>
					</if>
					<h1>$prepared[musername] $prepared[onlinestatus]</h1>
					<if condition="$prepared['usertitle']">
						<h2>$prepared[usertitle]</h2>
					</if>
				</td>
			</tr>
			</table>
			
			<!-- link bar -->
			<div class="tborder content_block" id="link_bar">
				<ul class="thead block_row block_title list_no_decoration floatcontainer">			
					<if condition="$show['usercss_switch']">
						<if condition="$prepared['myprofile']">
							<li class="thead" id="usercss_switch_link"><a href="profile.php?$session[sessionurl]do=customize">$vbphrase[customize_profile]</a></li>
						<else />
							<li class="thead" id="usercss_switch_link"><a href="profile.php?$session[sessionurl]do=switchusercss&amp;hash=$bbuserinfo[logouthash]&amp;u=$prepared[userid]">$usercss_switch_phrase</a></li>
						</if>
					</if>
					
					<if condition="$show['contactlinks']">
						<li class="thead" id="minicontact"><a href="#contactinfo">$vbphrase[send_message]</a> <script type="text/javascript">vBmenu.register("minicontact");</script></li>
					</if>
					
					<if condition="$show['userlists']">
						<li class="thead" id="userlists"><a href="profile.php?$session[sessionurl]do=buddylist&amp;nojs=1">$vbphrase[user_lists]</a> <script type="text/javascript">vBmenu.register("userlists");</script></li>
					</if>
					
					<if condition="$show['usernotes']">
						<li class="thead"><a href="usernote.php?$session[sessionurl]u=$prepared[userid]">$vbphrase[user_notes] ($prepared[usernotecount])</a></li>
					</if>
					
					<if condition="can_moderate()">
						<li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li>
					</if>					
				</ul>

				<!-- current activity -->
				<if condition="$prepared['lastactivitydate'] OR $prepared['action']">
					<div class="alt2 smallfont block_row" id="activity_info">
						<if condition="$prepared['lastactivitydate']">
							<div id="last_online">
								<span class="shade">$vbphrase[last_activity]:</span> $prepared[lastactivitydate]<if condition="!$show['detailedtime']"> <span class="time">$prepared[lastactivitytime]</span></if>
							</div>
						</if>	
						<if condition="$prepared['action']">
							<span class="shade">$vbphrase[current_activity]:</span> $prepared[action] $prepared[where]
						</if>
					</div>
				</if>	
				<!-- / current activity -->
				
			</div>
			<!-- / link bar -->
			
			<!-- user list menu -->
			<ul id="userlists_menu" class="vbmenu_popup list_no_decoration" style="display: none">
				<li class="thead first"><phrase 1="$prepared[username]">$vbphrase[user_lists]</phrase></li>
				<if condition="$prepared['canbefriend']">
					<li class="vbmenu_option">
						<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=friend&amp;u=$prepared[userid]"><if condition="$prepared['requestedfriend']">$vbphrase[confirm_friendship_request]<else />$vbphrase[add_to_friends_list]</if></a>
					</li>
				</if>
				<if condition="$prepared['isfriend']">
					<li class="vbmenu_option">
						<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=friend&amp;u=$prepared[userid]">$vbphrase[remove_from_friends_list]</a>
					</li>
				</if>
				<if condition="$show['addbuddylist']">
					<li class="vbmenu_option">
						<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$prepared[userid]">$vbphrase[add_to_contacts]</a>
					</li>
				</if>
				<if condition="$show['removebuddylist']">
					<li class="vbmenu_option">
						<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$prepared[userid]">$vbphrase[remove_from_contacts]</a>
					</li>
				</if>
				<if condition="$show['addignorelist']">
					<li class="vbmenu_option">
						<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$prepared[userid]">$vbphrase[add_to_ignore_list]</a>
					</li>
				</if>
				<if condition="$show['removeignorelist']">
					<li class="vbmenu_option">
						<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$prepared[userid]">$vbphrase[remove_from_ignore_list]</a>
					</li>
				</if>
			</ul>
		
			<!-- contact popup menu -->
			<ul id="minicontact_menu" class="vbmenu_popup list_no_decoration" style="display:none">
				<if condition="$show['post_visitor_message'] OR $show['pm'] OR $show['email']">
					<li class="thead first"><phrase 1="$prepared[username]">$vbphrase[send_message_to_x]</phrase></li>
				</if>
				<if condition="$show['post_visitor_message']"><li class="vbmenu_option"><img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" class="alt2 inlineimg" /> <a href="visitormessage.php?$session[sessionurl]do=message&amp;u=$prepared[userid]" onclick="return goto_post_pm();"><phrase 1="$prepared[username]">$vbphrase[post_a_visitor_message_for_x]</phrase></a></li></if>
				<if condition="$show['pm']">
					<li class="vbmenu_option"><img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" class="alt2 inlineimg" /> <a href="private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]" rel="nofollow"><phrase 1="$prepared[username]">$vbphrase[send_private_message_to_x]</phrase></a></li>
				</if>
				<if condition="$show['email']"><li class="vbmenu_option"><img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" class="alt2 inlineimg" /> <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$prepared[userid]" rel="nofollow"><phrase 1="$prepared[username]">$vbphrase[send_message_via_email_to_x]</phrase></a></li></if>
				<if condition="$prepared['hasimdetails']">
					<li class="thead<if condition="!$show['post_visitor_message'] AND !$show['pm'] AND !$show['email']"> first</if>">$vbphrase[instant_messaging]</li>
					<if condition="$prepared['icq']">
						<li class="vbmenu_option"><img class="alt2 inlineimg" alt="" src="$stylevar[imgdir_misc]/im_icq.gif" />  <a href="#" dir="ltr" onclick="imwindow('icq', '$prepared[userid]', 500, 450); return false;"><phrase 1="$prepared[username]">$vbphrase[send_icq_message_to_x]</phrase></a></li>
					</if>
					<if condition="$prepared['aim']">
						<li class="vbmenu_option"><img class="alt2 inlineimg" alt="" src="$stylevar[imgdir_misc]/im_aim.gif" /> <a href="#" dir="ltr" onclick="imwindow('aim', '$prepared[userid]', 400, 200); return false;"><phrase 1="$prepared[username]">$vbphrase[send_aim_message_to_x]</phrase></a></li>
					</if>
					<if condition="$prepared['msn']">
						<li class="vbmenu_option"><img class="alt2 inlineimg" alt="" src="$stylevar[imgdir_misc]/im_msn.gif" /> <a href="#" dir="ltr" onclick="imwindow('msn', '$prepared[userid]', 400, 200); return false;"><phrase 1="$prepared[username]">$vbphrase[send_msn_message_to_x]</phrase></a></li>
					</if>
					<if condition="$prepared['yahoo']">
						<li class="vbmenu_option"><img src="$stylevar[imgdir_misc]/im_yahoo.gif" alt="" class="alt2 inlineimg" /> <a href="#" dir="ltr" onclick="imwindow('yahoo', '$prepared[userid]', 400, 200); return false;"><phrase 1="$prepared[username]">$vbphrase[send_yahoo_message_to_x]</phrase></a></li>
					</if>
					<if condition="$prepared['skype']">
						<li class="vbmenu_option"><img src="$stylevar[imgdir_misc]/im_skype.gif" alt="" class="alt2 inlineimg" /> <a href="#" dir="ltr" onclick="imwindow('skype', '$prepared[userid]', 400, 285); return false;"><phrase 1="$prepared[username]">$vbphrase[send_skype_message_to_x]</phrase></a></li>
					</if>
				</if>
			</ul>
			<!-- / contact popup menu -->
	</div>
	
	<div id="profile_tabs">
		$template_hook[profile_left_first]
		$blocks[visitor_messaging]
		$blocks[aboutme]
		$blocks[stats]
		$blocks[friends]
		$blocks[infractions]
		$blocks[contactinfo]
		$template_hook[profile_left_last]
	</div>

	<script type="text/javascript">
	<!--
	vBulletin.register_control("vB_TabCtrl", "profile_tabs", "$selected_tab", "&raquo;", "profile.php?u=2&do=loadtab&tabid={1:tabid}");
	//-->
	</script>

</div>
</div>

<div id="sidebar_container">
	<!-- sidebar -->
	$template_hook[profile_right_first]
	$blocks[stats_mini]
	$template_hook[profile_right_mini]
	$blocks[friends_mini]
	$blocks[albums]
	$template_hook[profile_right_album]
	$blocks[groups]
	$blocks[visitors]
	$template_hook[profile_right_last]
	<!-- / sidebar -->
</div>

<!-- end usercss -->
</div>



$dmemberinfo
$dmemberfiles

<!-- Award detail list -->
<if condition="$show['userawards']">
<a name="award"></a>
<br>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" colspan="3" align="center">$vbphrase[award_showcase]</td>
	</tr>
	<tr>
<if condition="$vboptions[aw_showicon]">
		<td class="thead" nowrap>$vbphrase[award_icon]</td>
</if>
<if condition="$vboptions[aw_showimage]">
		<td class="thead" nowrap>$vbphrase[award_image]</td>
</if>
		<td class="thead" width="100%">$vbphrase[award_description]</td>
	</tr>
	$userawardslistbits
</table>
</if>
<!-- /Award detail list -->

$footer

</body>
</html>
My site is http://www.Battle-Lands.com if you wanted to see how it looks in the profiles.
Reply With Quote
  #386  
Old 03-14-2008, 04:40 AM
J105C J105C is offline
 
Join Date: Mar 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you delete a user from getting an award? I tested it, now I want to remove him from receiving the award lol
Reply With Quote
  #387  
Old 03-14-2008, 07:39 AM
Xanlamin's Avatar
Xanlamin Xanlamin is offline
 
Join Date: Mar 2008
Location: St. Charles, MO
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Click on Award Manager and then click on "manage" on the award you want to remove the user from, you will see the following options within:
Reply With Quote
  #388  
Old 03-14-2008, 09:40 AM
J105C J105C is offline
 
Join Date: Mar 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #389  
Old 03-16-2008, 04:11 AM
J105C J105C is offline
 
Join Date: Mar 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and looking mighty fine. I had to change the award PM, tables in the award page, and a few other things though. Looks awesome
Reply With Quote
  #390  
Old 03-16-2008, 05:29 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

** BUMPITY BUMP **

Quote:
Is there anyway to use this modification to stamp POSTS as well as stamping THREADS???

Thanx,

JAcquii.
Reply With Quote
  #391  
Old 03-16-2008, 10:28 AM
ramsayeg ramsayeg is offline
 
Join Date: Mar 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this working on 3.7 Beta 6 as well by any chance?
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 03:35 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.05377 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
  • (1)bbcode_code
  • (3)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