| Re: Blue Move Tip - Search and Replace |
| by zyspec on 2010/9/13 13:23:01 Yes, It should be replaced. Unfortunately there's not an 'easy' fix or one answer for all situations. The new XoopsObjectTree is dealing with class objects, not an 'array' from the database like XoopsTree did. The difficulty in replacing XoopsObject with XoopsObjectTree will depend on whether the objects to be used are already in existance (for example the module uses classes/objects) or if they'll need to be created. The replacement is further complicated by the fact that some of the XoopsTree methods are no longer available in XoopsObjectTree so alternate ways of creating the same result will have to be created. |
| Re: Blue Move Tip - Search and Replace |
| by trabis on 2010/9/13 13:01:39 Quote:
XoopsObjectTree requires modules to use XoopsObject and some old modules do not have them. The easier way is to copy the class into the module folder, rename the class, remove the deprecated message from the class constructor and change module references to use the new class. The hard and best way is to create object classes for those modules and use XoopsObjectTree. News module->already has object classes wf-links, mytube->does not have object classes |
| Re: Blue Move Tip - Search and Replace |
| by Balzac on 2010/9/13 7:12:49 And what about Quote: Warning: Class 'XoopsTree' is deprecated, check 'XoopsObjectTree' in tree.php in file /class/xoopstree.php line 49 Old modules use xoopsTree. Should this be replaced too? If yes, how? |
| Re: Blue Move Tip - Search and Replace |
| by Peekay on 2010/9/10 21:22:56 One of the things I do before running a module on a live site is to check that there are no 'http' links buried in the code that the developer may have used in testing but forgot to remove. InfoRapid is excellent for this, but if you search for 'http://' it will also find the links to xoops.org in the GPL copyright notices. To exclude this address from the search, you can use the expression: le="color: #000000"><?php Search for: http://www.&!xoops.org In Files: *.* InfoRapid will even find links hidden in .GIF files, like the one embedded in the animated 'arrow' icon common in many older modules. It's just a backlink to the GIF creator software company, but it is hidden none the less. If you want to get rid of it you'll need a HEX editor. HXD seems pretty easy to use. Open the file, select the offending code in the right hand panel, choose 'Edit/Fill Selection' and press 'OK' in the next screen to overwrite the selected text with '00's. HxD automatically creates a backup of the original file, just in case you mess it up. |
| Re: Blue Move Tip - Search and Replace |
| by Mamba on 2010/8/8 3:16:53 You could also use a tool that I've written a long time ago for JEDI Project: JVCL-Convert With it you can: - define which file extensions you want to target (e.g. only *.php) - scan directories/subdirectories for files to convert - you can also drag files for conversion - you can load/save your conversion strings - you can also have a "dry-run" to see which files will be affected - you can create a backup for each file changed - you can also replace strings in the file names And it's actually pretty fast ![]() Note: I am not sure how it will work on UTF files, as it was developed for standard Delphi source code files back in 2003, but since all our old modules are non-UTF files, it should be no problem there. |