+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to Customize sitefinity forum?

How to Customize sitefinity forum?

8 posts, 1 answered
  1. Thavarajah
    Thavarajah avatar
    48 posts
    Registered:
    15 Oct 2010
    22 Oct 2010
    Link to this post
    Hi Support team,

    I am trying to customize the existing sitefinity forum module according to our mocks. Basically I have couple of questions regard to this as follows.

    1.How to show all the questions form all the forum in Single page(page should look like the one provided in the sitefinity for single forum) and questions should show the images of the user who posted the question?
    2. How to show all the post particular to a user and to others?
    3. I need to remove labels category,Forum title and the links like Back to all thread,New Thread

    Any help appreciated.

    Thanks,
    Vimal


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Oct 2010
    Link to this post
    Hello Thavarajah,

    1.How to show all the questions form all the forum in Single page(page should look like the one provided in the sitefinity for single forum) and questions should show the images of the user who posted the question?


    There is no difference between post, question and answer. If you want to specify which post is a question and which is an answer and which is a just a regular post you have to create a custom persistence class.

    2. How to show all the post particular to a user and to others?

    There is a method of the ForumManger - GetPostsByAuthor() that you can use.

    3.I need to remove labels category,Forum title and the links like Back to all thread,New Thread

    You can modify the forum public templates from Sitefinit/ControlTemplates/Forums

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Thavarajah
    Thavarajah avatar
    48 posts
    Registered:
    15 Oct 2010
    22 Oct 2010
    Link to this post
    Thanks Ivan,

    I working on to create a custom control which shows all the posts from all the forum categories using ForumManager class. if you can please help me on how I can bind all the posts which are available in the DB to a Repeater?

    another one : how I can get all the replies for a post?

    Thanks in Advance,
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Oct 2010
    Link to this post
    Hello Thavarajah,

    1. You need t get all Forums by using GetForums method
    2. You have to get all posts per forum by using GetPosts

    Another option is returning all posts by using GetRecentPosts(int start, int max)

    You can get all replies of a thread/post by using GetPosts(Guid parentID, bool descending, bool visibleOnly) method.

    You can gather more information at our Developers Manual - Forums API

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  5. Thavarajah
    Thavarajah avatar
    48 posts
    Registered:
    15 Oct 2010
    23 Oct 2010
    Link to this post
    Thanks for your prompt reply.

    I have another thing.
    I want to display images of the user who posted the post in front of each thread(Like FaceBook).
    how to upload images for user?
    I just wanted to check whether is there any out of the box features provided in Sitefinity

    Thank you advance.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    24 Oct 2010
    Link to this post
    Hello Thavarajah,

    Each user can upload an image for his/her profile. Then you can access the profile data and show the image as described in this forum post.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Thavarajah
    Thavarajah avatar
    48 posts
    Registered:
    15 Oct 2010
    26 Oct 2010
    Link to this post
    Thanks for the reply..

    This post also helpful ...
    http://www.sitefinity.com/devnet/forums/sitefinity-3-x/developing-with-sitefinity/profile-photo-or-default-avatar.aspx

    One more thing, Just for testing I jst wanted to test display of images for different user. I wanted to upload images for users .. how I can do it?

    Do I need to create a user profile ?

    Thanks.
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Oct 2010
    Link to this post
    Hi Thavarajah,

    You need to have profiles or associate the users with an image from Image and Documents module.You could create a custom metakey for Images and Documents module and use it to type the name of a user. Then you can get the image from Images and Documents module through the API and show it for the current user.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
8 posts, 1 answered