LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2006, 09:05 PM   #1
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
hooking joomla function


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.
 
Old 03-29-2006, 09:54 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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.
 
Old 03-29-2006, 10:02 PM   #3
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Original Poster
Rep: Reputation: 116Reputation: 116
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!
 
Old 03-30-2006, 02:16 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
interrupt hooking in linux fuzzyBuzz Programming 1 09-21-2005 06:20 PM
Hooking two computers up to each other possible? Devbmx Linux - Networking 14 03-01-2005 05:45 PM
Hooking a TV as a monitor SimpleLinuxuser Linux - Hardware 2 02-05-2005 04:16 PM
Hooking up Linux to Cable Surfin'Gumby Linux - Networking 10 05-25-2004 07:32 AM
hooking up to internet w/ LAN studpenguin Linux - Newbie 6 12-18-2003 03:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration