HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


How can I add ratings to forum topics and replies?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#83244 (In Topic #17319)
Avatar

Fan in action

I'd like to have star ratings for forum topics and thumbs ratings for topic replies.
I have the ratings module installed but I am not seeing how to achieve this or is this not possible?

:)
Back to the top
 
Posted
Rating:
#84572
Avatar

Fan in action

krunchor said

I'd like to have star ratings for forum topics and thumbs ratings for topic replies.
I have the ratings module installed but I am not seeing how to achieve this or is this not possible?



I like as well and not sure if it is an addon or built in or not… or it is just the the oc guys know how to program and made for themself   :lol:
Back to the top
 
Posted
Rating:
#84574
Avatar

Think it's on by default in v8.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84599
Avatar

Community saint

I see the stars but not the thumbs.

Steve
Back to the top
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#84600
Avatar

To enable likes, you need to type this into OcCLE:

Code

:set_value('likes','1');

It's not a 100% official feature yet. Actually though, under-the-hood we have very good support for saying what content type can be liked and what is rated, and for setting up multiple rating criteria for different content types. That requires some programming  to define the parameters for it.

Conceptually likes are very close to ratings. A 5-star rating is a like (and like notifications are sent accordingly. A 1-star rating is a dislike.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84601
Avatar

Community saint

So many hidden settings that need to be exposed in the interface. Ahh, there's a feature request for that: 0000112: Promote hidden options - ocPortal feature tracker

Bob


Last edit: by BobS
Back to the top
 
Posted
Rating:
#84602
Avatar

Yes. There are a few reasons they are lurking around:
  1. Less to guarantee works
  2. Less to make translators translate (each official option is two more strings)
  3. Adding a config option is a small DB-compatibility breakage and a module version bump, as a row needs versioning into the config table
  4. The number of options is very large now, and this is posing a potential future performance issue – they all need loading on each page view, so they can't be allowed to sneak up much further. There's a plan to resolve that (self-learning algorithm to make it know what to load up in advance for what parts of the system), but it needs some work.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84607
Avatar

Community saint

So we should not be in a hurry to sponsor feature request 112. Just as well since I find so many other issues in the tracker that are more interesting and will provide bigger impact.

Bob
Back to the top
 
Posted
Rating:
#84660
Avatar

Community saint

BobS said

So many hidden settings that need to be exposed in the interface. Ahh, there's a feature request for that: 0000112: Promote hidden options - ocPortal feature tracker

Bob
The biggest gripe I have with the configuration screen(s) is not the number of options, but the difficulty in locating which screen something is in. I use the admin search a lot for this.

I have no problem turning on things from command line, especially things that are one-time items like "likes".

A list somewhere for these types would be helpful, and maybe their corresponding "off" command (if there is one). Could even add a blurb saying they are "not 100% official feature yet" and should be used with caution, etc, etc.


Last edit: by sholzy

Steve
Back to the top
 
Posted
Rating:
#84663
Avatar

That list is in the Code Book.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84677
Avatar

Community saint

Chris Graham said

That list is in the Code Book.

Thanks, Chris!

I had no idea this existed. I think I found the most up to date version, 8.0?

I need to get out more often and look through other areas of the site for these "hidden" docs.  :dry:

Looking through the Code Book, I found how to turn off the WYSIWYG editor. That thing has given my members the most trouble and me the biggest headache. But not anymore!  :thumbs:

I assume the "no_wysiwyg" option is site-wide, including the Admin Panel?

Steve
Back to the top
 
Posted
Rating:
#84690
Avatar

Community saint

Chris Graham said

To enable likes, you need to type this into OcCLE:

Code

:set_value('likes','1');

It's not a 100% official feature yet. Actually though, under-the-hood we have very good support for saying what content type can be liked and what is rated, and for setting up multiple rating criteria for different content types. That requires some programming  to define the parameters for it.

Conceptually likes are very close to ratings. A 5-star rating is a like (and like notifications are sent accordingly. A 1-star rating is a dislike.
Doesn't work for me.

Is the OcCLE command retrospectivie?



Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#84695
Avatar

clear template cache


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84701
Avatar

Community saint

Chris Graham said

clear template cache

Nope!

No matter. Not a 'biggie'!

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#84704
Avatar

Ah, just took a quick look, you have OCF_TOPIC_POST.tpl overridden, so the new rating code wouldn't be included in that.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#84716
Avatar

Community saint

Its working not by me to.


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#84731
Avatar

Community saint

Chris Graham said

Ah, just took a quick look, you have OCF_TOPIC_POST.tpl overridden, so the new rating code wouldn't be included in that.

bummer

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Item has a rating of 5 (Liked by Fletch)  
Rating:
#84732
Avatar

Community saint

I just had a quick look at OCF_TOPIC_POST.tpl and if you have it overridden with a custom template I believe this is what you need to add to it to make it work. 

Code

{+START,IF_PASSED,RATING}
{RATING}
{+END}
Back to the top
 
Posted
Item has a rating of 5 (Liked by Brian Hay)  
Rating:
#84739
Avatar

Community saint

Brian Hay said

I just had a quick look at OCF_TOPIC_POST.tpl and if you have it overridden with a custom template ...
OK, Brian - your persistence (insistence) kinda 'forced' me to continue troubleshooting the issue.

No doubt the override would have interfered, but I'd already removed it, so couldn't understand WHY I wasn't getting the display when it appeared everybody else (except Harry) WAS!

Turns out it was simpler, or more complex, than I thought: I HAD RATINGS DISABLED! Did that a couple of years ago on recommendation of one of my silver-surfers who reckoned it was an unnecessary complication for my users!

Re-activated 'Ratings', and the stars 'n' thumbs are showing up fine. And they're retroactive!

(P.S. Recommend krunchor close the topic as RESOLVED - if it resolves his problem, of course!)

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#84761
Avatar

Community saint

 This what I see:



http://digiflash.nl Photo community  (dutch)
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand