Enable Content Rating

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/17/2010 2:58:07 PM
Gravatar
Total Posts 110

Enable Content Rating

Hello,

 

I have the content rating enabled on my blogs yet there are no stars displayed to rate the content.  The starts used to be there but have disappeared on one of the recent upgrades but not sure which one.

Where can I start investigating this?

 

Thanks.

6/18/2010 12:39:36 PM
Gravatar
Total Posts 18439

Re: Enable Content Rating

Existing skins in the /Data/skins folder have the images for the stars, you should copy those into your skin folder and you need css something like this which is from one of the included skins:

.ratingcontainer { float:right; white-space:nowrap; margin:5px 5px 5px 5px; }
.ratingprompt { float: left; margin-right: 5px; }
.leftside .ratingprompt , .rightside .ratingprompt{ display: none; }
.voteswrap { margin-left: 5px; }
.ratingcontainer div { float:left; white-space:nowrap; margin:0px 0px 0px 0px; }
.ratingrow { white-space:nowrap; }
.ratingStar { white-space:nowrap; height:14px; margin:1em; }
.ratingStar .ratingItem { font-size:0; width:13px; height:12px; display:block; background-repeat:no-repeat; cursor:pointer; margin:0; padding:0; }
.ratingStar .Filled { background-image:url('ratingStarFilled.png'); }
.ratingStar .Empty { background-image:url('ratingStarEmpty.png'); }
.ratingStar .Saved { background-image:url('ratingStarSaved.png'); }
.ratingbuttons { margin: 0px 0px 0px 0px; padding: 2px 0px 0px 0px; }
.rcommentprompt { display:block;}
.ratingcomments { border:#000 1px solid; background-color:#eee; color:#000; width:206px; height:200px; position:absolute; margin-top:15px; padding:5px; }
.ratingcommentbox { width:200px; height:100px; }

Hope it helps,

Joe

6/22/2010 3:45:34 AM
Gravatar
Total Posts 110

Re: Enable Content Rating

Hi Joe,

I copied the techmania skin from the Data/Skins folder to Sites/1/Skins and am now using the new skin, however the star ratings are still not showing.  I have confirmed I have the ratingStar*.png files and I have the CSS you provided in the style.css file.

Any other thoughts?

Thanks.

6/22/2010 2:30:13 PM
Gravatar
Total Posts 18439

Re: Enable Content Rating

Are you seeing any related errors in the mojoportal log?

I would use Firebug and see if it is getting any 404 not found errors in retrieving images or javascript files.

6/22/2010 3:24:23 PM
Gravatar
Total Posts 110

Re: Enable Content Rating

I'm not seeing any errors in Firebug or in the log.  When I look at the source code of the page, I don't even see any references to anything withthe word rating in it, should there be?

I am seeing lots of these messages in the log but I presume they wont be related.

2010-06-22 13:24:30,542 ERROR mojoPortal.Business.WebHelpers.IndexWriterTask - System.InvalidOperationException: There is an error in XML document (20, 64744). ---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: content, IndexItem. Line 20, position 64744.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlTextReaderImpl.MoveToNextContentNode(Boolean moveIfOnContentNode)
   at System.Xml.XmlTextReaderImpl.ReadContentAsBinary(Byte[] buffer, Int32 index, Int32 count)
   at System.Xml.XmlTextReaderImpl.ReadElementContentAsBinary(Byte[] buffer, Int32 index, Int32 count)
   at System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64(Byte[] buffer, Int32 index, Int32 count)
   at System.Xml.XmlTextReader.ReadElementContentAsBase64(Byte[] buffer, Int32 index, Int32 count)
   at System.Xml.Serialization.XmlSerializationReader.ReadByteArray(Boolean isBase64)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderIndexItem.Read2_IndexItem(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderIndexItem.Read3_IndexItem()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at mojoPortal.Business.SerializationHelper.DeserializeFromString(Type type, String serializedObject)
   at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath) 

6/24/2010 3:51:30 AM
Gravatar
Total Posts 110

Re: Enable Content Rating

I resolved the issue that was causing all those errors in the log, I followed one of your previous forum posts on deleting all the rows from the mp_taskqueue and mp_indexingqueue and rebuilding the search index.

I am still unable to resolve why Content Rating is not working though, are there any file(s) or DB settings I can check to confirm that it is actually enabled?

Thanks.

6/24/2010 6:44:46 AM
Gravatar
Total Posts 18439

Re: Enable Content Rating

Are you sure you have content rating enabled in the blog settings? There are 2 settings one for ratings and one for rating comments, rating comments only works if ratings are enabled, maybe you have rating comments checked but not enable ratings.

6/24/2010 6:58:22 AM
Gravatar
Total Posts 110

Re: Enable Content Rating

Hi Joe,

I have double checked and I definitely have Enable Content Rating enabled, Enable Rating Comments I do not have enabled.

Thanks.

6/24/2010 7:41:34 AM
Gravatar
Total Posts 18439

Re: Enable Content Rating

Hi David,

I found it, it is a bug. It is supposed to not show ratings in the post list when using excerpts because they should see the whole article to rate it, but the bug is it is also not showing the rating on blog detail page if excerpt is enabled.

I apologize for this bug, it will be fixed in the next release.

Best,

Joe

6/24/2010 7:44:38 AM
Gravatar
Total Posts 110

Re: Enable Content Rating

Great, thanks Joe.

7/16/2010 6:26:37 AM
Gravatar
Total Posts 110

Re: Enable Content Rating

Hi Joe,

I have also noticed that I have the Default Comment Allowed Days set to Unlimited in my blog settings yet when I create a new post it is still defaulting to 90 days.  I believe this used to work correctly before I moved to displaying excerpts so maybe this is a similar issue?

Thanks.

7/16/2010 8:22:56 AM
Gravatar
Total Posts 18439

Re: Enable Content Rating

Hi David,

This is fixed in mojoPortal 2.3.4.8.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.