I need a Solution For Module Popups

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Nov 15, 2011 1:15 am
I need a solution to have a popup on one of my clients pages. I know there are a lot of modal popup solutions but very few that can actually display a module. I'm trying to put a geo map in a popup, the contents come from Jomsocial and or Jreviews Geomap. So I have to worry about SEO urls and linkage. Anyone have any idea's?

In the mean time I'm gonna be hacking Gavicks popup code they use with the login and register links.
User avatar
Platinum Boarder

GK User
Tue Nov 15, 2011 1:48 am
I went through Gavicks code, pretty straight forward , default.php has the variables, logo.php has the link, register.php or login.php would be easy to hack.

Problem!!! Gavick is calling specific modules that do 1 thing, no module ID is needed just a name. While I would have to use a specific module ID to call the right Module.. still lost.
User avatar
Platinum Boarder

GK User
Wed Nov 16, 2011 12:02 pm
This is because currently Joomla doesn't have a function to call modules by its ID, you can load modules by its name or position. By calling module by its name it defeats using ID as if you delete a module and create a new one ID gets changed so using ID in code is not practical. Use name of the module. e.g module title.

Code: Select all
jimport( 'joomla.application.module.helper' );
$module = JModuleHelper::getModule( 'login', 'Login Module Name' );
User avatar
Platinum Boarder

GK User
Wed Nov 16, 2011 5:55 pm
Ok I got it.. it's not the ID or Module type I should call but the actual name of the module. It just so happened that login and register modules where named login and register.. Light turns on!!
User avatar
Platinum Boarder


cron