Gallery Comment Control

Last post 07-27-2011, 10:59 PM by Jeff. 3 replies.
Sort Posts: Previous Next
  •  07-22-2011, 8:45 PM 68782

    Gallery Comment Control

    How can I limit who can post a comment on a picture and how can I get them to show up as "BusinessOwner" vs "Guest?
  •  07-26-2011, 4:57 AM 68871 in reply to 68782

    Re: Gallery Comment Control

    Hi NickPowers,
     
    You can use AllowPostComment property to set GalleryBrowser can post comment or not.
     Please refer the following section code
     
    1. protected override void OnInit(EventArgs e)  
    2. {  
    3.     base.OnInit(e);  
    4.       
    5.     if(Request.IsAuthenticated)  
    6.         GalleryBrowser1.AllowPostComment = true;  
    7.     else  
    8.         GalleryBrowser1.AllowPostComment = false;     

     
    Regards,
    Jeff
  •  07-27-2011, 9:33 PM 68935 in reply to 68871

    Re: Gallery Comment Control

    Jeff,
     
    Thanks for answering but not what I was looking for.  I know about the AllowPostComment property, but that does not let me pick and choose who can add a comment.  When the Gallery is live, if allowpostcomment is true, then everyone can comment, but I only want one person to be able to comment as in, provide details about the photo at run time so the other viewers will know what the photo is about.  Maybe the comment is not the way to go and there is another part of the gallery that I can add picture information to via another property?
  •  07-27-2011, 10:59 PM 68937 in reply to 68935

    Re: Gallery Comment Control

    Hi NickPowers,
     
     You can choose who can add a comment in Init method,
    just need to replace  
    Request.IsAuthenticated to your own user identity determine method
     
    Regards,
    Jeff 
View as RSS news feed in XML