Title |
custom rating field problem |
Message Text |
i am trying to add a custom rating field but the variables which shows the number of stars and votes, are not working.
i added the field: Add fields -> link field -> myrating(float) -> input box
i replaced in vote.tpl the default "votevalue"->"myrating
34;
added the following in suggestlink.tpl: <tr> <td class="labelscolumn"><span class="labels">myRating:</span></td> <td class="optionscolumn"><input type="text" name="myrating" size="5" value="{LINKMYRATING}"></td> </tr>
replaced in displaylinks.tpl, to show "myrating" stats <IF {SWITCH_RATINGS} and {LINKMYRATING}><br><img src="templates/default/images/stars{LINKMYRATINGSTARS}.gif" alt="{LINKMYRATING} out of {MAXVOTE} stars" title="{LINKMYRATING} out of {MAXVOTE} stars"> ({LINKMYRATINGVOTES} votes)</IF>
now i add a link with "myrating"=3 (suggestlink page). when i return in displaylinks, i get this html output:
<br><img src="templates/default/images/stars<img src="templates/default/images/stars0.gif" alt="0" border="0">.gif" alt="3 out of 5 stars" title="3 out of 5 stars"> (3 votes)
{LINKMYRATINGSTARS}=0 instead of 3 {LINKMYRATINGVOTES}=3 instead of 1
|
Rating |
0/5 based on 0 votes.
|
Ownership |
sertan6 |
Views |
411 views. Averaging 0 views per day. |
Similar Topics |
|
Submission Date |
May 20, 2006 - 11:18 AM |