В HTML низ
<!-- Цитата: переход на пост Автора по Клику на Ник -->
<script type="text/javascript">
$(".post-content .quote-box cite:contains('#p')").each(function (){
var b=$(this).text();var c=b.replace(/^#p[\d?]*,/,"");
if(b!=c){b=b.replace(','+c,'');c=(b+b).replace("#p","")+'">'+c+'</a>';
$(this).html('<a href="/viewtopic.php?pid='+c+'');};});$(".post").each(function (){
var b='#'+$(this).attr("id");
pp=$(this).find("li.pl-quote");if(pp.html()!==null){
pp.html(pp.html().replace("ipt:quote('","ipt:quote('"+b+","))};});
</script><!--//End//Переход по клику на Ник-->
<script type="text/javascript">
function select_text(elem) {
if(window.getSelection) {
var s=window.getSelection();
if(s.setBaseAndExtent){
s.setBaseAndExtent(elem,0,elem,elem.innerText.length-1);
}
else {
var r=document.createRange();
r.selectNodeContents(elem);
s.removeAllRanges();
s.addRange(r);
}
}
else if(document.getSelection){
var s=document.getSelection();
var r=document.createRange();
r.selectNodeContents(elem);
s.removeAllRanges();
s.addRange(r);
}
else if(document.selection){
var r=document.body.createTextRange();
r.moveToElementText(elem);
r.select();
}
}
</script>
<script type="text/javascript">
var div = document.getElementById('pun-main').getElementsByTagName('div');
for(x in div){
if(div[x].className=='code-box'){
div[x].getElementsByTagName('strong')[0].innerHTML = '<a href="#" onclick="select_text(this.parentNode.parentNode.childNodes[1].getElementsByTagName(\'pre\')[0]); return false;">Выделить код</a>';
}
}
</script>
<script type="text/javascript">
inColor("red", new Array("Duka", "Admin"))
inColor("blue", new Array("AmiRa", "Impuls 101"))
inColor("green", new Array("likka"))
inColor("gray", new Array("rps"))
inColor("yellow", new Array("Шмель", "Изя", "DART"))function inColor(color, myarray){
var a=document.links
for(i=0;i<a.length;i++){
for(q=0;q<myarray.length;q++){
if(a[i].innerHTML==myarray[q]){
a[i].innerHTML="<span style=\"color: "+color+";\">"+myarray[q]+"</span>"
}}}}
</script>
1. Находим или создаём(Администрирование - форумы) форум с настройками возможности создания тем всем группам, кроме гостей
2. Кликаем данный форум на главной и считываем цифры в конце ссылки, например:
http://forum.mybb.ru/viewforum.php?id=303. Вставляем в начало HTML верх скрипт:
<!-- Предпросмотр личных сообщений --><script type="text/javascript">
var forum_Preview = 30; //Форум с возможностью создания тем всем юзерам
</script>
<script type="text/javascript" src="https://forumstatic.ru/files/0013/61/e9/81572.js"></script>Красным - наши цифры
В HTML верх
<!-- * Новая Палитра © Deff * -->
<script src="http://hostjs-mybb2011.narod.ru/js/Deff_BigPalette.js"></script>Или есть перезалитый на uploads
<!-- * Новая Палитра © Deff * -->
<script src="https://forumstatic.ru/files/0010/b4/f8/74494.js"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery('.yrarrows .top').click(function () {
jQuery('html, body').stop().animate({scrollLeft: 0, scrollTop:0}, 1000);
return false;
});
jQuery('.yrarrows .bottom').click(function () {
jQuery('html, body').stop().animate({scrollLeft: 0, scrollTop:jQuery('body').height() - jQuery(window).height()}, 1000);
return false;
});
});
</script>
<div class="yrarrows" style="position:fixed; right:0.3%; bottom:45%;"><a title="Наверх" href="#top" class="top"><img src="https://forumupload.ru/uploads/000e/14/cc/57-2.gif" alt="В верх страницы" border="0"></a>
<br/><br/>
<a href="#bottom" class="bottom" title="Вниз"><img src="https://forumupload.ru/uploads/000d/8d/19/1174-4.gif" alt="В низ страницы" border="0"></a></div>+ ещё один: http://forum.mybb.ru/viewtopic.php?id=32426#p790946
<!--audio плеер (special edition)v.2.1 обновленный-->
<script language="javascript">
$(function(){
$('td#button-video').before('<td id="floatbut" style=\'background-image:url("http://s5.uploads.ru/4QUIa.gif")\' title="Аудио плеер" onclick="tag_play()"></td>');
$("div.post-content, li.pa-title").map(function () {
text = $(this).html();
if(text.indexOf("[/playf]") != -1) {
changer = /\[playf\](\d+)\[\/playf\]/g
$(this).html(text.replace(changer, "[audio]http://playfile.ru/get/$1/[/audio]"));
}
if(text.indexOf("pleer.com") != -1) {
player = /\[audio\](.*?)\/tracks\/(.*?)\[\/audio\]/gi
$(this).html(text.replace(player, "<br /><embed src='http://embed.pleer.com/track?id=$2' type='application/x-shockwave-flash' wmode='transparent' width='550' height='124'></embed>"));
}
if(text.indexOf("zippyshare.com") != -1) {
player = /\[audio\]http:\/\/www(\d+)\.zippyshare\.com\/v\/(\d+)\/file\.html\[\/audio\]/gi
$(this).html(text.replace(player, "<br /><embed type='application/x-shockwave-flash' src='http://api.zippyshare.com/api/mediaplayer/mediaplayer.swf' flashvars='height=20&width=400&file=http://www$1.zippyshare.com/downloadMusic%3Fkey%3D$2%26&volume=80&autostart=false&frontcolor=0x000000&backcolor=0xffffff&lightcolor=0x000000&type=flv' quality='high' menu='false' wmode='transparent' allowscriptaccess='always' height='20' width='400' name='mp3player' border='0' style='margin-bottom: 6px;'/>"));}if(text.indexOf("http://rghost.ru") != -1) {
player = /\[audio\](.*?)\/(\d+)\[\/audio\]/g
$(this).html(text.replace(player, "<br /><object height='15' width='455' type='application/x-shockwave-flash' data='http://rghost.ru/flash/mediaplayer.swf' id='preview_mp3' style='visibility: visible;'><param name='flashvars' value='file=http://rghost.ru/download/action/$2/mp3&streamer=http://rghost.ru/download/action/$2/mp3'></object>"));
}if(text.indexOf(".mp3") != -1) {
player = /\[audio\](.*?)\[\/audio\]/g
$(this).html(text.replace(player, "<br /><embed type='application/x-shockwave-flash' src='http://www.realmusic.ru/system/mplayer/mediaplayer.swf' quality='high' allowscriptaccess='always' flashvars='height=20&width=400&file=$1' height='20' width='400'></embed>"));
} }); });
var popup, popupp, pop, popzz, poprg, popam, popfl;
function tag_play()
{
pop = window.open("","popDialog","height=270,width=800,Scrollbars=1")
pop.document.open();
// генерировать новый документ
pop.document.write("<html><head><title>Player");
pop.document.write("</title></head><body bgcolor=#00FF00>");
pop.document.write("<font face=Arial><center><font size=+4>");
pop.document.write("<strong>");
pop.document.write("Выберите аудиохостинг:");
pop.document.write("</strong>");
pop.document.write("</br>");
pop.document.write("</font></center>");
pop.document.write("<center><font size=+3>");
pop.document.write("<strong>");
pop.document.write("<a href='http://www.zippyshare.com/?locale=ru'>");
pop.document.write("zippyshare.com");
pop.document.write("</a>");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write("<a href='http://rghost.ru'>");
pop.document.write("rghost.ru");
pop.document.write("</a>");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write(" ");
pop.document.write("<a href='http://pleer.com'>");
pop.document.write("prostopleer.com");
pop.document.write("</a>");
pop.document.write("</br>");
pop.document.write("<a href='http://ato.su/musicbox/'>");
pop.document.write("ato.su");
pop.document.write("</a>");
pop.document.write("</br>");
pop.document.write("</br>");
pop.document.write("</strong>");
pop.document.write("</font></center>");
pop.document.write("<center><font size=+2><font color=#FF0000>");
pop.document.write("<strong>");
pop.document.write("<i>");
pop.document.write("Полученную ссылку на аудиофайл вставьте вместо:");
pop.document.write("</br>");
pop.document.write("[object Window]");
pop.document.write("</i>");
pop.document.write("</strong>");
pop.document.write("</font></font></center></font>");
pop.document.write("</body></html>");
pop.document.close();insert("[audio]" + pop + "[/audio]");}
</script>
<script type="text/javascript">
var img = document.getElementsByTagName("img")
for (i=0; i<img.length; i++){
if(img[i].alt == "+") img[i].src = "КАРТИНКА+"
if(img[i].alt == "-") img[i].src = "КАРТИНКА-"
}
</script>Ставить в хтмл-низ или форму ответа
ПИАР_ВХОД по текущему стандарту Главного Меню
Ставим в самый Низ HTML низ<script type="text/javascript">
PiarNik="PR";
PiarPas="1111";var L="<div id=\"PR_loginDiv\" style=\"display:none;\">\
<form id=\"form_login\" name=\"login\" method=\"post\" action=\"/login.php?action=in\" onsubmit=\"return check_form()\">\
<fieldset>\
<input type=\"hidden\" name=\"form_sent\" value=\"1\"/>\
<input type=\"text\" id=\"fld1\" name=\"req_username\" size=\"21\" maxlength=\"25\"/>\
<input type=\"text\" id=\"fld2\" name=\"req_password\" size=\"7\" maxlength=\"16\"/>\
<input type=\"submit\" class=\"button\" name=\"login\"/>\
</fieldset>\
</form>\
</div>\
<li id=\"navpiar\"><a href=\"#\" onclick=\"PiarIn();return false\"><span>Пиар вход</span></a></li>";
if($("#navlogin").html()!=null){$("#navlogin").after(L) //navlogin
$("#PR_loginDiv #fld1").val(PiarNik)
$("#PR_loginDiv #fld2").val(PiarPas)
function PiarIn () {$("#PR_loginDiv input[type='submit']").click();}
}
</script>Вместо Слова "Пиар вход" можно выставить картинку кодом =>
<img title=\"Быстрый вход для 'Пиарщиков'\" src=\"http://uploads.ru/i/N/V/v/NVvmD.png\"/>
Красное - меняем на своё
Скрипт ставим в Cамый низ в HTML низ
PS: Посколь пароль при такой форме входа неважен, можно его(от ботов) делать сколь угодно сложным и менять периодически
PS2: Нужные: Ник - Пароль вписываете свои вместо красного
Для Защиты от Изменения Пароля -Аватара Реклам-Аккаунта недобросовестными гостями используем Код Скрытия Профиля Реклам-Аккаунта
Перекрываем доступ к Профилю по ID Пиар -Ника
В HTML верх<style>
#pun-main #profile1[action$="id=3"]{
display:none;
}
</style>(Есть вариант запрета смены данных профиля по Нику! => Ссылка)
Красным ID Пиар ника - определяется по крайним справо цифрам после '=' в окне браузера по клику на Пиар профиль в посте....или его ник в Участниках
<style>/*Подвижка банера*/
#pun-title td.title-logo-tdr{
border:solid blue 1px;
display:block!important;
position:absolute!important;
z-index:100;
height:60px!important;
padding-left:0px!important;
width:468px!important;
left:50%!important;
margin-left:-428px!important;
margin-top:-33px!important;
padding-top:0px!important;
}
</style>
<div class=banners align=center><span onclick="BANNERS_TOGGLE($(this).parent('.banners'))"><center><img src="http://savepic.org/2332115.png"></center></span></b></a>
<div class=ba_0 style="display: none">
<style class=BanersHide>/*
<center>Ваши баннеры
Ваши баннеры
Ваши баннеры
</center>
*/</style>
</div></div>
<script>
function BANNERS_TOGGLE(Sel){Z=Sel.find(".ba_0")
if(Z.css("display")=="none"){var V=Sel.find(".ba_0 .BanersHide");if(V.html()!=null){var V1=V.html().replace(/^\/\*([\s\S]*)\*\//img,"$1");Z.html(V1);}Z.fadeIn("slow");
scrollTo(0, document.body.scrollHeight);
}else Z.hide();}</script>
<!--audio в одном v.2.4.2-->
<script type="text/javascript">
var player;
$(function(){
$('td#button-code').before('<td style=\'background-image:url("http://uploads.ru/i/W/Q/P/WQPBO.gif")\' onclick="tag_play()"><img src="/i/blank.gif" title="Загрузить музыку"></td>');
$('div.post-content p').map(function () {
text = $(this).html();
if(text.indexOf("zippyshare.com") != -1) {
player = /\[audio\]http:\/\/www(\d+)\.zippyshare\.com\/v\/(\d+)\/file\.html\[\/audio\]/gi
$(this).html(text.replace(player, "<br /><embed src='http://www$1.zippyshare.com/swf/player_local.swf?file=$2&server=$1&baseurl=http://www.zippyshare.com/api/&flashid=null&autostart=false&availablequality=both&bordercolor=#CCCCCC&forecolor=#000000&backcolor=#F2F2F2&darkcolor=#000000&lightcolor=#FF6600' width='100%' height='80' quality='high' pluginspage='http://www.adobe.com/go/getflashplayer' type='application/x-shockwave-flash' scriptaccess='always' name='$2_1341981'></embed>"));}
if(text.indexOf("promodj.ru") != -1) {
player = /\[audio\]http:\/\/(.*?)\.promodj\.ru\/(.*?)\/(\d+)\/(.*?)\.html\[\/audio\]/gi
$(this).html(text.replace(player, "<br /><embed src='http://i.cdn.promodeejay.net/swf/bigwaveplayer_release9.swf' type='application/x-shockwave-flash' wmode='transparent' width='100%' height='150' allowFullScreen='true' flashvars='link=http%3A%2F%2Fpromodj.ru%2Fprelisten%2F$3%2Fbobmarley%3Fwtf%3D0.41394098338022567%26no_external%3D1&wave=http%3A%2F%2Fpromodj.ru%2Fwaveform_prelisten%2F$3%2Fbobmarley.png%3Fwtf%3D0.41394098338022567%26stub%3D1&slowChannel=1&autostart=0&volumePercent=100&wavecolor=12982542'></embed>"));
}
if(text.indexOf("prostopleer.com") != -1) {
player = /\[audio\](.*?)\/tracks\/(.*?)\[\/audio\]/gi
$(this).html(text.replace(player, "<br /><embed src='http://embed.prostopleer.com/track?id=$2' type='application/x-shockwave-flash' wmode='transparent' width='411' height='28'></embed>"));
}
if(text.indexOf(".mp3") != -1) {
player = /\[audio\](.*?)\[\/audio\]/gi
$(this).html(text.replace(player, "<br /><embed src='http://www.demo-music.ru/pleer/pleer4.swf' type='application/x-shockwave-flash' allowscriptaccess='always' wmode='transparent' flashvars='comment=demo-music.ru&st=http://www.demo-music.ru/pleer/style_pleer.txt&file=$1' width='470' height='33'>"));
} }); });
function tag_play()
{var FoundErrors = '';
var enterURL = prompt("Введите ссылку на на музыку с promodj.ru, zippyshare.com, prostopleer.com или прямую ссылку формата .mp3 ", "http://");
if (!enterURL)
{FoundErrors += " " + error_no_url;}
if (FoundErrors)
{alert("Ошибка!" + FoundErrors);
return;}
insert("[audio]" + enterURL + "[/audio]");}
</script>
<!--Меняем Шрифт в Топике -->
<style id=a_fnt>.post h3 img{margin:0 7px;cursor:pointer;}</style>
<script type="text/javascript">
function setcookieF(a,b,c){if(c){var d=new Date();d.setTime(d.getTime());d=new Date(d.getTime()+c)}if(a&&b)document.cookie=a+'='+b+(c?'; expires='+d.toGMTString():'');else return false}function getcookieF(a){var b=new RegExp(a+'=([^;]){1,}');var c=b.exec(document.cookie);if(c){c=c[0].split('=')}else{return false}return c[1]?c[1]:false}a='<strong class=fnt style="width:auto;margin-right:28%;"><img src="img/minus.png" alt="-" />Шрифт<img src="img/plus.png" alt="+" /></strong>';$(".post:first h3 strong,.post:last h3 strong").after(a);
b_Fnt1='<style id=b_fnt>#main-reply,.punbb .post-content{font-size:';b_Fnt2='px;}</style>'
var c_Fnt;
N=getcookieF('c_Fnt')
if(N){c_Fnt=parseFloat(N);setcookieF('c_Fnt',c_Fnt,30*24*60*60*1000)}else{var c_Fnt=Math.round(parseFloat($(".punbb .post-content").css("font-size")));}
b_Fnt=b_Fnt1+c_Fnt+b_Fnt2; $("#a_fnt").after(b_Fnt);
function setFnt_Size(){
b_Fnt=b_Fnt1+c_Fnt+b_Fnt2;
$("#b_fnt").replaceWith(b_Fnt);//alert(b_Fnt)
setcookieF('c_Fnt',c_Fnt,30*24*60*60*1000);
}
$(".post h3 img[alt='-']").click(function (){if(c_Fnt){c_Fnt--;setFnt_Size();}});
$(".post h3 img[alt='+']").click(function (){if(c_Fnt<38){c_Fnt++;setFnt_Size();}});
</script><!--End//Меняем Шрифт в Топике -->
- Подпись автора
[html]<div id="kozza"><img src="https://forumupload.ru/uploads/001b/2c/35/672/427542.png"></div>
<style>
#kozza {
width:62px!important;
height:62px!important;
position:relative;
z-index:90000!important;
border:1px solid red;
top:200px;
left:5px;
}
</style>[/html]