KBoard를 버디프레스와 연동시키고 싶습니다.

KBoard(케이보드)에서 글쓴이의 닉네임을 클릭하면

버디프레스의 개인 페이지로 이동되게 하고 싶습니다.

 

https://www.cosmosfarm.com/threads/document/7322 이 글을 참조해봤는데 업데이트 버전이 달라서 그런지. 어떻게 해야할지 모르겠습니다.

/kboard/skin/list.php 와 documents.php 에서 어떤 코드를 어떻게 변경해야할까요? 

자세히 알려주시면 매우 감사하겠습니다.

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
  • 안녕하세요~^^

    최신 버전의 KBoard 플러그인을 사용 중이시라면

    워드프레스 관리자 -> 외모 -> 테마 편집기 페이지에서 functions.php 파일 하단에

    아래의 코드를 추가해보시겠어요?

    add_filter('kboard_user_display', 'my_kboard_user_display', 10, 5);
    function my_kboard_user_display($display, $user_id, $username, $plugin, $builder){
    	if(is_user_logged_in()){
    		if($user_id && $user_id != get_current_user_id()){
    			$display = sprintf('<a href="%s" title="프로필">%s</a>', bp_core_get_user_domain($user_id), $display);
    		}
    	}
    	return $display;
    }

    고맙습니다.

  • 아.. 위에 플로팅 메뉴가 깨져버리면서 사이트 전체가 이상하게 되어버렸어요.

      다시 수정도 안되서  백업 조치해서 겨우 살렸네요.  전체 테마 수정 말고 다른 방법은 없을까요??

  • 말씀하신 버디프레스는 BuddyPress 플러그인이 맞는지요?

    올려주신 내용만으로는 원인을 파악할 수 없습니다.

    KBoard 플러그인은 최신 버전인지요?

    최신 버전이라면 해당 코드를 적용하신 후에 디버그 모드를 활성화해서

    어떤 오류를 표시하는지도 확인해보셔야 할 듯합니다.

    워드프레스 에러 확인하기 - 디버그 모드 활성화 방법

     

    수정하신 코드가 바로 적용이 되지 않는 이유는 브라우저 캐시 문제일 수도 있습니다.

    코드를 수정을 하신 후에는 브라우저의 캐시를 비우신 후에 확인해보세요.

    크롬 브라우저에서 캐시를 비우시려면 강력 새로고침을 해보세요.

    단축키는 Ctrl + Shift + R입니다.

    고맙습니다.

  • 네 buddypress 플러그인 맞아요. 어제 kboard 플러그인 최신버전으로 업데이트했어요. 브라우저 캐시 비우고 해도 똑같이 오류가 나네요.. kboard 플러그인 업데이트 전에는 위에 글올려주신분 방법으로 수정해서 정상적으로 사용이 되었었어요. 디버그 로그는 이렇게 나오는데요;; [25-Jul-2018 05:21:41] PHP Notice: Undefined index: m in /home/hosting_users/chatwithkorean/www/wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php on line 50 [25-Jul-2018 05:21:41] PHP Notice: Undefined index: action in /home/hosting_users/chatwithkorean/www/wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php on line 86 [25-Jul-2018 05:21:41] PHP Notice: Undefined index: action in /home/hosting_users/chatwithkorean/www/wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php on line 86 [25-Jul-2018 05:21:41] PHP Notice: Undefined index: pinglist in /home/hosting_users/chatwithkorean/www/wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php on line 87 [25-Jul-2018 05:21:41] PHP Notice: Undefined index: syndi_api_mode in /home/hosting_users/chatwithkorean/www/wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php on line 88 [25-Jul-2018 05:21:41] PHP Notice: Undefined index: list in /home/hosting_users/chatwithkorean/www/wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php on line 90 [25-Jul-2018 05:21:41] PHP Notice: Undefined index: st in /home/hosting_users/chatwithkorean/www/wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php on line 91 [25-Jul-2018 05:21:41] PHP Notice: Undefined property: Lava_Directory_Manager::$admin in /home/hosting_users/chatwithkorean/www/wp-content/plugins/lava-directory-manager/includes/class-core.php on line 563 [25-Jul-2018 05:21:41] PHP Notice: The called constructor method for WP_Widget in AjaxSearchProWidget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /home/hosting_users/chatwithkorean/www/wp-includes/functions.php on line 3916 [25-Jul-2018 05:21:41] PHP Notice: The called constructor method for WP_Widget in AjaxSearchProLastSearchesWidget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /home/hosting_users/chatwithkorean/www/wp-includes/functions.php on line 3916 [25-Jul-2018 05:21:41] PHP Notice: The called constructor method for WP_Widget in AjaxSearchProTopSearchesWidget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /home/hosting_users/chatwithkorean/www/wp-includes/functions.php on line 3916 [25-Jul-2018 05:21:42] PHP Notice: Constant EMPTY_TRASH_DAYS already defined in /home/hosting_users/chatwithkorean/www/wp-config.php on line 90 [25-Jul-2018 05:21:42] PHP Notice: Constant WP_POST_REVISIONS already defined in /home/hosting_users/chatwithkorean/www/wp-config.php on line 93
  • 표시된 메시지를 보니 KBoard 플러그인 쪽에는 문제가 없는 듯합니다.

    잠시 다른 테마로 바꿔서 확인해보시고 다른 플러그인을 모두 비활성화한 후에도 확인해보시겠어요?

    테마나 다른 플러그인에 문제가 없다면

    저희 고객지원 쪽 이메일로 워드프레스 관리자 계정과 FTP 접속 정보 보내주시면 점검해드리겠습니다.

    테마나 다른 플러그인, 서버 쪽 문제라면 저희 쪽에서 도움을 드리기 어려울 수도 있습니다.

    고맙습니다.

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기