Welcome Guest! To enable all features please Login or Register.
3 Pages<123>
Options
View
Go to last post Go to first unread
Offline bbobb  
#16 Posted : Thursday, February 19, 2009 6:58:57 PM(UTC)
bbobb


Rank: YAF Developer

Reputation:

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for a YAF Database Key Player: Holds the key to YAF database. Bow down!Medal of Honor for the Support King: Given for answering tons of support questions and generally helping the community.Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.

Joined: 10/21/2008(UTC)
Posts: 1,558
Man
Russian Federation
Location: Moscow

Thanks: 51 times
Was thanked: 288 time(s) in 254 post(s)
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.

Edited by user Saturday, February 28, 2009 12:44:18 AM(UTC)  | Reason: Not specified

File Attachment(s):
Offline Jaben  
#17 Posted : Tuesday, March 3, 2009 7:03:14 PM(UTC)
Jaben


Rank: YAF Developer

Reputation:

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.YAF.NET Supporter: Loves YAF.NET!YAF.NET Supporter: Supports our efforts. Thank you.Medal of Honor for the Support King: Given to a community member who tirelessly answers tons of support questions.

Joined: 10/9/2004(UTC)
Posts: 2,549
Location: United States

Thanks: 142 times
Was thanked: 358 time(s) in 199 post(s)
bbobb... patched and committed. I did change the name of the function to "VerifyBool"
Offline bbobb  
#18 Posted : Tuesday, March 3, 2009 8:09:32 PM(UTC)
bbobb


Rank: YAF Developer

Reputation:

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for a YAF Database Key Player: Holds the key to YAF database. Bow down!Medal of Honor for the Support King: Given for answering tons of support questions and generally helping the community.Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.

Joined: 10/21/2008(UTC)
Posts: 1,558
Man
Russian Federation
Location: Moscow

Thanks: 51 times
Was thanked: 288 time(s) in 254 post(s)
Thanks, JabenSmile
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.

Offline bbobb  
#19 Posted : Thursday, March 5, 2009 2:49:44 AM(UTC)
bbobb


Rank: YAF Developer

Reputation:

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for a YAF Database Key Player: Holds the key to YAF database. Bow down!Medal of Honor for the Support King: Given for answering tons of support questions and generally helping the community.Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.

Joined: 10/21/2008(UTC)
Posts: 1,558
Man
Russian Federation
Location: Moscow

Thanks: 51 times
Was thanked: 288 time(s) in 254 post(s)
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...Rolling Eyes
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 Very Happy .

Edited by user Wednesday, March 11, 2009 10:59:56 PM(UTC)  | Reason: Add a patch

File Attachment(s):
YAF_DataLayer_DeepSeparation.zip (325kb) downloaded 97 time(s).
Offline Jaben  
#20 Posted : Thursday, March 12, 2009 8:59:34 AM(UTC)
Jaben


Rank: YAF Developer

Reputation:

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.YAF.NET Supporter: Loves YAF.NET!YAF.NET Supporter: Supports our efforts. Thank you.Medal of Honor for the Support King: Given to a community member who tirelessly answers tons of support questions.

Joined: 10/9/2004(UTC)
Posts: 2,549
Location: United States

Thanks: 142 times
Was thanked: 358 time(s) in 199 post(s)
Thanks for your all your work guys!
Offline Jacobson  
#21 Posted : Monday, March 16, 2009 1:33:17 PM(UTC)
Jacobson

Rank: Member

Reputation:

Joined: 3/13/2009(UTC)
Posts: 12

Offline bbobb  
#22 Posted : Saturday, March 28, 2009 12:07:56 AM(UTC)
bbobb


Rank: YAF Developer

Reputation:

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for a YAF Database Key Player: Holds the key to YAF database. Bow down!Medal of Honor for the Support King: Given for answering tons of support questions and generally helping the community.Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.

Joined: 10/21/2008(UTC)
Posts: 1,558
Man
Russian Federation
Location: Moscow

Thanks: 51 times
Was thanked: 288 time(s) in 254 post(s)
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.

Edited by user Saturday, March 28, 2009 12:10:04 AM(UTC)  | Reason: Not specified

File Attachment(s):
controls_names_for_all_data_layers.patch.zip (2kb) downloaded 91 time(s).
Offline bbobb  
#23 Posted : Wednesday, April 22, 2009 4:59:34 AM(UTC)
bbobb


Rank: YAF Developer

Reputation:

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for a YAF Database Key Player: Holds the key to YAF database. Bow down!Medal of Honor for the Support King: Given for answering tons of support questions and generally helping the community.Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.

Joined: 10/21/2008(UTC)
Posts: 1,558
Man
Russian Federation
Location: Moscow

Thanks: 51 times
Was thanked: 288 time(s) in 254 post(s)
Patches for other data layers for new things in recent v.23xx changes.
Offline bbobb  
#24 Posted : Wednesday, April 22, 2009 5:00:56 AM(UTC)
bbobb


Rank: YAF Developer

Reputation:

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for a YAF Database Key Player: Holds the key to YAF database. Bow down!Medal of Honor for the Support King: Given for answering tons of support questions and generally helping the community.Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.

Joined: 10/21/2008(UTC)
Posts: 1,558
Man
Russian Federation
Location: Moscow

Thanks: 51 times
Was thanked: 288 time(s) in 254 post(s)
Patches (other data layers) for new things in recent SVN v.23xx.
File Attachment(s):
extra_dls_23xxfixes.patch.zip (2kb) downloaded 92 time(s).
Offline hanachacha  
#25 Posted : Sunday, May 10, 2009 6:32:53 PM(UTC)
hanachacha

Rank: Member

Reputation:

Joined: 10/22/2008(UTC)
Posts: 11

Image Auto resize [1.9.1.8]
Code:

.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://" });
Code:

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


modify Default.aspx :

Code:

<body onload="AutoResizeImage();">



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

Edited by user Tuesday, May 12, 2009 2:02:03 PM(UTC)  | Reason: Not specified

Offline VICTOR  
#26 Posted : Monday, September 14, 2009 5:38:05 AM(UTC)
VICTOR

Rank: Member

Reputation:

Joined: 9/14/2009(UTC)
Posts: 28

Thanks: 1 times
Was thanked: 2 time(s) in 1 post(s)
Omg i post this before reading this forum
Theme Red & Black

Shocked
Thank YAF.Net
this is my forum: www.thewhitechess.com
this is my minor forum: LaughingGazForum
Offline halflife  
#27 Posted : Monday, December 14, 2009 3:18:47 AM(UTC)
halflife


Rank: YAF Forumling

Reputation:

Joined: 11/19/2009(UTC)
Posts: 5

language vietnam for YAF v 1.9.4 RC1
http://www.mediafire.com/?mdnkn3zq5jo

Edited by user Monday, December 14, 2009 9:45:01 AM(UTC)  | Reason: Not specified

File Attachment(s):
vietnam.rar (15kb) downloaded 88 time(s).
Offline bbobb  
#28 Posted : Monday, December 14, 2009 3:39:52 AM(UTC)
bbobb


Rank: YAF Developer

Reputation:

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for a YAF Database Key Player: Holds the key to YAF database. Bow down!Medal of Honor for the Support King: Given for answering tons of support questions and generally helping the community.Medal of Honor for the Support Knight: Given to a community member who has answered lots of support questions.

Joined: 10/21/2008(UTC)
Posts: 1,558
Man
Russian Federation
Location: Moscow

Thanks: 51 times
Was thanked: 288 time(s) in 254 post(s)
Updated in r.3021
Offline kambiri  
#29 Posted : Friday, January 29, 2010 6:25:53 AM(UTC)
kambiri


Rank: YAF Forumling

Reputation:

Joined: 1/29/2010(UTC)
Posts: 2

Danish Language.

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

File Attachment(s):
danish.xml (69kb) downloaded 101 time(s).
Offline herman_herman  
#30 Posted : Friday, January 29, 2010 7:01:31 AM(UTC)
herman_herman


Rank: YAF MVP

Reputation:

Medals: Medal of Honor for the SQL Scout: Medal for kicking ass at SQL and helping with database development.Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for The Eyes of the Community: Given for being a community hawk, always watching and helping fellow users.

Joined: 5/18/2007(UTC)
Posts: 529
Man
Iran (Islamic Republic Of)

Thanks: 72 times
Was thanked: 47 time(s) in 38 post(s)
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.


Edited by user Friday, January 29, 2010 7:11:40 AM(UTC)  | Reason: Not specified

File Attachment(s):
danish.xml (81kb) downloaded 103 time(s).
Half of my life was elapsed in front of monitors, waiting for progress bars to reach their 100%.
Rss Feed  Atom Feed
Users browsing this topic
3 Pages<123>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error