How to Turn Off Forum Ratings?

rated by 0 users
Answered (Verified) This post has 1 verified answer | 1 Reply | 2 Followers

Paul M. Helfrich
Top 100 Contributor
219 Posts
Points 3,425
By: Paul M. Helfrich
Posted: Thu, May 1 2008 12:52 PM

Is there a simple way to turn the star ratings in the forums in 2.1? I know that bloggers control this individually, but I can't find any control besides Administration => Post Settings => Forum Rating Type

Thread Rating Post Rating

in which to make any changes in the forums.

I look in web.config, communityserver.config, and siteurls.config and didn't find any controls to enable or disable this function.

Thanks in advance.

Paul H.


Check out the latest:
Integral Conscious Creation
 

Answered (Verified) Verified Answers

Rick Reszler
Top 10 Contributor
4,137 Posts
Points 77,045
CS Developers
Answered (Verified) By: Rick Reszler
Posted: Wed, May 7 2008 10:48 AM In reply to

Paul,  What I did to figure this out was open a default out of the box CS 2.1 web files with Visual Studio and then located the tag in the code that runs the rating control (CSD:RatePost). Once you open a site or set of files in VS you can search the entire folder for contents of the files, it’s really awesome!

 

This is the results of the search and all these files contain the tag/line of code that renders the rating control. I only search the default themes folder for this tag.

 

Find all "CSD:RatePost", Subfolders, Find Results 1, "S:\cs21.datatube.net\Themes\default"

  S:\cs21.datatube.net\Themes\default\Skins\View-MyForums.ascx(106):

  S:\cs21.datatube.net\Themes\default\Skins\View-MyForums.ascx(151):

  S:\cs21.datatube.net\Themes\default\Skins\View-PostFlatView.ascx(64):

  S:\cs21.datatube.net\Themes\default\Skins\View-PostFlatView.ascx(90):

  S:\cs21.datatube.net\Themes\default\Skins\View-PrivateMessages.ascx(71):

  S:\cs21.datatube.net\Themes\default\Skins\View-PrivateMessages.ascx(125):

  S:\cs21.datatube.net\Themes\default\Skins\View-SinglePostView.ascx(27):

  S:\cs21.datatube.net\Themes\default\Skins\View-SinglePostViewInThreadedView.ascx(110):

  S:\cs21.datatube.net\Themes\default\Skins\View-SinglePostViewInThreadedView.ascx(112):

  S:\cs21.datatube.net\Themes\default\Skins\View-ThreadRatingSummary.ascx(28):         

  S:\cs21.datatube.net\Themes\default\Skins\View-Threads.ascx(127):

  S:\cs21.datatube.net\Themes\default\Skins\View-Threads.ascx(188):

  Matching lines: 12    Matching files: 7    Total files searched: 213

 

So in each one of these files you need to comment out the line that contains this tag. For example in the first file at the top of the list (View-MyForums.ascx) you will find that on line 106 it looks like this:

 

 

<td class="ForumSubListCell">

                                                      <CSD:RatePost IsReadOnly="true" Thread='<%# (Thread) Container.DataItem %>' runat="server" CssClass="CommonRateControl" ReadOnlyCssClass="CommonRateControlReadOnly" ActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/" runat="server" />

                                                </td>

 

To comment out this line it should look like this:

 

 

<td class="ForumSubListCell">

                                                      <!--<CSD:RatePost IsReadOnly="true" Thread='<%# (Thread) Container.DataItem %>' runat="server" CssClass="CommonRateControl" ReadOnlyCssClass="CommonRateControlReadOnly" ActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/" runat="server" />-->

                                                </td>

 

Hope this helps!

 

Rick Reszler


 
Answered (Verified)
  • Post Points: 5 |

All Replies

Rick Reszler
Top 10 Contributor
4,137 Posts
Points 77,045
CS Developers
Answered (Verified) By: Rick Reszler
Posted: Wed, May 7 2008 10:48 AM In reply to

Paul,  What I did to figure this out was open a default out of the box CS 2.1 web files with Visual Studio and then located the tag in the code that runs the rating control (CSD:RatePost). Once you open a site or set of files in VS you can search the entire folder for contents of the files, it’s really awesome!

 

This is the results of the search and all these files contain the tag/line of code that renders the rating control. I only search the default themes folder for this tag.

 

Find all "CSD:RatePost", Subfolders, Find Results 1, "S:\cs21.datatube.net\Themes\default"

  S:\cs21.datatube.net\Themes\default\Skins\View-MyForums.ascx(106):

  S:\cs21.datatube.net\Themes\default\Skins\View-MyForums.ascx(151):

  S:\cs21.datatube.net\Themes\default\Skins\View-PostFlatView.ascx(64):

  S:\cs21.datatube.net\Themes\default\Skins\View-PostFlatView.ascx(90):

  S:\cs21.datatube.net\Themes\default\Skins\View-PrivateMessages.ascx(71):

  S:\cs21.datatube.net\Themes\default\Skins\View-PrivateMessages.ascx(125):

  S:\cs21.datatube.net\Themes\default\Skins\View-SinglePostView.ascx(27):

  S:\cs21.datatube.net\Themes\default\Skins\View-SinglePostViewInThreadedView.ascx(110):

  S:\cs21.datatube.net\Themes\default\Skins\View-SinglePostViewInThreadedView.ascx(112):

  S:\cs21.datatube.net\Themes\default\Skins\View-ThreadRatingSummary.ascx(28):         

  S:\cs21.datatube.net\Themes\default\Skins\View-Threads.ascx(127):

  S:\cs21.datatube.net\Themes\default\Skins\View-Threads.ascx(188):

  Matching lines: 12    Matching files: 7    Total files searched: 213

 

So in each one of these files you need to comment out the line that contains this tag. For example in the first file at the top of the list (View-MyForums.ascx) you will find that on line 106 it looks like this:

 

 

<td class="ForumSubListCell">

                                                      <CSD:RatePost IsReadOnly="true" Thread='<%# (Thread) Container.DataItem %>' runat="server" CssClass="CommonRateControl" ReadOnlyCssClass="CommonRateControlReadOnly" ActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/" runat="server" />

                                                </td>

 

To comment out this line it should look like this:

 

 

<td class="ForumSubListCell">

                                                      <!--<CSD:RatePost IsReadOnly="true" Thread='<%# (Thread) Container.DataItem %>' runat="server" CssClass="CommonRateControl" ReadOnlyCssClass="CommonRateControlReadOnly" ActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/" runat="server" />-->

                                                </td>

 

Hope this helps!

 

Rick Reszler


 
Answered (Verified)
  • Post Points: 5 |
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com