joomla2.5

Override components/com_users/models/forms/login.xml - Joomla 2.5?

巧了我就是萌 提交于 2019-11-29 16:37:19
I've been trying to override the file login.xml but no matter what I try, the edited version in my template folder doesn't show up. How can I override this file? Update I have tried template/<templatename>/html/com_users/models/login.xml and other variations like template/<templatename>/html/com_users/models/forms/login.xml or template/<templatename>/html/com_users/forms/login.xml etc without any success. Shaz Here's a solution: http://forum.joomla.org/viewtopic.php?t=583380#p2375649 I just tested it in Joomla 2.5.3 and it works. Update here is the solution copied from above URL We can

save form field in component params joomla

半城伤御伤魂 提交于 2019-11-29 15:36:58
I am using joomla 2.5, I am working on custom component of joomla . I have created the form in backend admin page. what i need is , i want to save the post data of form in params row of that component in database of #_extensions . Here is my tables/component.php <?php defined('_JEXEC') or die('Restricted access'); jimport('joomla.database.table'); class componentTablecomponent extends JTable { function __construct(&$db) { parent::__construct('#__extensions', 'extension_id', $db); } public function bind($array, $ignore = '') { if (isset($array['params']) && is_array($array['params'])) { //

Keep parent with children open when linking to new page

杀马特。学长 韩版系。学妹 提交于 2019-11-29 12:34:36
I have a vertical accordion menu that opens on hover, stays open and closes when other items are hovered. I had great help from @JDandChips on getting this working. What I really need now though is to be able to select a particular menu item (virtual-tour) to open the nested list. Then when navigating through each link in this nested list it loads a new page (already does this as it's Joomla!) and the nested list stays open on these pages only. Then when another link is clicked it closed again. Here's what I have working... <script type="text/javascript"> $(function () { $("ul.menu-main > li")

JOOMLA site too slow

笑着哭i 提交于 2019-11-29 12:13:05
my Joomla site is too slow. It approximately uses 8 to 10 s to load main page. I am using xampp. template protostar. PC core i7. OS windows. JOOMLA 3.15. Is it normal ?? OR any any one may please guide me how to debug this issue. Oppz i solved it just right now. I disable Xdebug in php.ini and time reduces form 8s to 1s [XDebug] ;zend_extension= "C:\Users\arslan\Desktop\xampp-win32-1.8.1-VC9\xampp\php\ext\php_xdebug.dll" ;xdebug.remote_enable=on ;xdebug.remote_handler=dbgp ;xdebug.remote_host="localhost" ;xdebug.remote_port=9001 ;xdebug.remote_autostart=1 my server was xampp. Joomla site slow

Overriding Joomla core component file

亡梦爱人 提交于 2019-11-29 04:13:48
I am trying to override the com_content/views/article/view.html.php file in joomla using the instructions given in this page It says I have to create a folder named 'code' in base directory and create the same directory structure. I tried it , but its not working. Can someone confirm whether its working. Where should I create code folder? Is it on root of joomla installations? PS- The edit is working correctly when applied on core file You can override (nearly) any class in Joomla, if your class with the same name is loaded first. To ensure that, you need to create a system plugin. Here is an

Write to multiple tables in joomla component?

痞子三分冷 提交于 2019-11-29 02:57:34
问题 I'm trying to create a component (front end) that uses multiple tables. I found 1 or 2 post that partially answer to the question but none really does. The point seems always simple and evident for the one who knows how to do it but it is never really explained (or I missed the right post). In my component, the user enters data in one view that need to be stored in two tables: the standard Joomla User table i.e. # __users an additional table to store data that are not included in Joomla i.e.

How to Save Uploaded File's Name on Database

人走茶凉 提交于 2019-11-28 11:35:00
Cont. - Add File Uploader to Joomla Admin Component I could able to upload file and save it on disk. But its not saving file name on the database. How can i do it ? Here is the controller - class InvoiceManagerControllerInvoiceManager extends JControllerForm { function save(){ $file = JRequest::getVar('jform', null, 'files', 'array'); $path = JPATH_BASE; // Make the file name safe. jimport('joomla.filesystem.file'); $file['name']['invoice'] = JFile::makeSafe($file['name']['invoice']); // Move the uploaded file into a permanent location. if (isset($file['name']['invoice'])) { // Make sure that

save form field in component params joomla

☆樱花仙子☆ 提交于 2019-11-28 09:41:16
问题 I am using joomla 2.5, I am working on custom component of joomla . I have created the form in backend admin page. what i need is , i want to save the post data of form in params row of that component in database of #_extensions . Here is my tables/component.php <?php defined('_JEXEC') or die('Restricted access'); jimport('joomla.database.table'); class componentTablecomponent extends JTable { function __construct(&$db) { parent::__construct('#__extensions', 'extension_id', $db); } public

Override components/com_users/models/forms/login.xml - Joomla 2.5?

坚强是说给别人听的谎言 提交于 2019-11-28 09:36:40
问题 I've been trying to override the file login.xml but no matter what I try, the edited version in my template folder doesn't show up. How can I override this file? Update I have tried template/<templatename>/html/com_users/models/login.xml and other variations like template/<templatename>/html/com_users/models/forms/login.xml or template/<templatename>/html/com_users/forms/login.xml etc without any success. 回答1: Here's a solution: http://forum.joomla.org/viewtopic.php?t=583380#p2375649 I just

Create a Joomla! Article Programmatically

做~自己de王妃 提交于 2019-11-27 20:20:15
I have created my own component. When I add a new record to my component, I also want it to create a new article in joomla (i.e. using com_content). I found this on stack overflow Programmatically adding an article to Joomla which explains how to do it. The code makes sense, and looks like it will work. The problem is that once methods start being called that are contained in com_content, all the relative URLs in com_content break down and joomla throws an error. Does anyone know a way to overcome this? A comment from the link above suggests that changing the current working directory to the