Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Display Post Rating on post overview
Avatar
Rasmus Max Petersen
Member
sp_UserOfflineSmall Offline
Feb 1, 2013 - 4:21 am

Hey guys

I've checked the codex, but couldn't find much info for this plugin. I installed the "Post Rating" plugin, which works absolutely like a charm on my site.

I have a question though. I would want to display the "Post Rating" on the post overview of each forum, so that the rating is visible to my users, even before they click on a thread. 

Is that possible?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2013 - 7:08 am

yes. you can use the template function:

sp_TopicIndexRating()

to display the topic rating on the forum view page...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2013 - 7:08 am

yes. you can use the template function:

sp_TopicIndexRating()

to display the topic rating on the forum view page...

Avatar
Rasmus Max Petersen
Member
sp_UserOfflineSmall Offline
Feb 1, 2013 - 8:15 am

Hmmm...

When i look in spForumView.php, i have located the following:

sp_ColumnStart('tagClass=spColumnSection spRight&width=14%&height=50px');

sp_TopicIndexPostCount('tagClass=spInRowCount', __sp('Posts'));

sp_TopicIndexViewCount('tagClass=spInRowCount', __sp('Views'));

sp_TopicIndexStatusIcons('tagClass=spStatusIcon spCenter', __sp('This topic is locked'), __sp('This topic is pinned'), __sp('This topic has unread posts'));

if (function_exists('sp_TopicIndexRating')) sp_TopicIndexRating('tagClass=spTopicRating spCenter');

sp_ColumnEnd();

Bear in mind that you are dealing with a coding imbecile here, but shouldn't the:

"if (function_exists('sp_TopicIndexRating')) sp_TopicIndexRating('tagClass=spTopicRating spCenter');"

make the index rating show?

I have this post which has 1 rating:

http://www.ndroid.dk/forum/ops.....omescreen/

But when i look in the forum overview, no stars are displayed:

http://www.ndroid.dk/forum/ops.....ilpasning/

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 1, 2013 - 11:00 am

Yes - that should work and looking at the code briefly I see no reason why it shouldn't.
I will set up some proper test data here and see if I can find anything wrong.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 1, 2013 - 11:14 am

OK - there is definitely something screwy going on in that function I am sorry to say.

I am opening a bug ticket to get it looked at more closely.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 1, 2013 - 10:30 pm

eh, this was broke recently...  have fixed it up tonight and see about getting an update out this weekend...  apologies...

Avatar
Rasmus Max Petersen
Member
sp_UserOfflineSmall Offline
Feb 5, 2013 - 1:10 am

Hey

V. 1.2.1. fixed the problem like a charm. Thank you for the quick response on this!

- Rasmus

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 5, 2013 - 1:50 am

You're welcome

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625