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
Standalone Add-On for Awards/Medals/Cards Hack Details »»
Standalone Add-On for Awards/Medals/Cards Hack
Version: 1.01, by Creed Creed is offline
Developer Last Online: May 2006 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 02-22-2005 Last Update: 02-26-2005 Installs: 10
DB Changes
 
No support by the author.

Stand Alone Awards/Medals/Cards Add-On Hack


What this hack does:

This hack removes the award showcase from your users profile, but leaves a link to the new standalone version. This hack gives your members (usergroups you specify) the ability to request awards for other members.

Requires: Awards/Medals/Cards Hack installed!

Instructions include:

Template Edits: 5
New Templates: 3
New Files: 1
New Phrases: 2
File Edits: 5
DB Changes: 1


1.01 Update:
-- Removed unused queries in award.php, and cached templates to make sure page loads as fast as possible.
-- Grouped awards templates together, to make styles and templates cleaner
-- Fixed typo in template causing images not to show properly in IE
-- General coding cleanup!

Screenies are attached, and you can see this in use here!

Supporters / CoAuthors

Show Your Support

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

Comments
  #52  
Old 03-20-2005, 07:46 AM
Twiser Twiser is offline
 
Join Date: Nov 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Plz call me stupid :squareeyed: but under the membersname when they post should´t there be a link instead of pictures?
Reply With Quote
  #53  
Old 03-20-2005, 08:20 AM
Creed's Avatar
Creed Creed is offline
 
Join Date: May 2002
Location: The Matrix
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, I see what you're talking about and that is a function of the original hack. The pictures of the awards in the postbit. I didn't take that out, but I could very easily make a change to it if you would like. The only thing that I changed in the postbit, is if you click the poster's username there is a DHTML menu that includes a link to the poster's awards.
Reply With Quote
  #54  
Old 03-20-2005, 08:28 AM
Twiser Twiser is offline
 
Join Date: Nov 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be great Creed if u could do that
Reply With Quote
  #55  
Old 03-20-2005, 08:47 AM
Creed's Avatar
Creed Creed is offline
 
Join Date: May 2002
Location: The Matrix
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I've cooked a little something up for you. Since this was kind of like a request. See the attacked txt file for the hack...or follow the directions in this post:

Open /includes/functions_showthread and find:
Code:
// [START HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.0' CHANGEID= 12 ]
	// AWARDS IN POSTBIT
	foreach($userawards AS $key => $useraward)
	{
		$userawardid = "award$useraward[awardid]";
		if (!empty($post["$userawardid"]))
		{
			$userawardid_desc = $userawardid."_desc";
			if ($post[$userawardid_desc] != '')
			{
				$useraward[description] = $post[$userawardid_desc];
			}
			eval('$post[\'userawards\'] .= "' . fetch_template('awards_bit') . '";');
		}
	}
	// END AWARDS IN POSTBIT
// [END HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.0' CHANGEID= 12 ]
replace with:
Code:
// [START HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.0' CHANGEID= 12 ]
	// AWARDS IN POSTBIT
	foreach($userawards AS $key => $useraward)
	{
		$userawardid = "award$useraward[awardid]";
		if (!empty($post["$userawardid"]))
		{
			$userawardid_desc = $userawardid."_desc";
			if ($post[$userawardid_desc] != '')
			{
				$useraward[description] = $post[$userawardid_desc];
			}
			eval('$post[\'userawards\'] .= "' . fetch_template('awards_postbit') . '";');
		}
	}
	// END AWARDS IN POSTBIT
// [END HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.0' CHANGEID= 12 ]
created a new template called: "awards_postbit" and fill with:
Code:
<a href="award.php?u=$userinfo[userid]"><img src="$useraward[icon_url]" alt="$useraward[name]" height="17" width="17" border="0" /></a>
That will do it

**NOTE** you can change the size of the display of the images, by changing the height= and width= in the awards_postbit template. If you want to go further, I could probably do just about whatever you wanted in postbit just let me know. I take requests in most cases
Reply With Quote
  #56  
Old 03-20-2005, 09:02 AM
Twiser Twiser is offline
 
Join Date: Nov 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx a lot Creed for all the help , I was just wondering if instead of a icon or a pic to have text (User awards) with a link to the awardpage :nervous:


Damn I finally managed to do something by myself , Thx again for all the help Creed
Reply With Quote
  #57  
Old 03-20-2005, 09:07 AM
Creed's Avatar
Creed Creed is offline
 
Join Date: May 2002
Location: The Matrix
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sure, like I said just let me know what you want.


How about this...

in POSTBIT/POSTBIT LEGACY template find:
Code:
<div>$post[userawards]</div>
replace with:
Code:
<div id="awardspostmenu_$post[postid]"><b>View Awards</b>
  <script type="text/javascript"> vbmenu_register("awardspostmenu_$post[postid]", true); </script>
</div>
<div class="vbmenu_popup" id="awardspostmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
	<tr>
		<td class="thead">$post[username]'s Awards</td>
	</tr>
<tr><td class="vbmenu_option">$post[userawards]</td></tr>

	</table>
</div>
Tell me what you think
Reply With Quote
  #58  
Old 03-20-2005, 09:45 AM
Creed's Avatar
Creed Creed is offline
 
Join Date: May 2002
Location: The Matrix
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is becoming fun, I've decided to create a nice little extra that allows the user to choose whether or not to show the awards menu is shown in the postbit. This is controlled by an option in the User CP

Just follow the instructions on the attached txt file
Reply With Quote
  #59  
Old 03-20-2005, 09:53 AM
Twiser Twiser is offline
 
Join Date: Nov 2002
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That looks awsome , Thx man :up:
Reply With Quote
  #60  
Old 03-20-2005, 09:55 AM
Creed's Avatar
Creed Creed is offline
 
Join Date: May 2002
Location: The Matrix
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Twiser
That looks awsome , Thx man :up:
No Problem, glad you like!
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 11:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04657 seconds
  • Memory Usage 2,301KB
  • Queries Executed 27 (?)
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
  • (1)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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