Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumReduced Ratings to Five entriesReduced Ratings to Five entries
Previous
 
Next
New Post
5/10/2009 4:37 PM
 

The current ratings found in the forum has 10 entires, how can I make them just five. I tried commenting out the unwanted list which worked but on clicking the rating drop down list it shows the ratings from 1-5 but shows blank spaces for 6-10 . How can I crop these blank spaces.. Is there any index mentioned for this drop down list.

 

 

 
New Post
5/11/2009 6:56 PM
Accepted Answer 

Sorted out

 
New Post
5/12/2009 6:23 PM
 

 Gerald,

in general. if you find an answer to a question, please post it for the benefit of other (novice) users. Thank you!


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/13/2009 10:03 PM
 

Hi Sebastian,

The answer is kinda a hacky code, didnt find to post it up since dev site required more attention, anyways.. we deleted all occurence of the ratings from 6-10 that is from the vb files and the resource files and then applied this FOR lloop in post.vb which selects the rating list.

If ForumConfig.EnableRatings Then
                        ddlRating.Items.Clear()
                        Dim i As Integer
                        i = 0
                        For Each entry As DotNetNuke.Common.Lists.ListEntryInfo In colThreadRate
                            If i < 6 Then
                                Dim rateEntry As New ListItem(Localization.GetString(entry.Text, ForumControl.Config.SharedResourceFile), entry.Value)
                                Dim rateTitle As String = Utils.GetRatingTitle(entry, ForumConfig)

                                ddlRating.Items.Add(rateTitle)
                            End If
                            i = i + 1
                        Next

                        ' Get and bind current users rating
                        Dim ctlThreads As New ThreadController
                        ddlRating.SelectedIndex = ctlThreads.ThreadGetUserRating(ThreadId, LoggedOnUserID)
                    End If

This is a hacky and pretty sure there is an better way of doing this, but for now it does the trick..

 

Regards,

Gerald

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumReduced Ratings to Five entriesReduced Ratings to Five entries


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out