joomla2.5

Joomla PHP: Checkbox won't uncheck

有些话、适合烂在心里 提交于 2019-12-23 19:33:27
问题 Making a simple component. If I save a new record with the box checked, it saves fine. If I go back and uncheck a previously checked item it reverts back to checked. I thought it had something to do with a hidden field, played with putting one of those in manually but that didn't fix it either so took it out. Here's where I'm at: An xml snippet: <fieldset name="checks"> <field name="checkbox1" type="checkbox" label="First Checkbox" value="1" filter="intval" /> <field name="checkbox2" type=

passing data from controller to model in Joomla 2.5

随声附和 提交于 2019-12-23 02:32:37
问题 I am developing a joomla 2.5 component where I need to pass data from controller to model . The controller is receiving data from url. I find that controller is getting the value properly. Now I need to move that value to model from controller. From different post I have found a snippet of code for controller like below. $datevalue = JRequest::getVar('day',$day); //receiving value from view $item = JRequest::setVar('day',$datevalue); //setting variable $model =& $this->getModel('WeeklyProgram

article content not showing in joomla 2.5 after upgrading from 1.5 to 2.5

我的梦境 提交于 2019-12-23 00:43:29
问题 I have an issue with my joomla 2.5 site. I upgrade my site from joomla 1.5 to 2.5 version. After upgrading, articles not displaying. It shows the article heading but not showing the content. I give the permissions to the site but it doesn't works. 回答1: I got the real solution that is : go to the jupgrade/template/html folder and delete or rename the com_content folder Then it will work properly Thank you all 回答2: Your site has following url structure http://keralacarpentry.com/freedom2/index

Joomla 3 hide module just for mobile devices

ぐ巨炮叔叔 提交于 2019-12-22 17:37:24
问题 I working on my new site in Joomla 3 with mobile ready theme. Can somebody tell me please, how I can hide few modules for mobile device (iPhone, etc...) visitors? I have a long banners in two modules, what is looks nice if visiting that site with computer browser. But how I can hide this modules if somebody visiting my site with mobile device? Is too long and broke a nice view... 回答1: In the new version of bootstrap there is a new css names for hidding modules, check it on http://getbootstrap

Set frontend session time out limit in joomla

谁说我不能喝 提交于 2019-12-22 05:14:39
问题 How to set session timeout limit for frontend users in joomla 2.5? I had set the Session Lifetime option in Global configuration but it sets the limit in backend only. 回答1: you can comment the line JHtml::_('behavior.keepalive'); on top in the file modules/mod_login/tmpl/default.php After that the time from the backend will also expires the frontend as well as backend 回答2: Try this plugin. According to my knowledge. If you are to Session Control Plugin make the different session lifetime for

Captcha recaptcha does not work anymore

寵の児 提交于 2019-12-22 04:18:34
问题 It was working perfect yestarday but today the captcha does not appear anymore. I debuged the code and I realized that my joomla plugin captcharecaptcha is including this file when rendering the page as a javascript file http://api.recaptcha.net/js/recaptcha_ajax.js But if I hit the link directly from my browser I get 404 not found. Anyone have any similar problems with this today? Did the path of the js file changed? you can change the endpoints From const RECAPTCHA_API_SERVER = "http://api

Database script for Joomla upgrade from 1.7 to 2.5?

此生再无相见时 提交于 2019-12-20 06:36:53
问题 I am looking for the script that does the database changes and upgrades the Joomla installation from Joomla 1.7 to Joomla 2.5. Thus I am not looking for changes in the code as I can check those from SVN. Having access to this script can allow me to just run these scripts on the server where I cannot run the automatic upgrade from Joomla admin. Update: As @Elin indicated. Snapshot of the sql folder under com_admin. Which sql queries are executed from here? Thanks. 回答1: Look in the sql folder

How to get full url of a article by it's ID in joomla?

坚强是说给别人听的谎言 提交于 2019-12-20 02:44:08
问题 I have article id, How can I get valid full url of this article? This article already associated with menu but I might not know, is there any easy way in php to get url ? I am using joomla 3.2 I tried following already. $article = ControllerLegacy::getInstance('Content')->getModel('Article')->getItem($article‌​Id); JRoute::_(ContentHelperRoute::getArticleRoute($articleId,$article->catid)) 回答1: You can use like this $article = JControllerLegacy::getInstance('Content') ->getModel('Article')-

Redirect a page from one page to another page without changing the url using htaccess

穿精又带淫゛_ 提交于 2019-12-20 00:08:07
问题 Is there any way to Redirect a page from one page to another page without changing the url using htaccess in joomla? I want to change the url http://idaycom.com/index.php/component/quates/ to http://idaycom.com/index.php/component/quotes/ How to change it ? here is my htaccess file ## # @version $Id: htaccess.txt 21101 2011-04-07 15:47:33Z dextercowley $ # @package Joomla # @copyright Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved. # @license GNU General Public License

Redirect a page from one page to another page without changing the url using htaccess

蓝咒 提交于 2019-12-20 00:08:04
问题 Is there any way to Redirect a page from one page to another page without changing the url using htaccess in joomla? I want to change the url http://idaycom.com/index.php/component/quates/ to http://idaycom.com/index.php/component/quotes/ How to change it ? here is my htaccess file ## # @version $Id: htaccess.txt 21101 2011-04-07 15:47:33Z dextercowley $ # @package Joomla # @copyright Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved. # @license GNU General Public License