Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
Better YaAS (Awards) Layout! Details »»
Better YaAS (Awards) Layout!
Version: 1.00, by MarkFoster MarkFoster is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 05-18-2009 Last Update: Never Installs: 46
Re-useable Code Code Changes Translations  
No support by the author.

This is probably compatible with most YaAS versions but only tested on the latest one.
This mod will change your layout from the classic Awards Showcase into what you see in the image bellow.
NOTE: It doesn't change the colored layout but the content layout.
http://www.rarewarecentral.com/content/display.png

To do this all you need to do is three template edits. Simple, easy and a better YaAS.
Change the template "Awards_awardbit" to:
Code:
<tr>

<if condition="$vboptions[aw_showicon]">
	<td class="$bgclass" align="center">
		<img src="$award[award_icon_url]" border="0">
	</td>
</if>

<if condition="$vboptions[aw_showimage]">
	<td class="$bgclass" align="center">
		<a name="award$award[award_id]"></a>
		<img src="$award[award_img_url]" alt="$award[award_name]" border="0">
	</td>
</if>

<if condition="$vboptions[aw_showmembers]">

	<td class="$bgclass"><b><a href="awards.php?do=viewaward&award_id=$award[award_id]">$award[award_name]</a></b>
		<div class="smallfont">$award[award_desc]
<hr>
		<if condition="$awarduserslist">
$vbphrase[users_with_thisaward]: $aw_ui<br>
			$awarduserslist
		<else />
			$vbphrase[no_award_users]
		</if>
	</td>
</if>

</div>
<if condition="$vboptions[aw_requestaward]">
	<td class="$bgclass" align="center" nowrap>
<if condition="$award[award_allowrequest]">
		<a href="request_award.php?$session[sessionurl]award_id=$award[award_id]">$vbphrase[request_award]</a>
</if>
	</td>
</if>


</tr>
Change the teamplate "Awards_category" to:
Code:
<if condition="$award_cat[award_cat_id]>1">
	<tr>
		<td  class="page" colspan="$totalcols">
			<img src="$vboptions[cleargifurl]" width="16" height="4" alt="" />
		</td>
	</tr>
</if>

<tr>
	<td class="tcat" colspan="$totalcols">
		<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('award_cat$award_cat[award_cat_id]')"><img id="collapseimg_award_cat$award_cat[award_cat_id]" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_award_cat}.gif" alt="" border="0" /></a>$award_categotybit
		<if condition="$award_cat[award_cat_desc]"><div class="smallfont">$award_cat[award_cat_desc]</div></if>
	</td>
</tr>
<tbody id="collapseobj_award_cat$award_cat[award_cat_id]" style="{$collapseobj_award_cat}">

<tr>
<if condition="$vboptions[aw_showicon]">
	<td class="thead" nowrap="nowrap">$vbphrase[award_icon]</td>
</if>

<if condition="$vboptions[aw_showimage]">
	<td class="thead" nowrap="nowrap">$vbphrase[award_image]</td>
</if>


<if condition="$vboptions[aw_showmembers]">
	<td class="thead" width="100%">Description / Users with Award</td>
</if>


<if condition="$vboptions[aw_requestaward]">
	<td class="thead" align="center" nowrap="nowrap">$vbphrase[request_award]</td>
</if>

</tr>

<if condition="$award[award_id]">
	$awardsbits
<else />
	<!-- show no awards message -->
	<tr>
		<td class="alt1" colspan="$totalcols" align="center">
			<div style="padding: 16px">
				<strong>$vbphrase[no_awards_in_this_category]</strong>
			</div>
		</td>
	</tr>
	<!-- end show no awards message -->
</if>
</tbody>
Change the template "Awards_showcase" to:
Code:
<!-- [START HACK='Yet Another Awards System hack' AUTHOR='HacNho'] -->
<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">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('award_showcase')"><img id="collapseimg_award_showcase" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_award_showcase}.gif" alt="" border="0" /></a>
			$vbphrase[award_showcase] ($total_awards $vbphrase[awards])
		</td>
	</tr>
<tbody id="collapseobj_award_showcase" style="{$collapseobj_award_showcase}">
	<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>

	</tr>
	$userawardslistbits
</tbody>
</table>
</if>
<!-- [END HACK='Yet Another Awards System hack' AUTHOR='HacNho'] -->
Enjoy the changes!
Click install if you use it.

Show Your Support

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

Comments
  #2  
Old 05-19-2009, 08:07 PM
GhoHan's Avatar
GhoHan GhoHan is offline
 
Join Date: Oct 2007
Location: Jakarta - Indonesia
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i say thanks for first time good idea..
Reply With Quote
  #3  
Old 07-12-2009, 06:56 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for being slow here. By looking at your OP and the template changes, there is obviously something along these lines already on vB 3.8.x.

What is it and where would I find it please?

If someone could explain - I would be grateful.
Reply With Quote
  #4  
Old 12-31-2009, 03:30 AM
Skydiver10's Avatar
Skydiver10 Skydiver10 is offline
 
Join Date: Sep 2009
Location: SoCal
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for these edits!...
Reply With Quote
  #5  
Old 05-30-2010, 07:16 PM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #6  
Old 12-04-2010, 05:09 AM
PattiOz PattiOz is offline
 
Join Date: May 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could not find the "Awards_showcase" template ??
Reply With Quote
  #7  
Old 12-19-2010, 04:57 AM
ScrapALatte ScrapALatte is offline
 
Join Date: Dec 2010
Location: Oregon
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea why there's no "Awards_showcase" template? Has anyone figured out how to make this work?

Thanks for the help. : )
Reply With Quote
  #8  
Old 12-23-2010, 02:52 PM
snowlion snowlion is offline
 
Join Date: Mar 2005
Location: STY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's already in Yet Another Award System 3.8. That's why you can't find "Awards_showcase" template
Reply With Quote
  #9  
Old 01-18-2012, 12:57 AM
leomartins leomartins is offline
 
Join Date: Aug 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks !

i will test now!
Reply With Quote
  #10  
Old 10-05-2012, 01:18 PM
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed but 1 Little problem: I think this was made for the old version, so the "Awards_showcase" is not found in th new YAAS Version. But works fine on vBulletin 3.8.6 and 3.8.7!

And by the way, if you want to change the "Award Request" Text, then I have changed my Award Request TEXT to CSS buttons, with a nice HOVER effect!

This is how my "Award Request" button looks like:


If you want the exact same buttons, then "Replace" all the codes in your "awards_awardbit" with my code below:

Code to replace in awards_awardbit Template:
Code:
<tr>

<if condition="$vboptions[aw_showicon]">
    <td class="$bgclass" align="center">
        <img src="$award[award_icon_url]" alt="Award" border="0">
    </td>
</if>

<if condition="$vboptions[aw_showimage]">
    <td class="$bgclass" align="center">
        <a name="award$award[award_id]"></a>
        <img src="$award[award_img_url]" alt="Award" alt="$award[award_name]" border="0">
    </td>
</if>

<if condition="$vboptions[aw_showmembers]">

    <td class="$bgclass"><b><a href="awards.php?do=viewaward&award_id=$award[award_id]">$award[award_name]</a></b>
        <div class="smallfont">$award[award_desc]
<hr>
        <if condition="$awarduserslist">
$vbphrase[users_with_thisaward]: $aw_ui<br>
            $awarduserslist
        <else />
            $vbphrase[no_award_users]
        </if>
    </td>
</if>

</div>
<style type="text/css">
.awardrequest {
    -moz-box-shadow:inset 0px 0px 0px 0px #8f8f8f;
    -webkit-box-shadow:inset 0px 0px 0px 0px #8f8f8f;
    box-shadow:inset 0px 0px 0px 0px #8f8f8f;
    background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #262526), color-stop(1, #dfdfdf) );
    background:-moz-linear-gradient( center top, #262526 5%, #dfdfdf 100% );
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#262526', endColorstr='#dfdfdf');
    background-color:#262526;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
    border-radius:3px;
    border:1px solid #dcdcdc;
    display:inline-block;
    color:#ffffff;
    font-family:arial;
    font-size:12px;
    font-weight:bold;
    padding:3px 7px;
    text-decoration:none;
}.awardrequest:hover {
    background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #262526) );
    background:-moz-linear-gradient( center top, #dfdfdf 5%, #262526 100% );
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#262526');
    background-color:#dfdfdf;
}.awardrequest:active {
    position:relative;
    top:1px;
}
/* This imageless css button was generated by CSSButtonGenerator.com */
</style>
<if condition="$vboptions[aw_requestaward]">
    <td class="$bgclass" align="center" nowrap>
<if condition="$award[award_allowrequest]">
<a href="request_award.php?$session[sessionurl]award_id=$award[award_id]"  class="awardrequest">$vbphrase[request_award]</a>
</if>
    </td>
</if>
</tr>
If you want to change your button Effect and color, then go to http://www.cssbuttongenerator.com/ and generate a new code and replace the old code with the new one! Dont forget to change the 3 class "classname" to "awardrequest"! Good Luck
Reply With Quote
Reply

Thread Tools

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 07:30 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.11216 seconds
  • Memory Usage 2,317KB
  • Queries Executed 24 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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_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