|
Tuesday, July 21, 2009(UTC)
|
|
Thursday, July 29, 2010 9:22:06 AM(UTC)
|
67 [0.18% of all post / 0.16 posts per day] |
|
13
(View Thanks)
|
|
7
|
|
6
|
View All Posts by User
Please commit Yafmobile theme. Thanks.
|
update 15.06.2010 fixed bug with empty params Code: #region Usings
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Reflection; using System.Web; using YAF.Classes.Utils;
#endregion
namespace YAF.Classes { /// <summary> /// The dot net nuke url builder. /// </summary> public class DotNetNukeUrlBuilder : BaseUrlBuilder { #region IUrlBuilder
/// <summary> /// The build url. /// </summary> /// <param name = "url"> /// The url. /// </param> /// <returns> /// The build url. /// </returns> public override string BuildUrl(string url) { // escape & to & url = url.Replace("&", "&");
string scriptname = HttpContext.Current.Request.ServerVariables["SCRIPT_NAME"]; string tabid = HttpContext.Current.Request.QueryString["tabid"]; string builturl = string.Empty;
int tabId; if (!String.IsNullOrEmpty(tabid) && int.TryParse(tabid, out tabId)) { SimpleURLParameterParser parser = new SimpleURLParameterParser(url); builturl = parser.HasAnchor ? String.Format("{0}#{1}", GetDnnUrl(tabId, parser.Parameters), parser.Anchor) : GetDnnUrl(tabId, parser.Parameters); }
return string.IsNullOrEmpty(builturl) ? string.Format("{0}?{1}", scriptname, url) : builturl; }
#endregion
private static string GetDnnUrl(int tabId, NameValueCollection parameters) { Type globalsType = Type.GetType("DotNetNuke.Common.Globals, DotNetNuke", false); if (globalsType != null) { MethodInfo navigateUrl = globalsType.GetMethod("NavigateURL", BindingFlags.Public | BindingFlags.Static, null, new[] {typeof (int), typeof (string), typeof (string[])}, null); if (navigateUrl != null) { const string FORMAT_STR = "{0}={1}"; List<string> paramsList = new List<string>();
for (int i = 0; i < parameters.Count; i++) { string key = parameters.GetKey(i); string value = parameters[key];
if (!String.IsNullOrEmpty(key) && !String.IsNullOrEmpty(value) && !Equals(key, tabId.ToString())) paramsList.Add(String.Format(FORMAT_STR, key, value)); }
return navigateUrl.Invoke(null, new object[] {tabId, "", paramsList.ToArray()}) as string; } }
return string.Empty; } } }
|
This is my config Code:
<!-- YAF --> <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider"> <providers> <clear/> <add connectionStringName="SiteSqlServer" applicationName="DotNetNuke" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider"/> </providers> </roleManager> <profile enabled="true" defaultProvider="AspNetSqlProfileProvider" inherits="YAF.Classes.Utils.YafUserProfile"> <providers> <clear/> <add connectionStringName="SiteSqlServer" applicationName="DotNetNuke" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider"/> <add connectionStringName="SiteSqlServer" applicationName="DotNetNuke" name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider"/> </providers> </profile> <!-- End YAF -->
|
Many thanks! Waiting for release... Updated to rev. 3375 & converted to WAP DotNetNuke module http://www.megaupload.com/?d=3GWCNV2R
|
Updated to rev. 3340 DotNetNukeModule.ascx.cs http://www.megaupload.com/?d=D7XMHV4J
|
Added DotNetNuke.HtmlEditor.TelerikEditorProvider.EditorProvider
|
I think this is a new trendy spam from one of the countries of Southeast Asia
|
tha_watchaThank you for your excellent CKEditor provider for DNN YAF integration
|
Please update [dbo].[yaf_Rank] to [{databaseOwner}].[{objectQualifier}Rank] at line 5682 in procedures.sql
|
Buttons MSN, YIM, AIM, ICQ, XMPP, Skype always visible for anonymous users
|
|