The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Yet Another Awards System 2.1.4 Details »» | |||||||||||||||||||||||||
Yet Another Award System 2.1.4 ? by HacNho Hack Version: 2.1.4.070324Copyright (C) 2005 by HacNho, All rights reserved. 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
|
Comments |
#382
|
|||
|
|||
Yes, Sorry again have a LOT of projects on plate at the moment. So we shall see.
|
#383
|
||||
|
||||
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. |
#384
|
|||
|
|||
Quote:
Best regards hj |
#385
|
||||
|
||||
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&hash=$bbuserinfo[logouthash]&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&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&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&userlist=friend&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&userlist=friend&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&userlist=buddy&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&userlist=buddy&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&userlist=ignore&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&userlist=ignore&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&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&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&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", "»", "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> |
#386
|
|||
|
|||
How do you delete a user from getting an award? I tested it, now I want to remove him from receiving the award lol
|
#387
|
||||
|
||||
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:
|
#388
|
|||
|
|||
Thanks
|
#389
|
|||
|
|||
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
|
#390
|
||||
|
||||
** BUMPITY BUMP **
Quote:
|
#391
|
|||
|
|||
Is this working on 3.7 Beta 6 as well by any chance?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|