Polygon

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Polygon » р а з н о е » Доп. навороты


Доп. навороты

Сообщений 1 страница 10 из 10

1

nk

Код:
<script type="text/javascript"> //скрывает от гостей список участников
if (GroupID==3){
if (document.URL.indexOf("userlist.php")!=-1 || document.URL.indexOf("profile.php")!=-1){
document.getElementById('pun-main').innerHTML="<h1><span>Информация</span></h1><div class=\"info\"><div class=\"container\" style=\"padding: 8px;\">Для доступа к этой странице Вам нужно <a href=\"login.php\">войти</a> или <a href=\"register.php\">зарегистрироваться</a>.</div></div>"
}}
</script>

2

nk

Код:
<!—слово «сообщений» кликабельно -->
<script type="text/javascript">
$('.post-author ul').each(function(){
  if(GroupID == 3) {
    var id = $(this).find('.pa-author a').attr('href').split('id=')[1];
  } else {
    id = $(this).parents('.post').find('.pl-email:first a').attr('href').split('id=')[1];
  }
  $(this).find('.pa-posts').html('<a href="/search.php?action=show_user_posts&user_id='+id+'" target="_blank">Сообщений</a>:'+$(this).find('.pa-posts').text().split(':')[1]);
});
</script>

3

nk

Код:
<!-- вставка фрэйма в пост -->
<script type="text/javascript">
function addSpoiler(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf("
"),pos+7)==-1) return str;
newpos=str.indexOf("",pos+7))==-1) return str;
str=str.substring(0,pos)+makeSpoiler(str.substring(pos+7,pos2))+str.substring(pos2+8,str.length)
if( str.indexOf("[frame]")!=-1 && internal==false) str=addSpoiler(str,0,false)
return str}

function makeSpoiler(txt){
txt='<iframe src="'+txt+'" frameborder="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="auto" width="100%" height="600" ></iframe>'
return txt}


if(document.URL.indexOf("viewtopic.php")!=-1){
elm=document.getElementById("pun-main").getElementsByTagName("div")
for(x in elm) if(elm[x].className=="post-content"){
var post=elm[x]
post.innerHTML=addSpoiler(post.innerHTML,0,false)}}
</script>

4

nk

Код:
<!--- внутри темы к "ответить" добавляется "новая тема" --->
<script type="text/javascript">
$('#pun-viewtopic').map(function () {
var Loc = $(this).find('#pun-crumbs1 a:last').attr('href');
Loc = Loc.slice(Loc.indexOf('?id=')+4);
$(this).find('.postlink').append('<span style="padding-left:12px;padding-right:12px"><a rel="nofollow" href="http://'+window.location.hostname+'/post.php?fid='+Loc+'">Новая тема</a></span><span><a rel="nofollow"').css('width','auto');
})
</script>

5

nk

Код:
<!-- кнопка запрета на копирование конкретного поста -->
<style>.punbb img[src*="nocopy.gif"]{display:none;}</style><script type="text/javascript"> var str='<div style="width:100%;text-align:center;"><img style="width:16px;height:16px" src="https://forumstatic.ru/files/0012/01/41/51461.png" title="No Copy Post" onclick="No_Copy_click();"></div>';$("#form-buttons #button-keyboard").after("<td id=nocopy.png >"+str+"</td>");function No_Copy_click(){smile('[img=nk]https://forum.mybb.ru/i/blank.gif[/img]')}
$(document).ready(function() {$(".post-box img[alt='nk']").each(function () {
var a=$(this).parents(".post");var x = a.width()+20;var y = a.height()+20;var Post_off=true;if(GroupID==1){Post_off=false};if(typeof(UserLogin)!='undefined'){if(a.find(".post-author .pa-author a").text()==UserLogin){Post_off=false}}if(Post_off){a.prepend('<div class="Nocopy"><img title="No Copy!" src="/i/blank.gif" style="margin:-10px;position:absolute!important;z-index:1000!important;width:'+x+'px!important;height:'+y+'px!important;"/></div>')}
});});$("#MakeCopyOff").replaceWith("")</script>

6

[html]
<details><summary>https://i.imgur.com/zZkEPm8.png</summary>

</details>
[/html]

7

nk контент

8

nk 111

9

nk

10

nk


Вы здесь » Polygon » р а з н о е » Доп. навороты


Рейтинг форумов | Создать форум бесплатно