joomla2.5

How to get component version from Joomla?

风格不统一 提交于 2019-12-08 10:37:57
问题 Is there some method to get components version by it's name? I tried a lot of examples but didn't find any that would work. The thing like JComponentHelper::getParams('com_mycomponent')->get('version') doesn't work as it retrieves values from jos_extensions.params row. My components version is only in jos_extensions.manifest_cache row... 回答1: You can use the following: Joomla 2.5: $parser = JFactory::getXMLParser('Simple'); $xml = JPATH_SITE .'/components/com_wrapper/wrapper.xml'; $parser-

Create a mysql function while installing a component

跟風遠走 提交于 2019-12-08 10:24:09
问题 I want to include the creation of a mysql function in my installer of a Joomla 2.5 component. This is the function: DELIMITER $$ DROP FUNCTION IF EXISTS getDistance $$ CREATE FUNCTION `getDistance` ( lat1 DECIMAL( 18, 12 ) , lng1 DECIMAL( 18, 12 ) , lat2 DECIMAL( 18, 12 ) , lng2 DECIMAL( 18, 12 ) ) RETURNS DECIMAL( 18, 12 ) DETERMINISTIC BEGIN DECLARE `distance` DECIMAL( 18, 12 ) ; SELECT ( 6371 * acos( cos( radians( lat1 ) ) * cos( radians( lat2 ) ) * cos( radians( lng2 ) - radians( lng1 ) )

Is it possible to export already installed component in joomla 2.5?

邮差的信 提交于 2019-12-08 08:12:03
问题 I want to export a component that already installed in Joomla2.5 site. I've searched in google, and joomla forums, but not able to to find a relevent solution. Anyone knows how to export an installed component from joomla admin side? 回答1: You can manually export by going to /components folder using ftp and copy component that you want to export. Admin component folder is administrator/components. And zip that folder. 来源: https://stackoverflow.com/questions/11239434/is-it-possible-to-export

Get Dynamic Post Fields/Data via JInput in Joomla

一个人想着一个人 提交于 2019-12-08 08:04:04
问题 Basically as the question describes, I need to get "POST" data in Joomla 2.5/3.xx and I want it through the JInput (the new talk of the town). Now everything is fine and dandy, until my further requirements needs those fields/data to be dynamic, ie. It(the fields) is designed to change depending on circumstances,there's no way for me to know what the fields are gonna be, I know how to do it in core php, but that's not the case with JInput, so thats it, how do I do it... 回答1: Well I know this

Joomla 2.5 got JAuthentication: :__construct: Could not load authentication libraries

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 05:35:54
问题 I just finished install Joomla 2.5 and then I did log-in at administrator but I got error message "JAuthentication: :__construct: Could not load authentication libraries." AND home page I got bellow message JERROR_LOADING_MENUS Error loading component: , 1 Component not found I download "Joomla_2.5.8-Stable-Full_Package.zip" from joomla.org. So I tried to do Find "Extantions" table. In extantions table, go to page 3 or 4, and find there "plg_authentication_joomla" - enaible it from 0 to 1.

Joomla 2.5 got JAuthentication: :__construct: Could not load authentication libraries

耗尽温柔 提交于 2019-12-08 04:02:27
I just finished install Joomla 2.5 and then I did log-in at administrator but I got error message "JAuthentication: :__construct: Could not load authentication libraries." AND home page I got bellow message JERROR_LOADING_MENUS Error loading component: , 1 Component not found I download "Joomla_2.5.8-Stable-Full_Package.zip" from joomla.org. So I tried to do Find "Extantions" table. In extantions table, go to page 3 or 4, and find there "plg_authentication_joomla" - enaible it from 0 to 1. but not work. Please advise me. Had this happen to me personally and it turned out to be a bad DB dump.

automatic extension update can't handle zip file from github?

房东的猫 提交于 2019-12-08 00:57:23
问题 I have an extension hosted on github, for which I want to provide automatic updates. However, when I provide the URL to a file attached to a release, Joomla just reports the following on trying to automatically update: Fehler beim Verbindungsaufbau zum Server: Error Unknown Ungültige Webadresse Translation Error in connecting to server: Error Unknown Invalid web address It's the same when trying to install from the web address via the Extensions - Install page. From the browser, I can

joomla loadformdata

时间秒杀一切 提交于 2019-12-08 00:13:41
问题 how to show data from 3 tables in one view, because using JTable i can show data only bind to that JTable, please help me with this one. my code so far(not working) in models: public function getEntireProject(){ $item_id = $this->getItem()->id; $db =& JFactory::getDBO(); $query = $db->getQuery(true); $query->select('*'); $query->from('#__project_part_1 AS a'); $query->leftJoin('#__project_part_2 AS u ON a.uuid = u.uuid'); $query->leftJoin('#__project_part_3 AS y ON a.uuid = y.uuid'); $query-

Joomla check for empty string with JInput

大城市里の小女人 提交于 2019-12-07 11:38:48
问题 Following this guide to sanitize my inputs, I'm wondering if an empty string is covered with this? $jinput = JFactory::getApplication()->input; $this->name = $jinput->get('name', '', 'STRING'); Typically without Joomla I'd be checking for an empty string as well. Something like: if (!empty($_POST['name'])) Looking at the JInput get method I see that it checks if it is isset : public function get($name, $default = null, $filter = 'cmd') { if (isset($this->data[$name])) { return $this->filter-

Remove hasTip javascript code from Joomla

心不动则不痛 提交于 2019-12-07 03:54:07
问题 Joomla 2.5 adds this code: window.addEvent('domready', function() { $$('.hasTip').each(function(el) { var title = el.get('title'); if (title) { var parts = title.split('::', 2); el.store('tip:title', parts[0]); el.store('tip:text', parts[1]); } }); var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false}); }); Now - I know I can edit the html behavior file: libraries/joomla/html/html/behavior.php to comment it out - but this isn't the best solution. Have tried but neither