The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Standalone Add-On for Awards/Medals/Cards Hack Details »» | |||||||||||||||||||||||||||
Standalone Add-On for Awards/Medals/Cards Hack
Developer Last Online: May 2006
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
|
Comments |
#52
|
|||
|
|||
Plz call me stupid :squareeyed: but under the membersname when they post should´t there be a link instead of pictures?
|
#53
|
||||
|
||||
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.
|
#54
|
|||
|
|||
That would be great Creed if u could do that
|
#55
|
||||
|
||||
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 ] 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 ] Code:
<a href="award.php?u=$userinfo[userid]"><img src="$useraward[icon_url]" alt="$useraward[name]" height="17" width="17" border="0" /></a> **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 |
#56
|
|||
|
|||
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 |
#57
|
||||
|
||||
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> 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> |
#58
|
||||
|
||||
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 |
#59
|
|||
|
|||
That looks awsome , Thx man :up:
|
#60
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|