gravatar feature demo:
今天对本Blog(代号"SunBlog")新增了一个功能: 用户评论和
gravatar的整合, 也就是用户可通过关联自己在gravatar网站的Email获取到avatar, 从而可显示自己的头像在评论中, 这是大部分Blog应用(比如SubText,BlogEngine.NET)具有的功能(feature), 故SunBlog也考虑进来, 如此更强调用户的参与和交互, 希望大家喜欢,给予更多的反馈...

在我们开发网站时涉及到页面间数据共享的时候,我们常常需要使用某一种方式来持久化我们的数据,持久化数据的方式有许多种,这就要求我们在其中做出选择。在做开发的时候我们需要精确的选择我们使用的数据持久化方式,下面对于Application、Cookie、Session和Cache的描述或许可以帮助您作出决定
Read the rest of entry »
在DNN模块开发过程中,写存储过程可算是一个基本功,一开始你可以copy & paste, 但毕竟有些麻烦,每次都得去查找,如果你足够细心,不妨做个记录,这样省时省力,在此分享一下本人模块开发过程可能需要的SQL语句,比如如何添加字段,如何更新表结构,如何添加SQL函数,如何关联外键等等.
Read the rest of entry »
本文为转载,应该是某一开发人员翻译鼎鼎大名的scottgu的某一个帖子而来,我也找不到初始翻译者的链接,如果知道请告之,谢谢。其实这也算是我最近在开发facebook application时注意到的技巧(诀窍),在此分享之。
Read the rest of entry »
不知道大家是否用过DNN核心自带的分页控件,我想如果用过的话,也许你已碰到类似我将要提到的问题,那就是该分页控件并非像我们所想的那样,利用经典的asp.net框架中的viewstate来响应(postback)用户的操作,它其实是利用一种更为简单的方式: 用url来维护页面参数,这就使得一旦页面回发(postback), 当前页面就会回滚到原始状态,对应的页面参数也会变成初始值,这对于我们来说无疑是痛苦的。也许你不是很清楚这种状况,不妨举个例子看看, 比如你当前页面的url为:http://localhost/dnndev/tabid/65/category/23/default.aspx, 你注意到url里边存在两个参数(tabid和category), 这时如果你在使用DNN核心自带的分页控件,那对应分页控件的页码也许是类似的链接
http://localhost/dnndev/tabid/65/currentpage/4/default.aspx, 当你点击该页码时将会跳转到
http://localhost/dnndev/tabid/65/currentpage/4/default.aspx,如此一来category/23这参数也随之丢失了。这样的情况在你是纯粹靠拼字符串来激发页面变化的时候更为明显。所以整个页面的URL里边参数都需要考虑如何维护,防止误操作。深入挖掘该分页控件的代码,你会发现参数维护主要是靠QuerystringParams这一属性来维护,一般维护代码如下:
- If Not Request.Params("categoryid") Is Nothing Then
- m_sViewType = "category"
- m_oCateggory = CategoryController.GetCategory(CType(Request.Params("categoryid"), Integer))
-
- _Querystring += "categoryid=" & Request.Params("categoryid").ToString()
- End If
-
- If Not Request.Params("BlogDate") Is Nothing Then
- m_dBlogDate = CType(Date.Parse(Request.Params("BlogDate")), Date)
- _Querystring += "BlogDate=" & m_dBlogDate.ToString()
- If Not Request.Params("DateType") Is Nothing Then
- m_sViewType = Request.Params("DateType")
- _Querystring += "BlogDate=" & m_sViewType
- End If
- End If
-
-
- ctlPagingControlBottom.QuerystringParams = Querystring
This is a standard dotnetnuke module which can be use to invite friend or tell friends about the website information. Those information may be useful for the users' friends. we can call it "Email Friend" or "Invite your friends" or something similiar one. Right now it support the template engine so you can utilize the token mechanism to implement some custom defined email message. Please visit the source code in codeplex.com:
http://www.codeplex.com/Recommendation
Read the rest of entry »