nay27uk Posted February 18, 2011 Share Posted February 18, 2011 Hi all I realy badly need some help with making a new viewticket.tpl I have spend the last 5 hours trying to resolve the problem I am having. The problem I am having is with the rating stars as soon as the bellow code is moved out of the viewticket.tpl from the PORTAL theme and placed in any new viewticket.tpl the stars do not stay as 1 star it displays 4 instead of 1 I have tried altering the td length and td height I even took all referance to length out but nothing gets this to work as it does in the PORTAL viewticket.tpl. PLEASE CAN SOMEONE HELP ME and tell me why when it is moved out of the PORTAL theme and placed inmy new theme it messes up. <table align="right" cellspacing="0" cellpadding="0"> <tr height="16"> <td>{$LANG.ticketreatinggiven} </td> <td width="16" background="images/rating_{if $reply.rating>=1}pos{else}neg{/if}.png"></td> <td width="16" background="images/rating_{if $reply.rating>=2}pos{else}neg{/if}.png"></td> <td width="16" background="images/rating_{if $reply.rating>=3}pos{else}neg{/if}.png"></td> <td width="16" background="images/rating_{if $reply.rating>=4}pos{else}neg{/if}.png"></td> <td width="16" background="images/rating_{if $reply.rating>=5}pos{else}neg{/if}.png"></td> </tr> </table> {else} <table align="right" cellspacing="0" cellpadding="0"> <tr height="16" onmouseout="rating_leave('rate{$reply.id}')" style="cursor: pointer; cursor: hand;"> <td>{$LANG.ticketratingquestion} </td> <td onmouseover="rating_hover('rate{$reply.id}_1')" onclick="rating_select('rate{$reply.id}_1')"><b>{$LANG.ticketratingpoor} </td> <td width="16" id="rate{$reply.id}_1" onmouseover="rating_hover(this.id)" onclick="rating_select(this.id)" background="images/rating_neg.png"></td> <td width="16" id="rate{$reply.id}_2" onmouseover="rating_hover(this.id)" onclick="rating_select(this.id)" background="images/rating_neg.png"></td> <td width="16" id="rate{$reply.id}_3" onmouseover="rating_hover(this.id)" onclick="rating_select(this.id)" background="images/rating_neg.png"></td> <td width="16" id="rate{$reply.id}_4" onmouseover="rating_hover(this.id)" onclick="rating_select(this.id)" background="images/rating_neg.png"></td> <td width="16" id="rate{$reply.id}_5" onmouseover="rating_hover(this.id)" onclick="rating_select(this.id)" background="images/rating_neg.png"></td> <td onmouseover="rating_hover('rate{$reply.id}_5')" onclick="rating_select('rate{$reply.id}_5')"><b> {$LANG.ticketratingexcellent}</td> </tr> </table> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.