'전체 글'에 해당되는 글 142건

  1. 2019.10.14 WordPress 플러그인
  2. 2019.10.14 WordPress 테마
  3. 2019.10.14 remove comments with C#
  4. 2019.10.14 excel upload faster
Tools/WordPress2019. 10. 14. 00:42
728x90

WordPress 플러그인

 

1. 플러그인사이드
- https://wordpress.org/plugins/

 

2. 주요 플러그인
1) 일반 플러그인
- Arkismet : 댓글 스팸을 방지한다. 무료서비스 가능.
- Category Order : 카테고리 순서를 정리할 수 있다.
. 추가하면 "글 > Category Order" 메뉴가 생긴다.
- Custom Taxonomy Order : 사용자 정의 글 타입의 순서를 조정할 수 있다. 테마에 따라 POST(글), Page 외에 새로운 타입이 추가되는데 이른 글 순서를 조정한다. (예: 슬라이터, 포트폴리오, 이벤트...)
. 추가하면 "Term Order" 메뉴가 생긴다.
- Post Types Order : Post(글) 를 정렬할 수 있다.
. 추가하면 "설정 > Post Types Order" 메뉴가 생긴다.
. 권한을 관리자로 변경해야 함.
- WP-PageNavi : 네비게이션바를 제공한다.
. 추가하면 "설정 > 페이지네비" 메뉴가 생긴다.
- WPtouch Mobile Plugin : 워드프레스의 모바일 화면을 제공한다.
. 추가하면 "WPtouch" 메뉴가 생긴다.
- AZIndex : 글목록을 뽑아 제공한다. (2015.9 현재 워드프레스에서 추가한 플러그인 목록을 생성하지 못함.)
. 추가하면 "도구 > AZIndex" 메뉴가 생긴다.
. 인덱스 생성시 "National Language Support: > Turn on additional support for national languages" 체크해야 한글이 지원된다.
- AVH Extended Categories Widgets : 고급 카테고리 관리 기능. 원하는 카테고리만 표시하거나 그룹핑 기능 지원.
. 추가하면 "AVH Extended Categories" 메뉴가 생긴다.
. 메뉴 "외모 > 위젯"에서 항목을 선택하고, 설정값에서 "Selected ..." 또는 "Exclude ..." 를 선택해서 해당 카테고리만 표시한다.
- Yet Another Related Posts Plugin (YARPP) : 관련글을 자동으로 표시한다.
. 추가하면 "설정 > YARPP" 메뉴가 생긴다.
- Crayon Syntax Highlighter : 프로그래밍 언어 코드를 보기좋게 표시한다.
. 추가하면 "설정 > Crayon" 메뉴가 생긴다.
. 글을 작성할 때 아이콘 "<>" 선택 시 코드를 등록하는 팝업을 제공한다.
- Print Friendly and PDF Button : 프린터 출력 or PDF 변환.
. 추가하면 "설정 > Print Friendly & PDF" 메뉴가 생긴다.
- WP-Note : 글 작성 시 글상자 태그 제공.
- WP CleanFix : 데이터베이스의 쓰레기 정보 관리.
- Theme Authenticity Checker (TAC) : 무료 테마프로그램을 점검한다. 피싱링크나 static 링크, 정체불명의 암호화된 코드를 점검한다.

2) SNS 플러그인
- Disqus : SNS 와 댓글을 연동한다.
- WP Tweet Button : "트위트"와 연동한다.
- Wordpress Connect : "페이스북"과 연동한다.
- Instapress : "인스타그램"과 사진을 연동한다.

3) 멀티미디어 플러그인
- picasa express : 피카사 사진 연동. 피카사에서 "구글 포토" 사진도 검색이 가능한 듯 합니다.
- WP YouTube Player : 유튜브와 동연상을 연동한다.
. 유튜브에서 소스 복사해서 사용해도되고, 플러그인 설치 후 유튜브ID를 만 복사 후 간략한 태그로 연동가능함.
- SlideShare for WordPress : SlideShare는 파워포인트나 키노트, PDF 문서를 쉽게 공유하는 서비스로 해당 서비스와 연동합니다.

4) 웹사이트 연계 플러그인
- Feedburner : RSS 구독에 대한 통계를 확인할 수 있다. (feedburner.google.com)
. 통계를 feedburner.google.com 에서 확인할 수 있고,
. 새글 소식을 이메일로 제공할 수 있다. feedburner 사이트에서 "Email Subscriptions" 코드를 "워드프레스" 의 "위젯 > 텍스트"에 넣으면,
메일 구독 화면을 제공하고, 등록한 사용자에게 새로운 소식을 feedburner 사이트에서 메일로 발생한다.
- Contact Form 7 : Contact 화면을 제공한다. 일부 포탈에는 메일 전송이 안되는듯.
- Google Analytics for WordPress : 웹사이트 통계 분석.
. https://www.google.com/analytics 에 가입.
- Google Analytics Dashboard for WP : 웹사이트 통계 분석.
- WP Simple Adsense Insertion (wp-insert) : 구글 애드센드 광고 설치.
- All-in-One Event Calendar : 구글 캘린더를 표시한다.
. 추가하면 "Events" 메뉴가 생긴다. Events > Organize 에서 카테고리 추가 후, Calendar Feeds 에서 goolge 칼렌드의 ical 값을 등록한다.
- Comprehensive Google Map Plugin : 구글맵을 연동한다.
. 추가하면 "Google Map" 메뉴가 생긴다.
. "Google Map > Settings" 메뉴에서 "Shortcode builder under default post/page HTML WYSIWYG editor?"을 Vsisible로 체크하면 글편집기에서 구글맴을 사용할 수 있다.

 

end.

728x90

'Tools > WordPress' 카테고리의 다른 글

WordPress 테마  (0) 2019.10.14
Posted by 하루y
Tools/WordPress2019. 10. 14. 00:41
728x90

WordPress 테마

 

1. 테마구성
1) 화면 = 테마 + 플러그인
- 같은 기능에 대해서 테마와 플러그인의 차이는 플러그인은 테마와 무관하게 서비스 할 수 있는 장점이 있다.
2) 화면 구성 = 헤더(header.php) + 본문(index.php) + 사이드바(sidebar.php) + 푸터(footer.php)
. 헤더 : 로고, 내비게이션
. 본문 : 포스트글, 목록, 슬라이드, 포트폴리오
. 사이드바 : 다양한 위젯
. 푸터 : 푸터위젯, 저작권(copyright)
3) 워드프레스 구성요소 = php & html, css, MySQL
4) 기본파일 구성
- header.php
- index.php
- sidebar.php
- footer.php
- style.css

 

2. 테마설치
1) 알림판에서 자동검색해서 설치. 검증된 무표 테마를 제공한다.
2) 직접 다운받은 파일을 알림판엣 업로드하여 설치한다. 일림판에서 제공하는 않는 테마인 경우.
- 테마압축파일: 업로드해서 설치할 수 있다.
- 테마패키지파일: 패키지에 테마압축파일, 설명서, 여러 자원이 포함되어 있다. 압축해제후 테마압축파일만 업로드해야 한다.
3) 직접 다운받은 파일을 FTP로 업로드하여 설치한다. ~/wp-content/themes/ 디렉토리에 설치한다.

 

3. 무표테마 제공 사이트
- 유료로 판매하는 테마사이트에서 제공하는 무료테마를 받아서 설치한다.
- http://themeforest.net/category/wordpress 테마-오픈마켓
- http://codecanyon.net/category/wordpress 플러그인-오픈마켓
- http://www.woothemes.com/
- http://www.wpzoom.com/ 매거진 테마를 전문으로 제작.
- http://www.elegantthemes.com/ 1년 회원제로 운영. 유료 테마 제작사중 저렴한 편.
- http://templatic.com/ 특이한 테마 제공. 도서소개, 구인구직, 지역정보...
- http://www.studiopress.com/ 비즈니스 테마에 강점.
- http://www.pagelines.com/ Drag&Drop방식의 레이아웃을 구성할 수 있는 테마 프레임워크 제공.

 

end.

728x90

'Tools > WordPress' 카테고리의 다른 글

WordPress 플러그인  (0) 2019.10.14
Posted by 하루y
Programming Language/C#2019. 10. 14. 00:34
728x90

 

# remove comments with C#

  1. Remove comments
  2. Maintain line number
using System;
using System.Text;
using System.Windows.Forms;

namespace WFRemoveComment
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnRemoveComment_Click(object sender, EventArgs e)
        {
            string s = System.IO.File.ReadAllText(@"C:\workspace_cs\WindowsFormsApp1\WindowsFormsApp1\Form1.cs");
        
            this.rtxText1.Text = s;
            this.rtxText2.Text = removeComment(s);
        }

        public static string removeCommentStyleJava(string s)
        {
            char lineCommentChar1 = '/';
            char lineCommentChar2 = '/';

            return removeComment(s, lineCommentChar1, lineCommentChar2);
        }

        public static string removeCommentStyleSql(string s)
        {
            char lineCommentChar1 = '-';
            char lineCommentChar2 = '-';

            return removeComment(s, lineCommentChar1, lineCommentChar2);
        }

        public static string removeComment(string s, char lineCommentChar1 = '/', char lineCommentChar2 = '/')
        {
            StringBuilder endResult = new StringBuilder(1000);

            const int outsideComment = 0;
            const int insideLineComment = 1;
            const int insideblockComment = 2;
            
            int currentState = outsideComment;
            if(s == null)
            {
                return endResult.ToString();
            }
            
            char c = (char) 0;
            char c2 = (char)0;
            for(int i = 0, cnt = s.Length; i < cnt; i++)
            {
                c = s[i];
                switch (currentState)
                {
                    case outsideComment:
                        if (c == lineCommentChar1 && (i+1) < cnt)
                        {
                            c2 = s[++i]; // 다음건 read
                            if (c2 == lineCommentChar2)
                                currentState = insideLineComment;
                            else if (c2 == '*')
                                currentState = insideblockComment;
                            else
                                endResult.Append(c).Append(c2);
                        }
                        else
                            endResult.Append(c);
                        break;
                    case insideLineComment:
                        if (c == '\r')
                            endResult.Append(c);

                        if (c == '\n')
                        {
                            currentState = outsideComment;
                            endResult.Append(c);
                        }
                        break;
                    case insideblockComment:
                        if (c == '\r' || c == '\n')
                            endResult.Append(c);

                        if (c == '*' && (i+1) < cnt)
                        {
                            c2 = s[++i]; // 다음건 read
                            if (c2 == '/')
                            {
                                currentState = outsideComment;
                                break;
                            }
                        }
                        break;
                } // end of switch
            } // end of for

            return endResult.ToString();
        }
    }
}

 

 

end.

728x90

'Programming Language > C#' 카테고리의 다른 글

[펌] Correlation of two arrays in C#  (0) 2020.02.06
ChartFX Help  (0) 2020.01.19
excel upload faster  (0) 2019.10.14
c# 관련사이트  (0) 2019.10.14
Highlight Textbox  (0) 2019.10.14
Posted by 하루y
Programming Language/C#2019. 10. 14. 00:33
728x90

참조사이트

Normal ConnectionString : (work for xls files)

Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended Properties=\"Excel 8.0;HDR=YES;\""

Office 2007 ConnectionString : (work for xlsx files)

Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties=\"Excel 12.0;HDR=YES;\""

 

private void UseOlebForLoadExcel()
{
	string filePath = "C:\\99.download\\샘플.xlsx";

	int nOutputRow = 0;
	string sSheetName = null;
	string sConnection = null;
	DataTable dtTablesList = default(DataTable);
	OleDbCommand oleExcelCommand = default(OleDbCommand);
	OleDbDataReader oleExcelReader = default(OleDbDataReader);
	OleDbConnection oleExcelConnection = default(OleDbConnection);


	sConnection = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source="+ filePath + ";Extended Properties=\"Excel 12.0;HDR=No;IMEX=1\"";

	oleExcelConnection = new OleDbConnection(sConnection);
	oleExcelConnection.Open();

	dtTablesList = oleExcelConnection.GetSchema("Tables");

	if (dtTablesList.Rows.Count > 0)
	{
		SheetName = dtTablesList.Rows[0]["TABLE_NAME"].ToString();
	}

	dtTablesList.Clear();
	dtTablesList.Dispose();

	if (!string.IsNullOrEmpty(sSheetName))
	{
		oleExcelCommand = oleExcelConnection.CreateCommand();
		oleExcelCommand.CommandText = "Select * From [" + sSheetName + "]";
		oleExcelCommand.CommandType = CommandType.Text;
		oleExcelReader = oleExcelCommand.ExecuteReader();
		nOutputRow = 0;

		while (oleExcelReader.Read())
		{
			// reader.GetDouble(0);
			var index = grid.Rows.Add();
			grid.Rows[index].Cells["filePath"].Value = oleExcelReader.GetString(0);
			grid.Rows[index].Cells["fileName"].Value = oleExcelReader.GetString(0);
			grid.Rows[index].Cells["lineNo"].Value = oleExcelReader.GetString(0);
			grid.Rows[index].Cells["fileCnts"].Value = oleExcelReader.GetString(0);
		}
		oleExcelReader.Close();
	}
	oleExcelConnection.Close();
}
728x90

'Programming Language > C#' 카테고리의 다른 글

ChartFX Help  (0) 2020.01.19
remove comments with C#  (0) 2019.10.14
c# 관련사이트  (0) 2019.10.14
Highlight Textbox  (0) 2019.10.14
Visual Studio Installer 를 이용한 배포(Deployment)  (0) 2019.10.14
Posted by 하루y