Jump to content

Badly need help now Please


nay27uk

Recommended Posts

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}&nbsp</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}&nbsp</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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated