2009년 03월 17일
워드프레스 글접기 안될 때
more 기능으로 글접기 시도 실패 결국은 플러그인 설치했다.
구문을 따로 적어줘야 하는 번거로움이 생겼지만 그거라도 어디인가??
포럼 가보니 테마에 따라서 안되는 경우도 있다고 한다.
그 경우 테마폴더에 있는 index.php 파일을 수정해 줘야 한다고 한다.
젠장 테마 잘못 선택한 내가 잘못인가??
I have updated the beautiful Simple Spoiler plugin to make it compatible with WYSIWYG editor embedded in WordPress. I have added the option to use [ ] instead of < >. Now you can use both methods whithout digging into your older posts to modify the code.
Installation
Put enhanced-ss.php file inside plugins directory of your WordPress installation [usually wp-content/plugins/]. Activate it and start using it!
How to use
If you write with the WordPress visual rich editor [TinyMCE], simply put the text you want to hide between
Show ▼
text here
tags.
If you don’t use the visual editor you only have to put the text between
Show ▼
text here
or text here tags.
Formatting
You can use two words or phrases as text link to show or hide the content. For example:
In visual editor give me the truth ▼
will result as something like this
give me the truth ▼
The Truth will set you free
By the other hand, in simple editor text here will produce the same output. Take in mind that ‘ ‘ are not compatible with visual editor, that’s why the syntax is not the same in both examples.
Changelog
1.6.2 - Added “php” to the beggining of the file. I don’t know why it wasn’t present. Thanks Amanda
1.6.1 - Modified yk_callback function to make it XHTML 1.0 compatible [I hope]. Thanks Marcus
1.6 - Initial release, to continue Simple Spoiler version number.
PS:
I don’t know PHP nor Javascript, I have simply added a pair of lines of code and chaged others by observation and later testing for errors. Please don’t request more features for this plugin, its name is Simple for some reason ;)
Simple Spoiler 플러그인은 쉽게 찾을 수 있다. 본인의 워프에서 플러그인 추가하기에서
Simple Spoiler 검색하면 바로 뜬다.
사용법은 에디터의 html에서 작업해야 하며
1.[spoiler] 글자입력 [spoiler]
2.[spoiler /give me the truth(수정가능)/ /hide it from me/(수정가능)] 글자입력
3. <spoiler ‘give me the truth’ ‘hide it from me’> 글자입력 </spoiler>
글자입력 부분에 내용을 삽입하시면 되고
요약제목은 1.show or close 2. 수정가능이라는 부분을 그니까 “give me the truth”이 부분을 “보여주세요”
이렇게 바꾸면 “보여주세요”라고 표기 된다. 뒷부분 수정 가능도 마찬가지고 3번 사항도 같다.
혹시나 more태그 자주 사용하시는 분이 이글 보시면 댓글에 방법좀 갈쳐 주세요 plz
저 PS에 보니 개발자도 PHP 자바스크립 모른단다.
워드프레스 정말 하기 힘들다..
처음에 다 해놓으면 여느 블로그 보다도 더 좋다는거..
구문을 따로 적어줘야 하는 번거로움이 생겼지만 그거라도 어디인가??
포럼 가보니 테마에 따라서 안되는 경우도 있다고 한다.
그 경우 테마폴더에 있는 index.php 파일을 수정해 줘야 한다고 한다.
젠장 테마 잘못 선택한 내가 잘못인가??
I have updated the beautiful Simple Spoiler plugin to make it compatible with WYSIWYG editor embedded in WordPress. I have added the option to use [ ] instead of < >. Now you can use both methods whithout digging into your older posts to modify the code.
Installation
Put enhanced-ss.php file inside plugins directory of your WordPress installation [usually wp-content/plugins/]. Activate it and start using it!
How to use
If you write with the WordPress visual rich editor [TinyMCE], simply put the text you want to hide between
Show ▼
text here
tags.
If you don’t use the visual editor you only have to put the text between
Show ▼
text here
or
Formatting
You can use two words or phrases as text link to show or hide the content. For example:
In visual editor give me the truth ▼
will result as something like this
give me the truth ▼
The Truth will set you free
By the other hand, in simple editor
Changelog
1.6.2 - Added “php” to the beggining of the file. I don’t know why it wasn’t present. Thanks Amanda
1.6.1 - Modified yk_callback function to make it XHTML 1.0 compatible [I hope]. Thanks Marcus
1.6 - Initial release, to continue Simple Spoiler version number.
PS:
I don’t know PHP nor Javascript, I have simply added a pair of lines of code and chaged others by observation and later testing for errors. Please don’t request more features for this plugin, its name is Simple for some reason ;)
Simple Spoiler 플러그인은 쉽게 찾을 수 있다. 본인의 워프에서 플러그인 추가하기에서
Simple Spoiler 검색하면 바로 뜬다.
사용법은 에디터의 html에서 작업해야 하며
1.[spoiler] 글자입력 [spoiler]
2.[spoiler /give me the truth(수정가능)/ /hide it from me/(수정가능)] 글자입력
3.
글자입력 부분에 내용을 삽입하시면 되고
요약제목은 1.show or close 2. 수정가능이라는 부분을 그니까 “give me the truth”이 부분을 “보여주세요”
이렇게 바꾸면 “보여주세요”라고 표기 된다. 뒷부분 수정 가능도 마찬가지고 3번 사항도 같다.
혹시나 more태그 자주 사용하시는 분이 이글 보시면 댓글에 방법좀 갈쳐 주세요 plz
저 PS에 보니 개발자도 PHP 자바스크립 모른단다.
워드프레스 정말 하기 힘들다..
처음에 다 해놓으면 여느 블로그 보다도 더 좋다는거..
# by | 2009/03/17 11:16 | Tools Tips | 트랙백 | 핑백(1) | 덧글(1)







☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
... 동키군 날 ... more
기본 설정이 블로그 첫 페이지에 "내 최신 글 보여주기"인데, 거기서 글을 일정 부분 이상 안 보여주고 싶으면 쓰는 겁니다. more 태그를 붙인 부분부터는 첫 페이지에 안 보이는 거죠.