Hallo
habe bei mir nach Diesem Thread (http://www.pragmamx.org/Forum-topic-16213-start-msg111928.html#msg111928) das Profil als Popup eingebaut.
jedoch habe ich Schwierigkeiten beim Platzieren der links. Z.B. im who_is_online block.
Ich will dort beim Klick auf den Info Button das Profil als Popup öffnen lassen.
Der Code sieht so aus:
$content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border: 0px; margin-bottom: 5px;\">\n";
$content .= "\n<tr>\n<td colspan=\"2\" align=\"center\">\n";
$content .= "<img src=\"$imagedir/guy_hand.gif\" width=\"19\" height=\"19\" border=\"0\" alt=\"" . _BWOPICS . "\" align=\"absmiddle\">\n<b>" . _BWOONLINELIST . "</b>\n<img src=\"$imagedir/girl_hand.gif\" width=\"19\" height=\"19\" border=\"0\" alt=\"" . _BWOPICS . "\" align=\"absmiddle\"><br>\n";
$content .= "</td>\n</tr>\n";
$content .= "\n<tr>\n<td colspan=\"2\" align=\"center\">"; # select-options verwenden
$content .= "<form action=\"modules.php?test\" name=\"onlineuserinfo\" method=\"get\" style=\"border: 0px; margin-bottom: 5px; margin-top: 0px;\">";
$content .= "<input type=\"hidden\" name=\"name\" value=\"Your_Account\">";
$content .= "<input type=\"hidden\" name=\"op\" value=\"userinfo\">";
$content .= "<select name=\"uname\" size=\"$onlinelistsize\" style=\" background-color: $bgcolor1; font-size: 9px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: $txtcolor1; width: 90%; cursor: hand; border: 1px solid $bgcolor2; text-decoration: none; padding-left: 1px; padding-top: 1px; padding-bottom: 1px;\" $script>" . $whoonlineselect . "</select>";
[b] $content .= "<br>\n<input type=\"image\" src=\"$imagedir/info.png\" alt=\"" . _BWOUSERINFO . "\" style=\"background-color: transparent; border: none;\">";
$content .= "</form>\n";
$content .= "</td>\n</tr>\n";
$content .= "</table>\n";[/b]
Wobei der Link wohl der am Anfang des Fettgedruckten sein dürfte.
Die Funktion ist:
window.open('modules.php?name=Userinfo&uname='+x, '" . md5(time()) . "' ,'left=370,top=150,width=600, height=650,toolbar=no,location=no,menubar=no,scrollbars=yes,resizeable=yes,status=no');\n";
Wie muss ich dies genau verändern, dass das funktioniert?