So.. I am currently working on a page that requires me to make an AnythingRating snippet call so I can display the current rating of an item.
What I don't understand is, why is it that you can only set the tpl and css when you define and can't be change when just making a simple code. I been messing aroudn with the snippet.anythingRating.inc.php and came to the conclusion that if that were to ever function it would be need to be done in this line of code:
else {
// here are the parameters which are specific to a rated item
// Unique id for this anythingRating instance
// Any combination of characters a-z, underscores, and numbers 0-9
$cfg['atrId'] = isset($atrId) ? $atrId : 0;
$cfg['atrCss'] = ATR_SPATH.'css/'.$atrCss; //what I implemented
$cfg['atrTpl'] = "@FILE:".ATR_SPATH.'templates/'.$atrTpl; //what I implemented
// No votes [1 | 0]
// forbid vote for a specific atrId
$cfg['noVotes'] = isset($noVotes) ? $noVotes : 0;
// Initialize the vote with a rating value or from content of a TV
$cfg['init'] = isset($init) ? $init : 0;
}
I commented what I implemented, I am new to php and quite frankly I'd like to get this to work but I don't know what I am doing wrong. When I include a "include($atrCss)" or "include($atrTprl)" at the end of that block the information for the files is displayed where the rater is, what I do not understand is why style won't apply.
Help x.x