|
Member
|
hungquang_itsyad-yahoo.com
-
9/26/2012 8:54:52 PM
Can user register, create his thread
Hi all,
In my website, I want the user can register, and then create their thread. The administrator moderate this threads. After admin approve the thread show on website, the user who create this thread can edit, reply... their thread.
Have any module for this function, please help me. Thank all very much.
|
|
|
Kentico Support
|
kentico_jurajo
-
9/27/2012 2:28:29 AM
RE:Can user register, create his thread
Hi, You can use the registration web parts to let the user to register to the site and then use the forums module. Best regards, Juraj Ondrus
|
|
|
Member
|
hungquang_itsyad-yahoo.com
-
9/28/2012 12:34:37 AM
RE:Can user register, create his thread
Thank,
But I want to build a website, but isn't forums. Wesite like e-commerce site, user not only buy product,but also post your product to sell for any people.
Have any idea?
Thank!
|
|
|
Kentico Customer Success
|
kentico_martind2
-
9/28/2012 7:43:57 AM
RE:Can user register, create his thread
Hello, I suggest you to use the User contributions module for users to create a new products with description. I hope this will help you. Best regards, Martin Danko
|
|
|
Member
|
hungquang_itsyad-yahoo.com
-
10/4/2012 11:49:18 PM
RE:Can user register, create his thread
Hi, when i using Contribution list, I have an error:
Server Error in '/' Application.
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.] System.Web.UI.ControlCollection.Add(Control child) +8692295 CMS.UIControls.ContentPage.EnsureScriptManager() +193 CMS.PortalControls.PortalHelper.EnsureScriptManager(Page page) +50 CMS.PortalControls.CMSUpdatePanel.OnInit(EventArgs e) +46 System.Web.UI.Control.InitRecursive(Control namingContainer) +333 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
Version Information: Microsoft .NET Framework Version:2.0.50727.4971; ASP.NET Version:2.0.50727.4971
What's my problem?
|
|
|
Kentico Customer Success
|
kentico_martind2
-
10/5/2012 1:31:46 AM
RE:Can user register, create his thread
Hi, Have you made some modification to default methods of the Contribution list? Which version of the Kentico CMS are you running? Because actually Microsoft .NET Framework 3.5 SP1 or 4.0 or higher is required: System requirementsHave you tried searching for the error on our forums? Please check out this thread. Best regards, Martin Danko
|
|
|
Member
|
hungquang_itsyad-yahoo.com
-
10/5/2012 3:12:45 AM
RE:Can user register, create his thread
Hi, In aspx template, I using this code: <%@ Register Src="~/CMSWebParts/UserContributions/ContributionList.ascx" TagName="ContributionList" TagPrefix="uc1"%> <%@ Register Src="~/CMSWebParts/UserContributions/EditContribution.ascx" TagName="EditContribution" TagPrefix="uc2"%> <%@ Register Src="~/CMSWebParts/Viewers/Documents/cmsrepeater.ascx" TagName="cmsrepeater" TagPrefix="uc3"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<uc1:ContributionList runat="server" ID="ContributionList" AllowedChildClasses="BCC.TinTuc" DisplayList="false" AllowUsers="Authenticated" ShowForDocumentTypes="CMS.MenuItem"/> <uc2:EditContribution runat="server" ID="EditContribution" ShowForDocumentTypes="BCC.TinTuc" AllowUsers="DocumentOwner" AllowDelete="true"/> <uc3:cmsrepeater runat="server" ID="repeaterNews" ClassNames="BCC.TinTuc" TransformationName="BCC.TinTuc.Preview" SelectedItemTransformationName="BCC.TinTuc.Default"/>
</asp:Content>
When I build on IIS, it show "new document" link. I click on "new document" and it have error: Server Error in '/' Application.
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
System.Web.UI.ControlCollection.Add(Control child) +8692295 CMS.GlobalHelper.HTMLHelper.AddToHeader(Page page, String html) +100 CMS.GlobalHelper.CSSHelper.RegisterCSSLinkInternal(Page page, String url) +205 CMS.GlobalHelper.CSSHelper.RegisterCSSLinksInternal(Page page, String[] urls) +29 CMS.GlobalHelper.CSSHelper.RegisterCSSLink(Page page, String theme, String fileName) +64 CMS.GlobalHelper.CSSHelper.RegisterDesignMode(Page page) +35 CMSModules_Content_Controls_UserContributions_EditForm.OnPreRender(EventArgs e) in D:\Personal\KenticoCMS\Sources\CMSModules\Content\Controls\UserContributions\EditForm.ascx.cs:1574 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Version Information: Microsoft .NET Framework Version:2.0.50727.4971; ASP.NET Version:2.0.50727.4971
How's to fix this problem? Thank!
|
|
|
Kentico Customer Success
|
kentico_martind2
-
10/5/2012 11:43:38 AM
RE:Can user register, create his thread
Hi, This usually means that you have <% %> blocks in the header of a page or your master page. Put them in a placeholder: <asp:PlaceHolder runat="server"> <script src="<%=Page.ResolveURL("~/Scripts/jquery-1.6.2.min.js")%>" type="text/javascript"></script> <script src="<%=Page.ResolveURL("~/Scripts/jquery-ui-1.8.14.min.js")%>" type="text/javascript"></script> <script src="<%=Page.ResolveURL("~/Scripts/jquery.validate.min.js")%>" type="text/javascript"></script> </asp:PlaceHolder> You could also go through one of these articles with similar issue: 1. Asp.net by Suresh2. StackOverflowBest regards, Martin Danko
|
|
|
Member
|
hungquang_itsyad-yahoo.com
-
10/5/2012 10:54:52 PM
RE:Can user register, create his thread
<head id="Head1" runat="server"> <asp:Literal runat="server" ID="ltlTags" EnableViewState="false" /> <%= "<link href='~/App_Themes/BCC/Themes/" + Themes + "/css/default.css' type='text/css' rel='stylesheet'/>"%> <%= "<link href='~/App_Themes/BCC/Themes/" + Themes + "/css/style.css' type='text/css' rel='stylesheet'/>"%> <%= "<link href='~/App_Themes/BCC/Themes/" + Themes + "/css/ddsmoothmenu.css' type='text/css' rel='stylesheet'/>"%> <link href="~/App_Themes/BCC/css/nivo-default.css" type="text/css" rel="stylesheet"/> <link href="~/App_Themes/BCC/css/nivo-slider.css" type="text/css" rel="stylesheet"/> <link href="~/App_Themes/BCC/css/khachhang.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="~/App_Themes/BCC/js/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="~/App_Themes/BCC/js/ddsmoothmenu.js"></script> <script type="text/javascript"> ddsmoothmenu.init({ mainmenuid: "smoothmenu", //menu DIV id orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v" classname: 'ddsmoothmenu', //class added to menu's outer DIV //customtheme: ["#1c5a80", "#18374a"], contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"] }); </script> <script type="text/javascript"> $('div#text-effect').marquee('pointer').mouseover(function (event) { $(this).trigger('stop'); }).mouseout(function () { $(this).trigger('start'); }).mousedown(function (event) { $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft); }).mouseup(function () { $(this).data('drag', false); }); </script> </head>
In <head></head>, I have three link css, "Themes" is the name of theme folder. with my source code, how to fix this problem? Thank!
|
|
|
Kentico Customer Success
|
kentico_martind2
-
10/8/2012 2:42:19 AM
RE:Can user register, create his thread
Hi, In this case you should completly replace the code with some Literal control and assign the content of this control in the code behind. How to use this type of control is described for example here: www.dotnetperls.com/aspliteralI recommend you to remove the whole lines with css and <% ... %> from your code and insert them via literal in code behind, e.g: <asp:Literal runat="server" ID="myStyles" Visible="false" />
protected void Page_Load(object sender, EventArgs e) { myStyles.Text = "<link href='~/App_Themes/BCC/Themes/" + Themes + "/css/default.css' type='text/css' rel='stylesheet'/>"; }
Best regards, Martin Danko
|
|
|
Member
|
hungquang_itsyad-yahoo.com
-
10/8/2012 9:36:43 PM
RE:Can user register, create his thread
Thank you, I can using User contributions. But, I have a problem. I using a document type with field images, Attribute type = file, Form control type= Uploader, Form control = Direct uploader. When I create new document in cmsdesk, this field is ok, but i create using user contributions, can't upload image. in cmsdesk using user contributions, i can't click in it.
|
|
|
Kentico Customer Success
|
kentico_martind2
-
10/10/2012 3:41:14 AM
RE:Can user register, create his thread
Hi,
I've tested user contributions WebPart and upload works fine for me also in the different browsers. Which browser are you using and which version of Kentico? Have you applied the latest hotfix for your version please? Have you tried this logges as an administrator? Maybe the user haven't rights to upload files?
Best regards, Martin Danko
|
|
|
Member
|
hungquang_itsyad-yahoo.com
-
10/10/2012 10:08:34 PM
RE:Can user register, create his thread
Thank you, I can do it.
Thank you very much.
|
|
|