1
hey XOOPS community,
we are working on some mods, first of all a mod of wf-downloads.
but we need some help on this mod and others mods, we will give you more infos about our mods if they are working as we want it
my first questionwe have a pop-up window, and in this window we have a button. so when user click on this button the window should close and in the original window (where the site is) should open a page/link.
so we got that to work Quote:
echo '</table><table width="100%" border="0">
<tr> <td align="center"><input class="formButton" value="Mehr Infos" type="button" onclick="java script:window.opener.location=\'http://www.power-dreams.com/testumgebung/userinfo.php?uid=1\';window.close();" /></td>
<td align="center"><input class="formButton" value="'._CLOSE.'" type="button" onclick="java script:window.close();" /></td></tr></table>';
so maybe you see the problem what we have, we are using the static url for that, because we dont got it to work with xoops_url.
we looked in the misc.php and we found that Quote:
echo '<td>'.$avatar."</td><td><a href=\"java script:window.opener.location='".XOOPS_URL."/userinfo.php?uid=".$onlineUsers[$i]['user']->getVar('uid')."';window.close();\">".$onlineUsers[$i]['user']->getVar('uname')."</a>";
so here is the .XOOPS_URL. variable but we dont got it work in our code, maybe someone could help us with this problem.
my second questionthis question is about another problem in another modul, we have a admin menu and in this admin menu we want that it will display a specific modul with its modul name. how can i do that? (in a php file)
hopefully someone can help us