English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

creating a php file for plug-in search/replace
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: creating a php file for plug-in search/replace
#11828
creating a php file for plug-in search/replace 10 Years, 3 Months ago Karma: 0
Have found this code sample, but cant get it to work.
Need help!

<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
/*
; Put below the Search/Replace expressions
;------------------------------------------

Search1=replace value1
Search2=replace value2

*/
masvenssons
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11832
Re: creating a php file for plug-in search/replace 10 Years, 3 Months ago Karma: 54
This kind of file must be stored somewhere in you website and you have setup the Search/Replace plugin with path to this file.

Perhaps that the Power Point can help you use it.
www.jms2win.com/media/joomla_multisites/...SearchReplace_en.pps

Just replace the

Search1=replace value1
Search2=replace value2

lines by your specific Search/Replace values.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11834
Re: creating a php file for plug-in search/replace 10 Years, 3 Months ago Karma: 0
Thanks! It worked.
I have put in File name #1: {root}/media/sr/search_replace.php.
I tried the same thing with {host}/media/sr/search_replace.php, but it didnt work.
masvenssons
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11840
Re: creating a php file for plug-in search/replace 10 Years, 3 Months ago Karma: 54
In the second case, verify that the path exists on your disk.
Remember that {host} is something like "www.domain.com" and that it does not start by something like /home/account/..... or other directory

In general the {host} keyword is used as suffix and not as prefix in the file name.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11847
Re: creating a php file for plug-in search/replace 10 Years, 3 Months ago Karma: 0
Excellent! This is what I did:
I have put in File name #1: {root}/media/sr/search_replace{host}.php
Hve also uploaded 2 files, search_replacewww.mydomain.com.php and search_replacewww.myotherdomain.com.php.

Thanks!
masvenssons
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla