이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

re.place

설명

re.place is a module wich acts as a content filter. It searches for pre-defined
regular expressions and replaces matches with pre-defined replacements.

It is possible to specify different replacements based on several
“replacement restrictions” — for authenticated users and guests,
for pages and non-pages currently (see “Screenshots”).

For example, you can implement the functionality of cross-linker module, while
adding the possibility to insert “target” parameter, “rel=nofollow”, style
information, etc.

As another example, you can insert in your posts custom smiles or the like.

As another example, you can add custom markup to you blog, like
Google(something) would insert link to www.google.com/search?q=something,
TouTube(youtube_id) will insert <object ...>, wich displays that video,
etc-etc. See “Other notes” for more examples.

You can replace http links with some other stuff for guests, leaving as is for
authenticated users (see https://wordpress.org/support/topic/297405).

Every entry can have custom “order” number, so you can chain your replacements.

re.place stores entries in database.

Management GUI provided to list entries, add, edit or delete entries.

See changelog for some changes tracking.

A brief examples

  1. As a search field, use ‘_—‘ (space in place of _!),
    as a replace — ‘#160;—‘. This will insert non-breaking space
    before every em-dash.

    Mmm… You may wish even use ‘<span
    style="letter-spacing:0.1ex;">#160;</span>—
    ‘ as a replase to insert
    narrower non-breaking space… If you love typography too much… And you
    can make space after dot wider…

  2. Search for ‘:-)‘ and replace with:

    <img src="http://www.kolobok.us/smiles/standart/smile3.gif"' .
    'alt=":-)" title=":-) (nice smile -- http://www.kolobok.us/smiles/standart/smile3.gif)"' .
    'style="vertical-align: middle;" />

  3. Search pattern: YouTube\(([a-zA-Z_0-9\-]*)\)

    Replace pattern:

    <object width="425" height="344" data="http://www.youtube.com/v/\1" type="application/x-shockwave-flash">
    <param name="movie" value="http://www.youtube.com/v/\1"></param>
    </object>

    This will allow you to use markups like YouTube(TMCf7SNUb-Q) to insert
    Youtube video fragments easily.

  4. How to Mass Remove Link (mass deactivate URL Linked text inside posts)?
    (https://wordpress.org/support/topic/288020)

    Search pattern: <a [^>]*>([^<]*)<\/a>

    Replace pattern: \1

    This will “deactivate” all links in all posts
    (e.g. replace <a href="...">Try!</a> with just Try!).
    Note, you can activate them back, deactivating this re.place entry.

  5. Want to insert drop caps easily?.. Use ‘<drop>L</drop>orem ipsum...‘ in your
    posts and replace it with <span class="dropcap">\1</span>‘. Use angle brackets,
    and if you (accidentally) deactivate re.place, these “tags” won’t mess you page.

  6. New — in v0.1.3 — [beta-] feature: you can specify different replace patterns
    for authenticated users and “guests”. Sorry, i’ll update screenshots and doc
    ASAP. 🙂

스크린샷

  • List of entries
  • List of entries with HTML characters escaped
  • Entry with regular expression search and replace with different replaces for authenticated and guests

설치

  1. Unzip replace-.zip to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Define your search/replacements via mgmt interface
  4. Use your patterns in your posts or pages

FAQ

How to deinstall this plugin?

Deactivate it and drop the database (the best way is via phpMyAdmin plugin).
And remove options 're_place_%'.

Sorry, no deinstaller yet.

후기

2016년 9월 3일
We’re working with a javascript that automatically looks-up an entry in a database if a <span> with a certain class has been placed around a word. Since you don’t want to type <span class=”abc”>entry</span>, we wanted to instead do it with these brackets: {entry}. We created a regular expression to perform the look-up. Other plug-ins would a) replace the contents of the post in the database -> this is not the desired behavior as “<span>”s sometimes get “eaten” by the visual editor b) work for posts, but not for pages c) work for posts, also for pages, but not inside shortcodes -> our theme uses shortcodes for a variety of things, so we needed them. d) completely break the site ___ re.place was the ONLY plug-in out of the 5 we tested that didn’t check any of the above and that ALWAYS worked exactly the way we wanted it to. I highly recommend it!
모든 1 평가 읽기

기여자 & 개발자

“re.place”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “re.place”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.