1
translucide
How to make a popup without theme apperaing but moduleconfig options loaded and xoopsDB obj loaded?

I want to make a popup in a module because I dont want people to get back and foward buttons each time they want to check this page.

I thought about making a layer (div tags) appear instead of a real popup but because of the limited scrolling capabilities of divs and the code needed to make them scrollable and draggable I decided it was better to take the popup option for portability and user-friendly side.

I use XOOPS 2.2 on a php 4 server (everything works great).

I have found the code to make the popup appear :
javascrixax:openWithSelfMain(url,name,width,height,returnwindow)
but I want an alternative to loading the mainfile.php in my poped file (php file) because it loads the theme with it.

What should I use (is there any object already designed for this in xooops api?). I want the $xoopsModuleConfig and $xoopsDB already loaded or available by using a module handler

2
translucide
Re: How to make a popup without theme apperaing but moduleconfig options loaded and xoopsDB obj load

I found my own solution in misc.php in the root dir...

just have to replace :
include(XOOPS_ROOT_PATH . "/header.php");

by :
if ($_GET['action'] == 'showpopups') {
xoops_header(false);
?>

echo '

title...


';
}
else include(XOOPS_ROOT_PATH . "/header.php");

and same process with footer.php included at the bottom of the page...

Thanks anyway!

Login

Who's Online

446 user(s) are online (368 user(s) are browsing Support Forums)


Members: 0


Guests: 446


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits