1
wizanda
Starbar Template {php} variable insertion help
  • 2008/1/2 12:29

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


With the Article rating system I realized you can turn it into a Starbar with ease and so adapted this to be system wide from the theme CSS……So Mydownloads and Mylinks have Starbar rating functionality working….
<{php}>
for(
$i=10;$i>0;$i--) echo'<span><input class="rateit" type="submit" style="width:30px; height:30px;" name="rating" id="rating'.$i.'" value="'.$i.'" /></span>';
<{/
php}>

What I forgot though is that on the Article’s page, it is only being used once and so no W3C errors from it….
Yet with the Mylinks and Mydownloads the ID is used multiple times for a single page….
So what is needed is to get the $lid to be used at the start of the rating ID and the sequential number of the ratings at the end, so each ID is unique…..
I’ve been looking through the Smarty manual for it and see you need to use global…
Yet so far haven’t been successful….
Does anyone know how to do this with Mylinks and Mydownloads to get the variable into the {php} code and so no W3C errors?

Login

Who's Online

169 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits