Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 05-18-2009, 11:26 PM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help with one problem!

I was working on a new way to display awards on my YAAS page. I didn't like the look of it.
So I managed to get what I wanted but somethings bad with it, and I do not know how to remove it properly.
It looks like this: http://www.rarewarecentral.com/kazoowards.png

As you can see there's one terrible and empty row. Which I would like removed.
Below are my custom templates. If you would be able to see the problem and fix it I would be happy.

Awards_awardbit:
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" align="left">
	<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>
Awards_category:
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_showdesc]">
	<td class="thead" nowrap="nowrap"></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>
Awards_showcase:
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>
		<td class="thead" width="100%">$vbphrase[award_description]</td>
	</tr>
	$userawardslistbits
</tbody>
</table>
</if>
<!-- [END HACK='Yet Another Awards System hack' AUTHOR='HacNho'] -->
Thanks.
Reply With Quote
  #2  
Old 05-18-2009, 11:49 PM
Guest190829
Guest
 
Posts: n/a
Default

In the awards category, you have:

Code:
<if condition="$vboptions[aw_showdesc]">
    <td class="thead" nowrap="nowrap"></td>
</if>
which is the empty column so it should be removed.
Reply With Quote
  #3  
Old 05-19-2009, 02:31 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT View Post
In the awards category, you have:

Code:
<if condition="$vboptions[aw_showdesc]">
    <td class="thead" nowrap="nowrap"></td>
</if>
which is the empty column so it should be removed.
Yes but that makes it look like this: http://www.rarewarecentral.com/forums/failed.png
Thanks a lot for the help. I still had one problem after changing i but that was just to remove a background class! Thanks.
Reply With Quote
  #4  
Old 05-19-2009, 02:58 AM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the awards_award bit you have malformed html
HTML Code:
<if condition="$vboptions[aw_showmembers]">
	<td class="$bgclass" align="left">
	<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>
^^There is two opening 'td' tags.

In the awards_category remove this...
HTML Code:
<if condition="$vboptions[aw_showdesc]">
	<td class="thead" nowrap="nowrap"></td>
</if>
Reply With Quote
Reply

Thread Tools
Display Modes

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:03 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.05674 seconds
  • Memory Usage 2,206KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (3)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete