Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vitaliy 3 posts 23 karma points
    Sep 23, 2010 @ 14:49
    Vitaliy
    0

    Hi guys! 


    I have a problem with UComment. 
    I'm noob in programming, and have absolutely no idea what to do = ( 

    http://our.umbraco.org/projects/collaboration/ucomment">I installed UComment 1.1.1 and tried to do everything as described in this statement: http://our.umbraco.org/projects/collaboration/ucomment ;

    And that, I got a running form, but the list is not displayed any comments on the page or in the form Comment moderation. 

    http://oplatasc2.com/installing-runway-modules.aspx">Here's the page: http://oplatasc2.com/installing-runway-modules.aspx ;

    What is the problem? 

    http://oplatasc2.com/installing-runway-modules.aspx">Sorry for my english  

     

     

    Code: 
    RunwayMaster.master 


    <% @ Master Language = "C #" MasterPageFile = "~ / umbraco / masterpages / default.master" AutoEventWireup = "true"%> 
    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server"> 

    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"[]>"><! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Strict / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" []> 
    http://www.w3.org/1999/xhtml">"><html xmlns="http://www.w3.org/1999/xhtml"> 
      
    <head id="head" runat="server"> 
        
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
        
    <title> <asp:placeholder runat="server"> <umbraco:Item runat="server" field="pageName" /> - <umbraco: Item runat = "server" field = "siteName" recursive = "true" / > </ asp: placeholder> </ title> 
        
    <link rel="stylesheet" type="text/css" href="/css/runway.css" /> 
       
    <link rel="stylesheet" type="text/css" href="/css/RunwayFaqModule.css" /> 
      
    <script type="text/javascript" src="/umbraco_client/ui/jquery.js"> </ script> 
    <script type="text/javascript" src="ajax.microsoft.com/.../jquery.validate.min.js"> </ script> 
        

         
    </ Head> 
      
    <body> 
        
    <div id="main"> 
          
    <div id="top"> 
            
    <h1 id="siteName"> <a href="/"> <umbraco:Item runat="server" field="siteName" recursive="true" /> </ a> </ h1> 
            
    <h2 id="siteDescription"> <umbraco:Item runat="server" field="siteDescription" recursive="true" /> </ h2> 
          
    </ Div> 
           
          
    <div id="body"> 
            
    <form id="RunwayMasterForm" runat="server"> 
              
    <asp:ContentPlaceHolder ID="RunwayMasterContentPlaceHolder" runat="server"> </ asp: ContentPlaceHolder> 
            
    </ Form> 
          
    </ Div> 

          
    <div id="footer"> 
             
          
    </ Div> 
        
    </ Div> 
      
    </ Body> 
    </ Html> 
    </ Asp: content> 


    Runway Textpage 

    <% @ Master Language = "C #" MasterPageFile = "~ / masterpages / RunwayMaster.master" AutoEventWireup = "true"%> 
    <asp:Content ContentPlaceHolderID="RunwayMasterContentPlaceHolder" runat="server"> 
    <div id="content"> 
          
    <div id="contentHeader"> 
              
    <h2> <umbraco:Item runat="server" field="pageName"/> </ h2> 
          
    </ Div> 
      
    <umbraco:Item runat="server" field="bodyText" /> 
    </ Div> 

    <div id="subNavigation"> 
     
    <umbraco:Macro Alias="UCommentListComments" runat="server"> </ umbraco: Macro> 
      
    <h2> Comments! </ h2> 
      
    <umbraco:Macro RegisterScripts="1" Alias="UCommentForm" runat="server"> </ umbraco: Macro> 
    </ Div> 
    </ Asp: Content> 


    UCommentListComments.xslt 

    <? Xml version = "1.0" encoding = "UTF-8"?> 
    <! DOCTYPE xsl: stylesheet [ 
      
    <! ENTITY nbsp ""> 
    ]> 
    <Xsl: stylesheet 
      
    version = "1.0" 
      
    http://www.w3.org/1999/XSL/Transform"">xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" 
      
    xmlns: msxml = "urn: schemas-microsoft-com: xslt" 
      
    xmlns: umbraco.library = "urn: umbraco.library" 
      
    xmlns: UCommentLibrary = "urn: UCommentLibrary" 
      
    exclude-result-prefixes = "msxml umbraco.library UCommentLibrary"> 


      
    <xsl:output method="html" omit-xml-declaration="yes"/> 

      
    <xsl:param name="currentPage"/> 

      
    <xsl:template match="/"> 
       
    <xsl:variable name="comments" select="UCommentLibrary:GetCommentsForNode($currentPage/@id)//comment"/> 
        
    <xsl:if test="count($comments)> 0 "> 
          
    <h3> 
            
    <xsl:value-of select="count($comments)"/> comment <xsl:if test="count($comments)> 1 "> s </ xsl: if> for" <xsl: value-of select = "$ currentPage / @ nodeName" /> " 
          
    </ H3> 

          
    <ol class="commentlist"> 
            
    <xsl:for-each select="$comments"> 

              
    <li class="comment alt" id="comment-{@id}"> 
                
    <div class="comment-author vcard"> 
                  
    <Img class = "photo avatar avatar-32 photo" width = "32" height = "32" src = "(UCommentLibrary: getGravatar (. / Email, 40,'')}" alt =" Gravatar of (. / Name ) "/> 
                  
    <span class="fn n"> 
                    
    <xsl:choose> 
                      
    <xsl:when test="string-length(./website) = 0"> 
                          
    <xsl:value-of select="./name"/> 
                      
    </ Xsl: when> 
                      
    <xsl:otherwise> 
                          
    <a class="url url" rel="external nofollow" href="{./website}"> 
                            
    <xsl:value-of select="./name"/> 
                          
    </ A> 
                      
    </ Xsl: otherwise> 
                    
    </ Xsl: choose> 
                     
                  
    </ Span> 
                
    </ Div> 
                
    <div class="comment-meta"> 
                  
    Posted <xsl:value-of select="umbraco.library:LongDate(@created,'true',' at')"/> 
                
    </ Div> 
                
    <p> 
                  
    <xsl:value-of select="umbraco.library:ReplaceLineBreaks(./message)" disable-output-escaping="yes"/> 
                
    </ P> 

              
    </ Li> 
            
    </ Xsl: for-each> 
          
    </ Ol> 
        
    </ Xsl: if> 
      
    </ Xsl: template> 

    </ Xsl: stylesheet>

  • Johan Roug 97 posts 153 karma points
    Dec 13, 2010 @ 00:30
    Johan Roug
    0

    Are you using Umbraco with .net4 ?

Please Sign in or register to post replies

Write your reply to:

Draft