YAFLogo

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
2009-02-20T00:58:57Z
Jaben wrote:

Interestingly, I haven't applied the conversion code yet. So I'll just hold off for now. I did apply the data layer centralization changes.

No problem!

The code like this works fine. So the class will be universal for mssql & mysql,

but it will be different from postgresql one. I wanted it to work a bit more fast.

public static class SqlDataLayerConverter

+ {

+ public static int VerifyInt32(object o)

+ {

+ return Convert.ToInt32(o);

+ }

+ public static bool VeryfyBool(object o)

+ {

+ return Convert.ToBoolean(o);

+ }

+ }

It's safe and the above variant needs testing anyway.

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer Topic Starter
2009-03-04T01:03:14Z
bbobb... patched and committed. I did change the name of the function to "VerifyBool"
UserPostedImage 
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
2009-03-04T02:09:32Z
Thanks, Jaben:)

The bulk of the job is done.

The last 2 peaces are SqlInfoMessage delegates in runsql.ascx.cs and reindex.ascx.cs files, because they give out errors(matching methods in DBAccess.cs are misssing). I'll make a small patches for every data layer and publish that all because the problem is tricky for me.

If you find a way in future to move data specific functionality to YAF.Classes.Data from the above places the data layers can be fully compatable without compiling.

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
2009-03-05T08:49:44Z
A very small patch to a missing conversion for data layers compatability.

lionelhutz added patch No3. It doesn't affect my data layer, but can affect others.

The last files introduce 3 new assemblies and detailed instructions to add. They separate data layer even more almost as far as possible. Of cause, it's not a time to make such a change when new release coming soon. But may be...:roll:

This being done and the terrific SqlInfoMessage delegates problem solved, YAF 1.9.3 will be a completely other data layers friendly product and any other data layer maintanance will be very easy.

That's all :-d .

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer Topic Starter
2009-03-12T14:59:34Z
Thanks for your all your work guys!
UserPostedImage 
Jacobson
  • Jacobson
  • 57.2% (Neutral)
  • YAF Forumling
2009-03-16T19:33:17Z
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
2009-03-28T06:07:56Z
Other data layers patch.

This simply contains some extra commented extra strings for db.config and app.config.

These allow to keep all config settings in 2 common config files for all data layers with an option to uncomment respective ones.

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
2009-04-22T10:59:34Z
Patches for other data layers for new things in recent v.23xx changes.
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
2009-04-22T11:00:56Z
Patches (other data layers) for new things in recent SVN v.23xx.
hanachacha
2009-05-11T00:32:53Z
Image Auto resize [1.9.1.8]


.autoheader a:link,.autoheader a:active,.autoheader a:visited
{
    background-color:#ECFCB8;
    border:solid 1px #B2E60A;
    padding:2px;
    width:394px;
    height:auto;
    text-decoration:none;
    display:block;
}
.autoheader a:hover{color:#B2E60A;}

// JScript File

function getElementsByClass(searchClass,node,tag) {

	var classElements = new Array();
	if (node == null)
		node = document;
	if (tag == null)
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	var j = 0;
	for (i = 0; i < elsLen; i++) {
		if (pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
function AutoResizeImage()
{
    var arr=new Array();
    arr=getElementsByClass("autoresize",document,"img");
    for(var i=0;i<arr.length;i++)
    {
        if(arr[i].width>400)
        {
            var w=arr[i].width;
            var h=arr[i].height;
            arr[i].style.width=400;
            arr[i].parentNode.innerHTML="<a href=\"" + arr[i].src + "\" targer=\"_blank\">Hình gốc có kích thước là W=" + w + "px x H=" + h + "px. Click vào đây để xem hình gốc.</a>" +arr[i].parentNode.innerHTML
        }
    }
    
}

modify BBCode.cs. Find at static public string MakeHtml( yaf.pages.ForumPage basePage, string bbcode, bool DoFormatting ) and replace

NestedReplace(ref bbcode, r_img, "<img class=\"autoresize\" src=\"${http}${inner}\"/>", new string[] { "http" }, new string[] { "http://" });


NestedReplace(ref bbcode, r_img, "<span class=\"autoheader\"><img class=\"autoresize\" src=\"${http}${inner}\"/></span>", new string[] { "http" }, new string[] { "http://" });

modify Default.aspx :


<body onload="AutoResizeImage();">

View demo at : Quận Đoàn 5 

VICTOR
  • VICTOR
  • 66.8% (Friendly)
  • YAF Forumling
2009-09-14T11:38:05Z
Omg i post this before reading this forum

Theme Red & Black 

:shock:


Thank YAF.Net

this is my forum: www.thewhitechess.com 

this is my minor forum: LaughingGazForum 

halflife
2009-12-14T09:18:47Z
language vietnam for YAF v 1.9.4 RC1

http://www.mediafire.com/?mdnkn3zq5jo 

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
2009-12-14T09:39:52Z
Updated in r.3021
kambiri
  • kambiri
  • 51.2% (Neutral)
  • YAF Forumling
2010-01-29T12:25:53Z
Danish Language.

Languagefile has been viewed in YAF 1.9.4 to avoid bad translation.

herman_herman
2010-01-29T13:01:31Z
kambiri wrote:

Danish Language.

Languagefile has been viewed in YAF 1.9.4 to avoid bad translation.

Hi.Thanks

Do you mind updating the language file based on latest revision?

I have attached it.