ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Anyone here know joomla? I put this up on the joomla support site and haven't had an answer yet.
I need to hook a function in Joomla and insert my own function ahead of the Joomla function.
Basically, this site has mosdirectory and I need to hook mosdirectory and do some pre/post processing on data that will be presented to mosdirectory.
Since Joomla is completely database driven and makes extensive use of variable functions, following what it is doing is somewhat challenging.
I have found where the function components are identified in jos_components (a mysql table), and if I have to I'll just sit down and figure it all out the hard way. But I bid this job fixed price and it sure would be nice if someone who knew the answer could tell me how to do it.
Essentially, I want to intercept any call from Joomla to mosdirectory, process the transaction myself, then pass it on to mosdirectory. My processing may well consist of "No, I'm not interested in this one", but I want every call to mosdirectory to go through my code first.
I use Joomla and have hacked it a little but the only module I use is for comments. Just find the function that does the mod_directory stuff and add a call to your own at the start. Pass the data you want to modify to your function and return it after processing. If you posted specific code sample it'd be easier.
I specifically don't want to modify the mod_directory code; that will break compatibility with updates. I know that function can be hooked, and if I play with it for probably a few hours, I will know how. I would like to save myself the few hours; fixed price contracts work to your advantage if you can do it FAST!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.