I believe that was valuable information (including the link to Andrew Eddies site)
--Elkuku 18:31, 18 January 2011 (UTC)
- There are several reasons for removing external links. We don't have the resources that would be required to monitor the sites being linked to; links can easily be turned into malware distribution sites. I'm not saying that that is the case here, but such links are often added for commercial reasons, in order to drive traffic to sites that carry advertisements or products for sale or simply to increase search-engine ranking. In order that the wiki does not become a link-fest for every commercial organisation in the community hoping to grab traffic, it is only fair that no such links are allowed. Although Andrew has the highest standing within the community I'm sure he would agree that it would be unfair to allow links to his site but not to others. But perhaps most importantly, the presence of external links discourages potential contributors from improving the documentation here on the wiki. I would prefer that anyone considering adding a link to an external site instead think about how the information in the wiki can be added to or improved for the benefit of all our users. Perhaps the author of the external site can even be persuaded to donate the material; I know that Andrew has already contributed a great deal in that way so perhaps others can too. Chris Davenport 18:59, 18 January 2011 (UTC)
Some more useful regular expressions to adapt language files and language strings to 1.7
- to make sure all keys are properly prefixed, for example by the component name: search ^(?!COM_MYCOMP)([^\n=]+)= replace with COM_MYCOMP_$1=
- to replace spaces before the = sign replace (COM_MYCOMP[^\s\n=]*)( )([^\n=]*)= with $1_$3= (run several times...)
- find keys with illegal characters in language files: ^([\w]+([^\w=])[^\n=]*)=
- for xml files, label and descriptions prefixes, replace (label|description)="(?!COM_MYCOMP)([^"]+)" with $1="COM_MYCOMP_$2"
- for xml files, label and descriptions spaces replace (label|description)="([^\s"]*)[\s]+([^"]*)" with $1="$2_$3" (several times)
- in php files, for prefixes replace JText::_\(\s*\'(?!COM_MYCOMP)([^']*)\' with JText::_('COM_MYCOMP_$1' (same with sprintf, and you might need to run it with double quote too)
- in php files, for spaces replace JText::_\(\s*'([^'\s]*)( )([^']*)' with JText::_('$1_$3'
(JulienV 13:35, 2 November 2011 (CDT))
Adapting a Joomla 1.5 extension to Joomla 1.6 - Small but annoying Problems:
If you have a component including tables with sortable columns - JHTML::_('grid.sort'...
Maybe it will not work - you try to sort be another column than the default one, by pressing the column title, and nothing happens.
Solution: at the default.php file that displays the table, in the html line that opens the form, add the attribute id="adminForm". In joomla-1.5 the important attribute for the form was name="adminForm".some developers didn't add the id attribute.
It should look like this:
<form action="<?php echo $this->request_url; ?>" method="post" name="adminForm" id="adminForm">
Name of this page
Shouldn’t this page be renamed to ‘Adapting a Joomla 1.5 extension to Joomla 2.5’? Versions 1.6 and 1.7 have reached end-of-life (1.7 a month ago).
--Vovantz 09:30, 22 May 2012 (CDT)
- I don't think that you can change the title of an existing Wiki page. If my memory is correct, the procedure is to copy the relevant contents of this page to a new page with the correct title. Then edit the new page where necessary (changing appearances of 1.6 to 2.5, for example). Also place a redirect on this page that will automatically take visitors to the new page.
- It may be beneficial to incorporate some of the contents of this talk page in the page with the revised title so that it is not lost. cmb 12:38, 22 May 2012 (CDT)