//public static string GetModeratorCenterManageRoleUrl(string codeName, string action, int roleID) //{ // return string.Empty; // //string forumUrl = UrlManager.GetFriendlyUrl("ModeratorCenter.html?CodeName={0}&action={1}&RoleID={2}"); // //return string.Format(forumUrl, codeName, action, roleID); //} /// <summary> /// 获得版主管理中心的url /// </summary> /// <param name="type">type of SystemForum</param> /// <param name="codeName"></param> /// <param name="action"></param> /// <returns></returns> public static string GetModeratorCenterUrl(SystemForum type, string codeName, string action) { return(GetThreadManagerUrl(codeName, action, type.ToString())); //return BbsRouter.GetUrl(string.Format("moderatorcenter/code-{0}/action-{1}/type-{2}", codeName, action, type.ToString())); //string forumUrl = UrlManager.GetFriendlyUrl("ModeratorCenter.html?type={0}&CodeName={1}&action={2}"); //return string.Format(forumUrl, type.ToString(), codeName, action); }
public static string GetSystemForumUrlForPager(SystemForum systemForumType, string codeName) { return(BbsRouter.GetUrl(string.Format("systemforum/{0}/code-{1}/{2}", systemForumType.ToString(), codeName, "{0}"))); //string forumUrl = UrlManager.GetFriendlyUrl("ShowSystemForum.html?type={0}&Codename={1}&page={2}", true); //return string.Format(forumUrl, systemForumType.ToString(), codeName, "{0}"); }
//public static string GetSystemForumUrl(SystemForum systemForumType, string forumCodeName) //{ // int forumID = ForumManager.GetForumID(forumCodeName); // return GetSystemForumUrl(systemForumType,forumID); //} //public static string GetSystemForumUrl(SystemForum systemForumType, string forumIDString) //{ // return UrlManager.GetFriendlyUrl("ShowSystemForum.html?type=" + systemForumType.ToString() + "&ForumID=" + forumIDString); //} public static string GetSystemForumUrl(SystemForum systemForumType, string codeName) { return(BbsRouter.GetUrl(string.Format("{0}/{1}-1", codeName, systemForumType.ToString()))); //return string.Format(UrlManager.GetFriendlyUrl("ShowSystemForum.html?type={0}&Codename={1}", true), systemForumType.ToString(), codeName); }
public static string GetSystemForumUrl(SystemForum systemForumType) { return(BbsRouter.GetUrl(string.Format("systemforum/{0}", systemForumType.ToString()))); //return string.Format(UrlManager.GetFriendlyUrl("ShowSystemForum.html?type={0}", true), systemForumType.ToString()); }
//public static string GetModeratorCenterManageRoleUrl(string codeName, string action, int roleID) //{ // return string.Empty; // //string forumUrl = UrlManager.GetFriendlyUrl("ModeratorCenter.html?CodeName={0}&action={1}&RoleID={2}"); // //return string.Format(forumUrl, codeName, action, roleID); //} /// <summary> /// 获得版主管理中心的url /// </summary> /// <param name="type">type of SystemForum</param> /// <param name="codeName"></param> /// <param name="action"></param> /// <returns></returns> public static string GetModeratorCenterUrl(SystemForum type, string codeName, string action) { return GetThreadManagerUrl(codeName, action, type.ToString()); //return BbsRouter.GetUrl(string.Format("moderatorcenter/code-{0}/action-{1}/type-{2}", codeName, action, type.ToString())); //string forumUrl = UrlManager.GetFriendlyUrl("ModeratorCenter.html?type={0}&CodeName={1}&action={2}"); //return string.Format(forumUrl, type.ToString(), codeName, action); }
public static string GetSystemForumUrlForPager(SystemForum systemForumType, string codeName) { return BbsRouter.GetUrl(string.Format("systemforum/{0}/code-{1}/{2}", systemForumType.ToString(), codeName,"{0}")); //string forumUrl = UrlManager.GetFriendlyUrl("ShowSystemForum.html?type={0}&Codename={1}&page={2}", true); //return string.Format(forumUrl, systemForumType.ToString(), codeName, "{0}"); }
//public static string GetSystemForumUrl(SystemForum systemForumType, string forumCodeName) //{ // int forumID = ForumManager.GetForumID(forumCodeName); // return GetSystemForumUrl(systemForumType,forumID); //} //public static string GetSystemForumUrl(SystemForum systemForumType, string forumIDString) //{ // return UrlManager.GetFriendlyUrl("ShowSystemForum.html?type=" + systemForumType.ToString() + "&ForumID=" + forumIDString); //} public static string GetSystemForumUrl(SystemForum systemForumType, string codeName) { return BbsRouter.GetUrl(string.Format("{0}/{1}-1", codeName, systemForumType.ToString())); //return string.Format(UrlManager.GetFriendlyUrl("ShowSystemForum.html?type={0}&Codename={1}", true), systemForumType.ToString(), codeName); }
public static string GetSystemForumUrl(SystemForum systemForumType) { return BbsRouter.GetUrl(string.Format("systemforum/{0}", systemForumType.ToString())); //return string.Format(UrlManager.GetFriendlyUrl("ShowSystemForum.html?type={0}", true), systemForumType.ToString()); }