Not Solved "Rating is undefined"
Not Solved
I modified my theme to move the rating inside the thread title cell on the forum display >> forumdisplay_thread template.

However whilst this shows the correct rating, you are unable to rate from the threadlist page and it is throwing the JS error

Rating is not defined
[Break On This Error] Rating.build_forumdisplay(23316, { ...Vote(s) - 0 out of 5 in Average' });

Any ideas how I can fix this?

Never mind. I fixed this.

I compared the source to the default, and found I had inadvertently deleted

<script type="text/javascript" src="jscripts/rating.js?ver=1600"></script>

		<script type="text/javascript">
			lang.stars = new Array();
			lang.stars[1] = "1 star out of 5";
			lang.stars[2] = "2 stars out of 5";
			lang.stars[3] = "3 stars out of 5";
			lang.stars[4] = "4 stars out of 5";
			lang.stars[5] = "5 stars out of 5";
		// -->

After I put this back in the issue was fixed

Forum Jump:

Users browsing this thread: 1 Guest(s)