Home

OFF-SOFT.net

OFF-SOFT.net

This site is support & information site of WEB,and Software. This site might help you that create software or Web Site…perhaps?[:]

How to use ReReplacer Extension.

Published on| July 2nd, 2009 | 1 Comment.
Description:
Joomla! Does not have features such as simultaneous displacement of the article. Therefore, it is necessary to correct the article to correct the overall article one by one.

This will help to correct it temporarily and then describes the extension of ReReplacer.
They're replaced simultaneously (in charge) and some components, ReReplacer, when viewing the article, is to temporarily replace the text. To replace the article really does not save to the database.
However, the article decided to be written because it had been thought that it was a considerably convenient extension according to the usage.

Immediately, we use
The destination site, ZIP file to download, and install. (Menu [extension] - Install / Uninstall] Please. )

After installation, the [components] - [ReReplacer] Edit the string replacement.

Click the New button on the right of the screen.




Parameter name Description
Details
Published ● No Specify whether to enable the information to replace this right.
Name Enter the name of this displacement.
Description ● No, enter a description of this substitution Yes.
Search & Replace
Search Enter the search string.
Replace Enter the string to replace.
Syntax help ● Show the help of special syntax that can be hidden in this view.
The "View" is selected, help information is displayed just below the screen.
Search options
Regular Expressions ● No, Yes, the search string, specify whether to enable regular expression string replacement.
Word Search ● Specify whether to enable Search No Yes.
Word Search ● Specify whether to enable Search No Yes.
Search is to detect the difference between the words.
For example, 'foo' during a search, 'foobar' or 'foot' will not hit the search for another word.
However, not treated as a single word 'foo3' and 'foo-bar' will hit.
※ Japanese, it probably will not work correctly.
Use 'newline' modifier ● Yes No
dot (.) assumes a new line.
※ Japanese, it probably will not work correctly.
Case sensitive ● The case sensitive search Yes No.
※ The Japanese do not make sense. It is good only alphabetic characters.
Thorough ● No, Yes, this "Yes" is given, and always switch shown in the search process is performed 100 times the same string.
So, by substitution, unless such patterns could search the text to be here, "No" should be selected.
(I guess. I'm sorry when I incorrectly translated. )
Search areas
Enable in area
  • Content +
    - Replace only the content search.
  • Component +
    - The search for a replacement component.
  • Body
    - BODY and then search and replace within the scope of the tag.
  • Everywhere
    - Replace all of the search page.

The range search to replace.
Only if the article, "Content +" from the menu.
Enable in title ● Specify the search scope to replace No Yes.
Specifies whether to replace the scope of the search for the title of the article.
This parameter, Enable in area = "Content +" is valid only for.
Enable in author ● Specifies whether to replace the scope of the search for the post No Yes.
This parameter, Enable in area = "Content +" is valid only for.
Only between (start) Only between (end) with use.
Only between (start) and Only between (end) if it is specified, the two strings to the extent, and scope of the search and replace.
Cases)
'123 Xxx123xxx456xxx456 'If you had a string, such as'123' and'456 'in between' x 'a' y 'if you want to replace,
Only between (start) ='123 '
Only between (end) ='456 '
Specify.
As a result,
'123 Xxx123yyy456xxx456 '
.

※ In the short range of the specified range of text, please note that will be implemented search and replace.
Only between (end) Only between (start) with use.
Please refer to the above description.
Enable in feeds ● Yes No Only
Feed Specifies whether to replace the scope of the search.
Enable in Admin ● Yes No Only
Specifies whether to screen and manage a range of search and replace.
Tags
Enable in tags ● Yes No Only
(HTML) to specify whether to search for in the scope of the replacement tag.
Limit to tag selection ● Yes No
'Yes' to choose,' Tag selection 'field is set to appear on the screen.
Specified therein (HTML) and the scope of the search only to the extent of the replacement tag.
'Tag selection' is
tag_name_1 [parameter_name_1, parameter_name_2] tag_name_2 [parameter_name_1, parameter_name_2]
Format.

Cases)
All of the tags' alt 'and' title 'and values,' a 'if a search and replace the tags, as described below.

* [alt, title] a [*]

*: All it means.
Sections / Categories
Limit to Sections / Categories ● Yes No
Specifies whether the scope of the search and replace only the specific sections and categories.
'Yes' and
'Sections / Categories' list, you will see a screen where you select the sections and categories of interest.
User Group Levels
Limit to User Group Levels ● Yes No
Specifies whether the scope of the search and replace only the specific user groups.
'Yes' and
'User Group' list can be displayed on the screen, where you want to select the target user group.
Templates
Limit to Templates ● Yes No
Specifies whether to search only the scope of the displacement in a particular template.
'Yes' and
'Template' of the list, you will see a screen where you select the template that you want.

After editing save the information to replace the management plug-in "System - ReReplacer" Let's turn on.
(Menu [extension] - Manage Plugins] From "System - ReReplacer" Please look for. )


Let's check the stories and the replacement string. I have replaced it.

Following page is sample of ReReplacer.

the pattern of replacing is replace from following left words(Plain) to following right words(HTML).
1
hijklmno --> <span class="red"><b>HIJKLMNO</b></span>
Test ReReplacer



The upper row is an original character string.
The lower row is a character string substituted with ReReplacer.


When you enter a description of the Japanese to replace items in the list of substitution occurs when the field is garbled.


In this case, the following will be displayed correctly php and rewrite the file.

[/administrator/components/com_rereplacer/views/list/tmpl/default.php]
Of 153 and change the following lines KESHIMASEN characters.
153
154
	//	$_description = explode( '---', htmlentities( $_row->description ) );
		$_description = explode( '---', htmlentities( $_row->description ,ENT_COMPAT,'UTF-8' ) );

Import, export
This extension, import, and export capabilities. This information along with the original tags, and text output to replace the item (export) and, if the same format text, create a replacement item from a text file (import) can be.

Below are the contents of the text file export.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<RR_ITEM_START>
<RR_KEY>name<RR_VAL>テスト置換<RR_END>
<RR_KEY>description<RR_VAL>テスト置換の説明<RR_END>
<RR_KEY>search<RR_VAL>TEST<RR_END>
<RR_KEY>replace<RR_VAL>テスト<RR_END>
<RR_KEY>params<RR_VAL>@syntax_help=0
regex=0
word_search=0
s_modifier=1
casesensitive=0
thorough=1
area=articles
enable_in_title=0
enable_in_author=0
between_start=
between_end=
enable_in_feeds=1
enable_in_admin=0
enable_tags=1
limit_tagselect=0
tagselect=*[title,alt] meta[content]
limit_secscats=0
other_secscats_doreplace=0
other_secscats_replace=
limit_usergrouplevels=0
usergrouplevels=0
other_usergrouplevels_doreplace=0
other_usergrouplevels_replace=
limit_templates=0
other_templates_doreplace=0
other_templates_replace=
<RR_END>
<RR_KEY>ordering<RR_VAL>0<RR_END>
<RR_ITEM_END>

Each parameter, and in light of the above, most, I think you understand.

The following is a screen at the time of import. Select the file and if you click 'Upload' button, relace item will be Imported .



Well, you can specify the details. With work, this extension can be replaced easily affect the conversion of the article.
However, the frequent use of it, so I switched the page to be in the Taku Shigeru, good access to the minimum.

The changes, if a permanent change, this extension is to change all of the information, I can use as a temporary measure.

Comments

1 Comment. “How to use ReReplacer Extension.”


  1. datshay
    July 8th, 2011 @ 20:04:51

    Thanks …. my site was just messed up with small configuration mistake…. your tut solved mine prob. so thanks a lot….

Leave a Reply







  • はてなブックマークへ追加する
  • Facebookでシェアする
  • twitter でつぶやく
  • Google Plusでシェアする
  • Pocketでシェアする
ページトップへ