1
Hija.
I'm writing a module, and implemented a basic search functionality, which gets its results from a remote server (I mean, it gets the results from a remote server, and includes them in the 'search results' of the standard XOOPS search).
To get these remote results one needs a sort of password, and a userid.
First I hardcoded these values in include/search.inc.php, but I want them to be configured from within the admin panel, using the standard XOOPS configuration possibilities ('Preferences').
The 'Preferences' thing is working, but I cannot use the results in my search function
I did it like this:
function mysearchfunction(blablabla) {
global $xoopsModuleConfig;
//blablabla
soSomeSearchFunction($querystring[0], $xoopsModuleConfig['pass']);
}
If I print_r xoopsModuleConfig, nothing is desplayed, and the search functionality doesnt work either. Of course this isn't my real code, just a sample of my problem.
Is there any way I can solve this?
Thanks, Ikke