28.06.2013, 04:55
Guten Morgen
Ich habe eine Frage bezüglich meines Teamspeak Viewer.
Dieser is in dem Template Index eingebunden und soll nu nur für Member bzw nur von bestimmten gruppen gesehen werden.
Meine Template sieht wie folgt aus.
Der Folgende Code der nur für member sichtbar sein soll,is rot markiert.
Ich habe aus dem Code mal meine Teamspeak ID Entfernt,muss ja nich jeder meine ID wissen ^^
Hoffe jemand kann mir hierbei behilflich sein.
Vielan Dank schonmal.
Edit: Hmm den Farbcode sieht man ja nich...Auf jedenfall meine ich ganz unten ab {$overview_body} bis </div>[/color]
Ich habe eine Frage bezüglich meines Teamspeak Viewer.
Dieser is in dem Template Index eingebunden und soll nu nur für Member bzw nur von bestimmten gruppen gesehen werden.
Meine Template sieht wie folgt aus.
Code:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
{$overview_headerinclude}
<script type="text/javascript" language="JavaScript">
<!--
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script src="http://tab-slide-out.googlecode.com/files/jquery.tabSlideOut.v1.3.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', //class of the element that will become your tab
pathToTabImage: 'images/ts_3.png', //path to the image for the tab //Optionally can be set using css
imageHeight: '150px', //height of tab image //Optionally can be set using css
imageWidth: '30px', //width of tab image //Optionally can be set using css
tabLocation: 'right', //side of screen where tab lives, top, right, bottom, or left
speed: 300, //speed of animation
action: 'click', //options: 'click' or 'hover', action to trigger animation
topPos: '80px', //position from the top/ use if tabLocation is left or right
leftPos: '10px', //position from left/ use if tabLocation is bottom or top
fixedPosition: false //options: true makes it stick(fixed position) on scroll
});
});
</script>
<style type="text/css">
.slide-out-div {
padding: 0px;
width: 230px;
height: 110%;
background: url(images/ts_3_bg.png) no-repeat ;
border: 0px;
position: absolute;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$("#content").hide();
$("a.open-close").click(function () {
$("#content").slideToggle("slow");
});
});
</script>
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript">
window.onload=function()
{
SlideIn={};
}
</script>
</head>
<body{$overview_body_onload}>
<div id="Grafik"><img src="motto2.png" width="80" height="400" border="0" align="top" alt="motto2"/></div>
{$header}
{$overview}
{$forums}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Wer ist im Chat?</strong></td>
</tr>
<tr>
<td class="trow1" style="vertical-align: top;"><iframe src="http://www.++++++.de/test/m_chat/chaton.php" style="border:0px #FE0E44 none;" scrolling="auto" frameborder="0" height="60" width="100%"></iframe>
</td>
</tr>
</table>
<br />
{$mystatus_latest_statuses}
{$boardstats}
{$shoutbox}
<dl class="forum_legend smalltext">
<dt><img src="{$theme['imgdir']}/tw1/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->new_posts}</dd>
<dt><img src="{$theme['imgdir']}/tw1/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->no_new_posts}</dd>
<dt><img src="{$theme['imgdir']}/tw1/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
{$overview_body}
[color=#FF0000]<div class="slide-out-div">
<a class="handle" href="http://link-for-non-js-users.html">Content</a>
<div id="ts3viewer_######" > </div>
<script type="text/javascript" src="http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script>
<script type="text/javascript">
<!--
var ts3v_url_1 = "http://www.tsviewer.com/ts3viewer.php?ID=#######text=cdcdcd&text_size=12&text_family=1&js=1&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=525284&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_color_h=525284&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_color_h=525284&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=525284&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none";
ts3v_display.init(ts3v_url_1, 1017313, 100);
-->
</script></div>[/color]
</body>
</html>
Der Folgende Code der nur für member sichtbar sein soll,is rot markiert.
Ich habe aus dem Code mal meine Teamspeak ID Entfernt,muss ja nich jeder meine ID wissen ^^
Hoffe jemand kann mir hierbei behilflich sein.
Vielan Dank schonmal.
Edit: Hmm den Farbcode sieht man ja nich...Auf jedenfall meine ich ganz unten ab {$overview_body} bis </div>[/color]