Gostava de saber se era possível como colocar aqui no fórum o aviso Novas Mensagens Privadas:
www.suportedesign.net || PunBB
<script>$(function(g) {
var tg = document.getElementById('i_icon_mini_new_message');if(!tg) return;
var mps = $(tg).attr("alt").match(/[0-9]+/);
$('li a[href^="/privmsg?folder=inbox"]').attr('data-counter', ''+mps+'');
});</script>
/* MP */
[data-counter]:after {
background-color: #CF2020;
background-image: -webkit-linear-gradient(#FF6969 0%, #ff0000 100%);
background-image: -moz-linear-gradient(#FF6969 0%, #ff0000 100%);
background-image: -o-linear-gradient(#FF6969 0%, #ff0000 100%);
background-image: -ms-linear-gradient(#FF6969 0%, #ff0000 100%);
background-image: linear-gradient(#FF6969 0%, #ff0000 100%);
content: attr(data-counter);
position: absolute;
-webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3), 0px 1px 0px rgba(255, 255, 255, 0.1) inset;
-moz-box-shadow: 0px 2px 4px rgba(0,0,0,0.3), 0px 1px 0px rgba(255,255,255,0.1) inset;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3), 0px 1px 0px rgba(255, 255, 255, 0.1) inset;
border-radius:2px;
background-clip: padding-box;
font:bold 10px "Helvetica Neue", sans-serif;
color: white;
text-decoration: none;
text-shadow: 0 -1px 0 rgba(0,0,0,.6);
margin-left: 5px;
padding: 5px;
margin-top: -3px;
vertical-align: top;
height: 6px;
line-height: 6px;
}
$(window).load(function() {
/* Show amount of new message(s) */
var new_MSG = document.getElementById('i_icon_mini_new_message');
if(new_MSG) {
var amount = $(new_MSG).attr("alt").match(/[0-9]+/);
$('.ipsHasNotifications').text(amount).show();
}
});
.ipsHasNotifications {
background: none repeat scroll 0 0 #CF2020;
border-radius: 2px 2px 2px 2px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
color: #FFFFFF !important;
font-size: 9px;
height: 12px;
left: 3px;
line-height: 12px;
padding: 0 4px;
position: absolute;
text-align: center;
top: 4px;
}
jQuery(document).ready(function() {
if(jQuery('#logout').length) {
jQuery('#pun-head').replaceWith('<div id="cssmenu"><ul><li class="active"><a href="/forum">Início</a></li>
<li><a href="/portal">Portal</a></li>
<li><a href="/profile?mode=editprofile">Perfil</a></li>
<li><a href="/memberlist">Membros</a></li>
<li><a href="/groups">Grupos</a></li>
<li><a href="/privmsg">Mensagens Privadas</a></li><li class="last"><a href="/login?logout">Sair</a></li></ul></div>
');
}
else {
jQuery('#pun-head').replaceWith('<div id="cssmenu"><ul>
<li class="active"><a href="/">Início</a></li>
<li><a href="/portal">Portal</a></li>
<li><a href="/profile?mode=editprofile">Perfil</a></li>
<li><a href="/memberlist">Membros</a></li>
<li><a href="/groups">Grupos</a></li>
<li><a href="/register">Registar-se</a></li><li class="last"><a href="/login">Entrar</a></li></ul></div>
');
}
jQuery.get('/profile?mode=editprofile', function(data) {
jQuery('.Removed').text(jQuery('input[name="Removed"]:first', data).attr('value')).attr('href',jQuery('.main .main-head .subtitle a', data).attr('href'));
});
jQuery('#quick_reply').before('<div id="quick-avatar"></div> ');
jQuery.get('/profile?mode=editprofile&page_profil=avatars',function(data){
link=jQuery('.frm dl dd img',data).attr('src');
if(link){
jQuery('#quick-avatar').html('<center><a href="/profile?mode=editprofile&page_profil=avatars"><img src="'+link+'" alt=""></a></center>');
}
else{
jQuery('#quick-avatar').html('');
}
});
});
jQuery(function(){jQuery(".pun .post .user:eq(0)").css('border-left','6px solid #76bd27 ')});jQuery(function(){jQuery(".pun .post .user:eq(1)").css('border-left','6px solid #e2ab05 ')});jQuery(function(){jQuery(".pun .post .user:eq(2)").css('border-left','6px solid #2baae0 ')});jQuery(function(){jQuery(".pun .post .user:eq(3)").css('border-left','6px solid #76bd27 ')});jQuery(function(){jQuery(".pun .post .user:eq(4)").css('border-left','6px solid #e2ab05 ')});jQuery(function(){jQuery(".pun .post .user:eq(5)").css('border-left','6px solid #2baae0 ')});jQuery(function(){jQuery(".pun .post .user:eq(6)").css('border-left','6px solid #76bd27 ')});jQuery(function(){jQuery(".pun .post .user:eq(7)").css('border-left','6px solid #e2ab05 ')});jQuery(function(){jQuery(".pun .post .user:eq(8)").css('border-left','6px solid #2baae0 ')});jQuery(function(){jQuery(".pun .post .user:eq(9)").css('border-left','6px solid #76bd27 ')});jQuery(function(){jQuery(".pun .post .user:eq(10)").css('border-left','6px solid #e2ab05 ')});jQuery(function(){jQuery(".pun .post .user:eq(11)").css('border-left','6px solid #2baae0 ')});jQuery(function(){jQuery(".pun .post .user:eq(12)").css('border-left','6px solid #76bd27 ')});jQuery(function(){jQuery(".pun .post .user:eq(13)").css('border-left','6px solid #e2ab05 ')});jQuery(function(){jQuery(".pun .post .user:eq(14)").css('border-left','6px solid #2baae0 ')});jQuery(function(){jQuery(".pun .post .user:eq(15)").css('border-left','6px solid #76bd27 ')});jQuery(function(){jQuery(".pun .post .user:eq(16)").css('border-left','6px solid #e2ab05 ')});jQuery(function(){jQuery(".pun .post .user:eq(17)").css('border-left','6px solid #2baae0 ')});
$(document).ready(function(){$('div.main-head.clearfix:eq(0)').prepend('<div class="topicViewIcons"><a id="topicViewRegular"title="Visualização Regular"class="active"><img src="http://i72.servimg.com/u/f72/18/07/42/17/spacer10.gif"alt=""></a><a id="topicViewBasic"title="Visualização Básica"><img src="http://i72.servimg.com/u/f72/18/07/42/17/spacer10.gif"alt=""></a></div>');$("#topicViewBasic").click(function(){$(".pun .post .user").hide("user");$(".postmain").css('margin-left','0px');$(".postfoot").css('margin-left','0px');$("#topicViewRegular").removeClass("active");jQuery(this).addClass('active');$("#topicViewBasic").addClass(my_getcookie("topicViewBasic"))});$("#topicViewRegular").click(function(){$(".pun .post .user").show("user");$(".postmain").css('margin-left','17em');$(".postfoot").css('margin-left','-17em');$("#topicViewBasic").removeClass("active");jQuery(this).addClass('active')})});
margin-top: -3px;
<div id="pun-navlinks">
<ul class="clearfix">
<li>{GENERATED_NAV_BAR}</li>
</ul>
</div>
<br><br><br><br>
<br><br><br><br>
<div id="pun-navlinks">
<ul class="clearfix">
<li>{GENERATED_NAV_BAR}</li>
</ul>
</div>
#fa_notifications, #fa_welcome {
-khtml-border-top-left-radius:5px !important;
-moz-border-top-left-radius:5px !important;
border-top-left-radius:5px !important;
-khtml-border-top-right-radius:5px !important;
-moz-border-top-right-radius:5px !important;
border-top-right-radius:5px !important;
background:#88bb1e !important;
height: 30px !important;
}
#fa_toolbar {
border-bottom: 6px solid #88bb1e !important;
}
#fa_share {
display: none !important;
}
#fa_notifications, #fa_welcome {
-khtml-border-top-left-radius:5px !important;
-moz-border-top-left-radius:5px !important;
border-top-left-radius:5px !important;
-khtml-border-top-right-radius:5px !important;
-moz-border-top-right-radius:5px !important;
border-top-right-radius:5px !important;
background: -ms-linear-gradient(top,#84bc12,#71a00e) !important;
background: -o-linear-gradient(top,#84bc12,#71a00e) !important;
background: linear-gradient(top,#84bc12,#71a00e) !important;
background: -webkit-linear-gradient(top, rgb(119, 172, 11) 0%,#71a00e 100%) !important;
background: -moz-linear-gradient(top,#84bc12,#71a00e) !important;
height: 30px !important;
}
#fa_toolbar {
border-bottom: 6px solid #709f0d !important;
}
#fa_share {
display: none !important;
}
|
|