Hot answers tagged

15 votes
Accepted

What is the Joomla Execution Flow, after a request reach to index.php till the final output on the browser?

Answer's ToC 1. Intro for beginners + beginners resources link 2. About Joomla Architecture 3. Joomla Execution Flow - How Joomla Works 4. Supplementary Resources 1. Intro for Beginners ...
FFrewin's user avatar
  • 19.6k
4 votes

How can I use google recaptcha in my custom page?

First read carefully in which files the SO answer that you quoted tells you to put the code. Also, the code you attached is no longer working in Joomla 3.5. This is due to a change in the reCaptcha ...
ilias's user avatar
  • 725
3 votes
Accepted

Importing Joomla CMS to custom PHP script (outside root folder)

This is because the JPATH_BASE value needs updating as you've moved the file into a new directory. So replace this: define('JPATH_BASE', realpath(dirname(__FILE__).'/')); with this: define('...
Lodder's user avatar
  • 26.9k
3 votes
Accepted

How to execute query in Joomla 3x sub-controller

Try to rename your class in /controllers/getdata.php to: ChichiMobilePostControllerGetdata Then Joomla can find the right class and execute getcollection() if you call it via http://localhost/chichi-...
fruppel's user avatar
  • 3,723
3 votes

What is an efficient way to troubleshoot a "white screen of death"

It seems that no one has mentioned disabling output buffering - so I'll mention it here... Output buffering is very nasty for debugging, and even if you set your error reporting to maximum and add ...
itoctopus's user avatar
  • 3,216
3 votes

Disable website to all but logged in users

I'm going to give my answer for this based on @Bryan's answer. The Members Only plugin looks very promising, so no comment on that. The registeredOnly plugin is free, however I was not impressed ...
Lodder's user avatar
  • 26.9k
3 votes

Recommended extension / tool to check for core file modifications?

http://audit-fs.co.za/ has a free tool called Audit_FS that shows you modified Joomla files and/or possibly corrupted Joomla files. As a basic security tool Audit_FS is designed to perform audits ...
Richard's user avatar
  • 39
3 votes

Copying Joomla Menu Items and keeping Module assignements

I needed exactly the same thing so I made a plugin that makes Save as copy work that way. You can find it here: https://github.com/alexxandar/copy-module-assignments
Alexxandar's user avatar
2 votes

How to use Smart Search in a multilingual environment?

I was having the same problem today. On my categories I had a "master" category for each language as suggested on a multi-language website. The normal search and smart search both seem not to search ...
anakin's user avatar
  • 131
2 votes

Adding javascript file in the footer & custom styles

There is no method to add a script to the footer right now. However you could make a plugin that gets the output, searches for an appropriately named tag, like footer and use str_replace to add in ...
Joomler's user avatar
  • 1,801
2 votes

How do I pull data from a K2 extra field that is an array?

@reactionfaye 's reply above is correct. For reference, this has been part of K2 since Nov 2012 :) Originally introduced in this blog post for the release of K2 v2.6.2 (http://getk2.org/blog/1068-k2-...
fevangelou's user avatar
2 votes
Accepted

Joomla don't see subgroups in the Articles tab (Joomla 4)

Please note the difference between "user groups" and "access levels". Access Levels determine which users have access to certain views and features. Said levels are assigned to ...
Lodder's user avatar
  • 26.9k
1 vote

How can I use google recaptcha in my custom page?

Joomla 3.x Correct $joomla_captcha = JFactory::getConfig()->get('captcha'); if ( $joomla_captcha != '0') { JPluginHelper::importPlugin('captcha'); $dispatcher = JDispatcher::getInstance(...
Олег Косарев's user avatar
1 vote
Accepted

What does getApplication mean in Joomla?

According to the Joomla API reference manual getApplication returns the global CMSApplication object, only creating it if it doesn't already exist. Imagine getApplication calls the guts behind Joomla ...
Terry Carter's user avatar
  • 1,812
1 vote

Make a module that is a feed of multiple other modules?

Sorry if my answer is too obvious, but why can't you write a custom module and then borrow code out of the other modules to pull all the data in, sort by date and build your own output? The notion of ...
jamesgarrett's user avatar
  • 3,299
1 vote

What is the Joomla Execution Flow, after a request reach to index.php till the final output on the browser?

Small contribution, the full list of Joomla! Plugin Events.
Gruber's user avatar
  • 302
1 vote

How to override Module js file in Joomla?

You can also do this by including Javascript file in footer so that it will overwrite the file. Create a new file called footer.php in /libraries/joomla/document/html/renderer/ directory: In /...
Joomler's user avatar
  • 1,801
1 vote

How to override Module js file in Joomla?

If it's your own custom module - go with another answer solution, but if it's not yours - I suggest you to go with JCH Optimizer - free version fully covers your needs.
Alexandr's user avatar
  • 1,130
1 vote

How to override Module js file in Joomla?

Assuming the module is using the following method to import the script: JHtml::_('script', 'path/to/file.js', array(), true); Not using $doc->script() Then you need to copy the file to the ...
Lodder's user avatar
  • 26.9k
1 vote

2 domains, 2 templates one cms with same content

That sounds like a great idea for a plugin. You could have a single site mapped to multiple domain names and let the plugin assign the template based on the domain used to visit the site. ...
Michael's user avatar
  • 593
1 vote

2 domains, 2 templates one cms with same content

I have achieved that using Multi-Sites extensions. I have tried the Mighty-Sites and Joomla Multi-Sites. Both can be configured to share database content - although Multi-sites will require additional ...
FFrewin's user avatar
  • 19.6k
1 vote

2 domains, 2 templates one cms with same content

It might be clearer if you explain how you have set up 2 domains and 2 templates with one Joomla installation. In any case, you should be able to set up separate menu options that point to the same ...
Neil Robertson's user avatar
1 vote

Is there anything wrong with setting Joomla session variables consecutively in an external php script?

OK, the problem is that we got to use the same session. In order to do that. We had to call $session->getId() to get current seeeion_id then send it to the client side, when we create the session ...
Jack Ting's user avatar
  • 111
1 vote

How can I programatically determine the Joomla version of a website on which I have no administration privileges?

You can check the default files on the local/remote joomla installation at /administrator/components/com_admin/sql/updates/sqlazure /administrator/components/com_admin/sql/updates/mysql /...
shyam somana's user avatar
1 vote

How can I programatically determine the Joomla version of a website on which I have no administration privileges?

You might choose to focus on dates rather than versions as such. E.g. if you look at the modification date in the headers for a common static file (e.g. maybe you might choose the jquery script file),...
mc0e's user avatar
  • 111
1 vote

Recommended practices regarding Joomla file/directory permissions and ownership on linux systems?

Late to the party. I came here looking as well as other places for a definitive guide on what folders need to be writeable for joomla. Sorry folks to be the harbinger of bad news. The advice to use ...
DeveloperChris's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible