MyXoops Forum

Forum - myXOOPS German Support

4 - 2 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Re: neue PN's Popup

Betreff: Re: neue PN's Popup
von sato-san am 19.05.2006 21:45:03

in der theme.html muß nach "<{$xoops_module_header}>" folgendes eingetragen werden.

Zitat:

<!-- Popup Window -->

<SCRIPT LANGUAGE="JavaScript">
<!--
function Start(page)
{
OpenWin = this.open(page, "CtrlWindow","toolbar=No,menubar=No,location=No,scrollbars=Yes,resizable=Yes,status=No,width=550,height=520,left=150,top=100,");
}
//-->
</SCRIPT>



jetzt erst folgt:

Zitat:

</script>
</head>
<body>


Nun kommt in der html-Datei (oder auch im Flash mit der GET-Option):

Zitat:

...<td><div align="center"><{if $xoops_isuser}>
<a href="<{$xoops_url}>/user.php">
Hallo <img style="vertical-align: bottom;" src="<{$xoops_url}>/images/menu_icons/icon_author.gif">
<{$xoops_uname}></a> &nbsp;|&nbsp;
<a href="<{$xoops_url}>/user.php"><img src="<{$xoops_url}>/images/menu_icons/icon_magazine.gif"> Dein Konto</a> &nbsp;|&nbsp;
<a href="<{$xoops_url}>/notifications.php"><img src="<{$xoops_url}>/images/menu_icons/icon_blogs.gif"> Benachrichtigung</a> &nbsp;|&nbsp;
<a href="<{$xoops_url}>/viewpmsg.php"><img src="<{$xoops_url}>/images/menu_icons/icon_mail1.gif"> Posteingang</a>
<{if $ex_new_messages > 0}>
<{if $smarty.server.SCRIPT_NAME == "/index.php"}>
<script language="javascript" type="text/javascript">
<!--
msg="<b>Hallo! <{$xoops_uname}></b><br />Sie haben <span style='color:#ff0000; font-weight: bold;'><{$ex_new_messages}></span> neu(e) PNs";
openwin (msg)
function openwin(message) {
w = open("", "message", "width=250,height=150,toolbar=no,scrollbars=yes,resizable=yes");
w.focus();
w.document.open();
w.document.write("<html><head></head><meta http-equiv='content-type' content='text/html; charset=<{$xoops_charset}>' /><title>Sie haben neue PNs</title><body><br><br><center>");
w.document.write(message);
w.document.write("<br /><br /><a href=\"javascript:window.opener.location='<{$xoops_url}>/viewpmsg.php';window.close();\">");
w.document.write("Anzeigen</a>");
w.document.write("</center></body></html>");
w.document.close();
}
// -->
</script>
<{/if}>
<a class="highlight" href="<{$xoops_url}>/viewpmsg.php">
<span style="color:#ff6600; font-weight: nomal;"><img src="<{$xoops_url}>/images/menu_icons/note.gif"> Neue PNs=<{$ex_new_messages}>
</span></a>
<{/if}>
&nbsp;|&nbsp;
<{if $xoops_isadmin}>
<a href="<{$xoops_url}>/admin.php">admin</a>
&nbsp;|&nbsp;
<{/if}>
<a href="<{$xoops_url}>/user.php?op=logout"><img src="<{$xoops_url}>/images/menu_icons/icon_logout.gif"> Log-out</a>
<{else}> <a href="<{$xoops_url}>/user.php"><img src="<{$xoops_url}>/images/menu_icons/icon_login.gif"> Log-in</a>&nbsp;|&nbsp;
<a href="<{$xoops_url}>/register.php"><img src="<{$xoops_url}>/images/menu_icons/erstanmeldung.gif"> Erstanmeldung!</a>
<{/if}> </div></td>....


Ich selbst habe mehrere Wochen dafür gebraucht, also bitte nicht einbilden, dass das gleich geht. Da benötigt man schon ein bisschen Gedult und Übung. Einfach ausprobieren.

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5322 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1813 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag