Nie wiem jak nazwać temat więc proszę moderatorów o wyrozumialość.
Używam fusiona w wersji 6.1.11
Po dodaniu w panelu viwera na kanał TeamSpeak /program do komunikacji głosowej/ nie mogę wymusić w IE przezroczystego tła. Modyfikując pliki css moda uzyskuję taki efekt w FF i operze. Nie chce ograniczać uzytkowników do jednego skina i dla tego potrzebuje Waszej pomocy. Oczywiście mogę narzucić kolor tła defaultowego thema ale to rozwiązanie raczej jednorazowe.
Postaram się opisać wszysko krok po kroku...
1. tworzę nowy panel i wklejam do nigo natępujący kod:
openside("Team Speak");
echo"
<table bgcolor='' >
<tr>
<td bgcolor=''><iframe name='strona' background color:
' src='http://www.polsilve.webd.pl/infusions/TeamspeakDisplay-PR3/demo.php' width='160' height='380'
frameborder='0'></iframe></td>
</tr>
</table>";
closeside();
gdzie zmodyfikowanie którego kolwiek z kolorów powoduje zmianę koloru tła ... ale nie mogę uzyskac przezroczystego tła w IE gdzie jest ono poprostu białe.
w plikach: demo.php można w zasadzie zmienić tylko dwa wpisy ale bez efektu.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Teamspeak Display Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<link href="demo.css" rel="stylesheet" type="text/css">
<link href="teamspeakdisplay/teamspeakdisplay.css" rel="stylesheet" type="text/css">
<div id="teamspeakdisplay" style='background-color: #none'>
<?php
if (isset($_GET['autorefresh'])) {
$autorefresh = $_GET['autorefresh'];
} else {
$autorefresh = 0;
}
if ($autorefresh == 1) {
echo(" <meta http-equiv=\"refresh\" content=\"10; URL=" . $_SERVER["PHP_SELF"] . "?autorefresh=1\">\n");
}
?>
</head>
<body>
<?php
// The code between the 2 lines below turns on PHPs error handlers.
// Uncomment it for debugging purposes, but leave commented in live
// environments. Having your script running in a live environment with the
// error handlers turned on, decreases your sites security as a warning may
// reveal information used to exploit security holes in your site.
//================== BEGIN OF ERROR REPORTING CODE ====================
//echo("<span style=\"color: #dd0000; font-weight: bold\">Error reporting ");
//echo("is currently on. Turn it off in live environments !</span><br><br>\n");
//error_reporting(E_ALL);
//ini_set("display_errors", "1");
//ini_set("display_startup_errors", "1");
//ini_set("ignore_repeated_errors", "0");
//ini_set("ignore_repeated_source", "0");
//ini_set("report_memleaks", "1");
//ini_set("track_errors", "1");
//ini_set("html_errors", "1");
//ini_set("warn_plus_overloading", "1");
//================== END OF ERROR REPORTING CODE ======================
// Load the Teamspeak Display:
require("teamspeakdisplay/teamspeakdisplay.php");
// Get the default settings
$settings = $teamspeakDisplay->getDefaultSettings();
//================== BEGIN OF CONFIGURATION CODE ======================
// Set the teamspeak server IP or Hostname below (DO NOT INCLUDE THE
// PORT NUMBER):86.63.64.60
$settings["serveraddress"] = "86.63.64.60";
// If your you use another port than 8767 to connect to your teamspeak
// server using a teamspeak client, then uncomment the line below and
// set the correct teamspeak port:8888
$settings["serverudpport"] = "8888";
// If your teamspeak server uses another query port than 51234, then
// uncomment the line below and set the teamspeak query port of your
// server (look in the server.ini of your teamspeak server for this
// portnumber):
//$settings["serverqueryport"] = 51234;
// If you want to limit the display to only one channel including it's
// players and subchannels, uncomment the following line and set the
// exact name of the channel. This feature is case-sensitive!
$settings["limitchannel"] = "^ToP. Clan TeamSpeak";
// If your teamspeak server uses another set of forbidden nickname
// characters than "()[]{}" (look in your server.ini for this setting),
// then uncomment the following line and set the correct set of
// forbidden nickname characters:
//$settings["forbiddennicknamechars"] = "()[]{}";
//================== END OF CONFIGURATION CODE ========================
// Is the script improperly configured?
if ($settings["serveraddress"] == "") { die("You need to configure this script as described inside the CONFIGURATION CODE block in " . $_SERVER["PHP_SELF"] . "<br>\n"); }
// Display the Teamspeak server
$teamspeakDisplay->displayTeamspeakEx($settings);
// Display autorefresh status and control link:
echo("<br>\n");
if ($autorefresh == 0) {
echo("Autorefresh: Off (<a href=\"" . $_SERVER["PHP_SELF"] . "?autorefresh=1\">Turn on</a>)<br>\n");
} else if ($autorefresh == 1) {
echo("Autorefresh: On (<a href=\"" . $_SERVER["PHP_SELF"] . "?autorefresh=0\">Turn off</a>)<br>\n");
}
?>
<br>
Powered by <a class="nolink" target="_blank" href="http://tsdisplay.sourceforge.net">Teamspeak Display</a><br>
</body>
</html>
natomiast w mode.css zrobiłem coś takiego:
body, td, th, div, span, p, form, input, select, textarea {
font: 7pt arial, verdana,helvetica;
background-color: transparent;
}
h1 {
font: 7pt Franklin Gothic, Arial, sans-serif;
background-color: transparent;
}
a {
color: #00000;
background-color: transparent;
}
a:hover {
color: #00000;
background-color: transparent;
}
a.nolink {
color: #C7C9CF;
text-decoration: none;
background-color: transparent;
}
a.nolink:hover {
color: #C7C9CF;
text-decoration: underline;
background-color: transparent;
}
a w pliku teamspeakdisplay:
/* Teamspeak Display Preview Release 3 */
/* Copyright (C) 2005 Guido van Biemen (aka MrGuide@NL) */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program; if not, write to the Free Software */
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#teamspeakdisplay img {
border: 0px;
background-color: transparent;
}
#teamspeakdisplay table {
border-collapse: collapse;
border-spacing: 0px;
background-color: transparent;
}
#teamspeakdisplay td {
font: 7pt arial, verdana,helvetica;
padding: 0px;
vertical-align: top;
background-color: transparent;
}
#teamspeakdisplay td.teamspeakserver {
padding-left: 0px;
font-weight: bold;
background-color: transparent;
}
#teamspeakdisplay td.teamspeakchannel {
padding-left: 0px;
background-color: transparent;
}
#teamspeakdisplay td.teamspeaksubchannel {
padding-left: 0px;
background-color: transparent;
}
#teamspeakdisplay td.teamspeakplayer {
padding-left: 0px;
font-weight: bold;
color: #FFCC33;
background-color: transparent;
}
#teamspeakdisplay a.teamspeakserver {
font: 7pt arial, verdana,helvetica;
text-decoration: none;
font-weight: bold;
color: #FFCC33;
background-color: transparent;
}
#teamspeakdisplay a.teamspeakserver:hover {
color: #FFCC33;
}
#teamspeakdisplay a.teamspeakchannel {
font: 7pt arial, verdana,helvetica;
font-weight: bold;
text-decoration: none;
color: #FFCC33;
background-color: transparent;
}
#teamspeakdisplay a.teamspeakchannel:hover {
color: #FFCC33;
}
#teamspeakdisplay a.teamspeaksubchannel {
font: 7pt arial, verdana,helvetica;
font-weight: bold;
text-decoration: none;
color: #FFCC33;
background-color: transparent;
}
#teamspeakdisplay a.teamspeaksubchannel:hover {
color: #FFCC33;
background-color: transparent;
}
metoda mocno toporna ale daje zadowalający efekt
www.topaaclan.up.pl
niestety nie w IE.
Z reką na sercu oświadczam, że przejrzałem tematy na forum i zawarte w nich informacje nie posunęly mnie ani na krok do przodu. Być może moją winą jest to, że w zasadzie nie używam IE i nie widzaiłem tego błędu (pewnie równierz dla tego, że do wczoraj narzucony miałem kolror tła thema i dopiero na prośbę użytkowników postanowiłem to zmienić.
Sorry za dłuuuugi topic i czekam na pomocną dłoń. |