Home » Extensions » ReReplacer
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

With ReReplacer you can replace whatever you want in your entire site.

If you use ReReplacer, please post a rating and a review at the Joomla! Extensions Directory.

Description

With ReReplacer you can replace whatever you want in your entire site.

It can work on the entire output of your site, so you can also do replacements in things like the meta tags.

Regular Expressions

You have the ability to use powerful regular expressions to search and replace. This opens up endless possibilities. You can do virtually everything with ReReplacer.

For documentation on regular expressions, ReReplacer comes with a Regular Expressions Cheat Sheet (under the Syntax Help button). For more on regular expressions, I recommend Regular-Expressions.info

Handle with care!

Because you can replace/remove all kinds of things, you can potentially break your site. It is not wise replacing words like 'html', 'body' or (parts of) words that are used in inline scripts.

However, the cool thing is: all replacements are not permanent. So when you turn off the plugin or remove the replacement, your website is back to the original state.

Also, there are some nifty features enabling you to replace stuff without replacing in fragile areas like in tags and outside the html body.

Examples

You can download an Example Pack with a couple of ready to use examples. You can change these to your liking and add as many new items as you want.

Some idea's where you can use ReReplacer for:

  • Filter bad words on your site (Example Pack 1).
  • Replace smiley tags by images ( [:wink:] becomes wink ) (Example Pack 1).
  • Temporarily hide text from your website, without actually removing it (Example Pack 1).
  • Remove redundant whitespace from your code, making your website load faster (Example Pack 1).
  • Use abbreviations in your content and replace them with the full text (J! becomes Joomla!).
  • Quickly place whole blocks of text by only typing one word. Like you can use [stats] and replace it with a piece of Google Statistics code. Or [footer] to put a fixed bit of text under articles. You can change the replacement in one place (in ReReplacer) and your whole website is updated!
  • Create your own custom tags ([mytag]some text[/mytag] becomes some text).
  • Tweak the output of Joomla! without changing the core files.
  • etc...

Example codes

Custom Remove Tag
Everything between is removed from the final output.
Search \{remove\}.*?\{/remove\}
Replace leave empty
Settings Regular Expressions: yes

 

Add links to words
Changes words with a certain syntax and gives them a link.
In this case, all words that end with _profile are linked to a profile link. And _profile is stripped from the word.
Search ([a-zA-Z0-9_-]*)_profile
Replace <a href="/profiles/\1">\1</a>
Settings Regular Expressions: yes


If you have or need any more examples, please e-mail me!

Syntax

Here is an overview of extra codes you can/should use in different situations.

[[comma]] Use instead of a comma. Use normal comma's to create lists. [[comma]] , Yes No Yes Yes
[[space]] Use for leading or trailing spaces (otherwise they will get stripped). [[space]] Yes Yes Yes Yes
[[counter]] This places the number of the occurrence.
If your search is found, say, 4 times, the count will show respectively 1 to 4.
[[counter]] 1 Yes Yes No Yes
[[random:...-...]] This places a random number within the given range. [[random:0-100]] 70 Yes Yes No Yes
[[date:...]] Date using php strftime() format. [[date:%A, %d %B %Y]] Thursday, 09 February 2012 Yes Yes No Yes
[[user:id]] The id number of the user (returns empty if not logged in) [[user:id]] 123 Yes Yes No Yes
[[user:username]] The login name of the user (returns empty if not logged in) [[user:username]] peter Yes Yes No Yes
[[user:name]] The name of the user (returns empty if not logged in) [[user:name]] Peter van Westen Yes Yes No Yes

For documentation on regular expressions, ReReplacer comes with a Regular Expressions Cheat Sheet (under the Syntax Help button). For more on regular expressions, I recommend Regular-Expressions.info

Screenshots

ReReplacer - Items list

ReReplacer - Items list

ReReplacer - Item settings

ReReplacer - Item settings

Tutorials

Specs

Specifications

ReReplacer is a Joomla extension compatible with Joomla 1.5, Joomla 1.7 and Joomla 2.5.

The extension consists of:

  • a component
  • a system plugin

Requirements

ReReplacer will only work correctly if your setup meets these requirements:

  • Up-to-date version of Joomla!
  • PHP 5.3+
  • PHP mbstring (Multibyte String) functions should be enabled
  • MySQL 5+

Using PHP 5.2 (or lower)?
PHP 5.2 is old and support for it has stopped with the release of PHP 5.2.16 (16-Dec-2010). This means that PHP 5.2 cannot be considered stable or secure anymore.
If your host will not or cannot provide you with an up-to-date version of PHP, then you have reason enough to look for a decent host.
PHP 5.2 mainly has problems with installation of the zip packages. The extensions might work without problems for you once installed, but I can not give any guarantees on that.
>> For more detailed information, read: No more php 5.2 support - move on to php 5.3

I can not provide support for setups that do not meet the above requirements.

The core Joomla files should of course not be altered in any way.

Installation

The easiest way to install/update is via the NoNumber! Extension Manager.

If you have problems installing ReReplacer, please try the manual installation process as described here:
docs.joomla.org/Installing_an_extension

Otherwise, please report this on the forum or let me know via the contact form.

Updating

If you want to update to the latest version, you do not have to uninstall first.

The easiest way to install/update is via the NoNumber! Extension Manager.

You can also update simply by installing the package via the Joomla core installation process.

Downgrading

If for some reason you need to downgrade, it is best to uninstall the extension first.

Also, you will have to uninstall the NoNumber! Framework plugin (system) (and the NoNumber Elements plugin if you have it installed).

After that you can simply install the older version zip file.

Please note that I cannot not provide support on older versions!

Open Source License

ReReplacer is an Open Source Joomla extension. It is in compliance with the GNU/GPL license:
Licence: GNU/GPL GNU General Public License, version 2

Joomla is also Open Source.

Support

Need more help?

Before requesting help, make sure your installation and setup meet the requirements (see the Specs) and your extensions are up-to-date.

If you need more help, please take a look in the NoNumber! Forum.
If you can't find your answer there, please post your question. I am very willing to help!

You can also contact me via the contact form or via chat (if I'm online).

Changelog

Changelog

+ = Added ! = Removed ^ = Changed # = Fixed

02-Feb-2012 : v3.0.9
+ Added ability to escape values in replace field using tags
^ Improved handling of replacements in pdf files (Joomla 1.7+)
# Fixed issue with date tag not outputting correctly (Joomla 1.7+)

26-Jan-2012 : v3.0.8
^ Improved handling of Sourcerer tags in replacement field
^ Improved caching of replacement list
^ Added '(Un)Select all' options to multiselect fields
# Fixed issue with installer not removing the folder/zip from the tmp
# Fixed issue with modal links opening in full window (Joomla 1.7+)

02-Jan-2012 : v3.0.7
+ Improved speed of toggler script
! Removed grey overlay during loading of page

23-Dec-2011 : v3.0.6
# Fixed issue with assignment options not showing on mootools 1.2+ setups

22-Dec-2011 : v3.0.5
# Fixed issue with script breaking, causing data not being checked (Joomla 1.7)

21-Dec-2011 : v3.0.4
+ Added translations: et-EE, ru-RU
^ Updated translations: de-DE, pt-BR, th-TH
^ Cleaned up more code
^ Improved speed and stability of toggler script
# Fixed issue with option togglers (in closed slides) not working properly (Joomla 1.7)

16-Nov-2011 : v3.0.3
+ Added option to not treat search and replace fields as lists
^ Updated translations: lt-LT, pt-BR
^ Improved speed of saving the item (Joomla 1.7)
# Fixed issue with area not being changeable via xml file
# Fixed issue with import only saving first item from file (Joomla 1.7)
# Fixed issue with access settings not showing up (Joomla 1.7)
# Fixed issue with not being able to cancel an empty item (Joomla 1.7)
# Fixed issue with Duplicate function not working (Joomla 1.7)
# Fixed issue with html entities being converted in textarea fields (Joomla 1.7)
# Fixed issue with multiple line url assignments not working (Joomla 1.7)

07-Nov-2011 : v3.0.2
# Fixed issue with multiselect values not being saved (Joomla 1.7)

03-Nov-2011 : v3.0.1
# Fixed issue with helper file missing (Joomla 1.7)

02-Nov-2011 : v3.0.0
+ Joomla 1.7 compatible!
+ Added translations: th-TH
^ Cleaned code syntax (no longer guaranteed support for php 5.2.x and lower)
# Fixed issue with assignment to homepage url being case sensitive
# Fixed issue with double checkboxes showing on long titles in select fields
# Fixed issue with Else field not showing in assignment options
# Fixed security issue in !NoNumber! Framework plugin

08-Oct-2011 : v2.17.1
# Fixed issue with Sunday being displayed as Saturday in assignment settings

08-Oct-2011 : v2.17.0
^ Improved installer
^ Moved translation language files to main package (no more language packs)
^ Cleaned up some code (like no more use of DS)
! Removed help page (no help button links to online info)
# Fixed issue with replacements also being done on pages that do not have the between strings

16-Sep-2011 : v2.16.0
+ Added K2 tags & item assignment option
+ Added display of current date/time in settings
+ Added Save as Copy button
+ Added robots/web crawlers to browser selection list
^ Changed !NoNumber! Elements plugin to !NoNumber! Framework
^ Moved common language strings to !NoNumber! Framework files
^ Updated browser selection list
^ Improved date/time assignment checks
^ Improved handling of Sourcerer code inside the replacement field
# Fixed issue with offset not being taken into account on time assignment
# Fixed issue with browser assignment Safari also assigning to Chrome (thanks Liam)
# Fixed issue with duplicate database queries when there are no article replacement items
# Fixed issue with !JEventHandler error on some setups

29-Mar-2011 : v2.14.3
^ Changed language files to be J1.6 ready
# Fixed issue with images in help text on dynamic tags being broken
# Fixed issue with slashes not being handled correctly when copying items
# Fixed issue plugin being executed on raw format pages
# Fixed issue with help popup in item view not working

18-Feb-2011 : v2.14.2
# Fixed issue with using date() format in date variable tag
# Fixed issue with only last item in xml files being handled
# Fixed issue with html tags in strings causing load by xml to fail

11-Feb-2011 : v2.14.1
^ Changed extension icon / logo
# Fixed issue with months assignment not working
# Fixed issue with untranslated language strings in config popup

Commercial License

ReReplacer is completely free and you DON'T need a Commercial License Code to use it.

However, if you use my extensions on websites that you make money from, I would appreciate it if you purchase a License Code.
The License Code will remove the license message from the extensions administrator screens.

Note: If you don't want to pay for the License Code and want to continue to use the extension for free, please do. You will just have to ignore the license message in the administrator.

Note: If you have donated before and feel you should get some reduction on the price, please contact me about it... we'll sort it out :)

more information...

 

 

Here you can see the difference between the use of the extensions without and with Commercial License Code.

WITHOUT Commercial License CodeWITH Commercial License Code
Full version download yes YES yes YES
Full functionality yes YES yes YES
Message in administrator license_invalid license_valid
Encrypted no NO no NO
Free updates yes YES yes YES
Free support yes YES yes YES
Free RSS news subscription yes YES yes YES
Free holiday to Barbados no NO no NO

Download

Downloads

ReReplacer is compatible with Joomla 1.5, Joomla 1.7 and Joomla 2.5

NOTE: ReReplacer needs PHP 5.3+. Please see the specs for more requirements.

  • Are you going to use this extension on a commercial website? Please consider buying a License Code

More downloads...

Please clear your browsers cache after updating an extension.

NOTE: Joomla 1.6 is no longer supported. Joomla 1.6 reached end-of-life in August 2011. If you have a site running on Joomla 1.6 you are urged to upgrade to Joomla! 2.5. ReReplacer will probably still work on Joomla 1.6, but any issues specific to Joomla 1.6 will not be fixed.

Other Downloads

Tip!

Are you using multiple NoNumber! extensions?
Install the NoNumber! Extension Manager to easily keep them up-to-date.

Languages

This extension comes with the following languages:

  • [pt-BR] Brazilian Portuguese
  • [ca-ES] Catalan
  • [nl-NL] Dutch
  • [en-GB] English
  • [et-EE] Estonian
  • [de-DE] German
  • [el-GR] Greek
  • [it-IT] Italian
  • [ja-JP] Japanese
  • [lt-LT] Lithuanian
  • [ru-RU] Russian
  • [th-TH] Thai

No language pack for your language?

I welcome you to help out and get involved with translations for NoNumber! extensions.

I am using Transifex for the translations of all NoNumber! extensions. So I kindly ask you to join Transifex.

There is a translation team/group set up especially for Joomla projects: OpenTranslators.

To join, see the different steps on the right under: Translator Guide: http://opentranslators.org/en/how-to

You can find all the NoNumber! projects here: https://www.transifex.net/projects/tag/nonumber/

All language files will be updated and packed with every new release of the individual extensions.

OpenTranslators

 
Open Source Training | Online Joomla! Training and Support
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max