Jump to content

Adauga Optiunea De Inchidere/deschidere Ipb [Vn32] Sticky Message 1.1


Recommended Posts

Posted

Modificarea [VN32] Sticky Message 1.1, va permite adaugarea unui sticky message pe forumul dvs. platforma IPB 3.2.x. Modul, in mod standard nu vine cu posibilitatea de Inchidere/Deschidere, asadar, daca doriti ca mesajul sa poate fi inchis si/sau deschis, in functie de preferinte, va trebui sa efectuati urmatoarea modificare:

Mergeti in: ACP -> Look & Feel -> skin_name -> Board Index -> VNStickyGlobalMessage

Inlocuiti continutul fisierului, cu liniile de mai jos:

<script type="text/javascript"> 
function sembunyikan(){if(document.getElementById("stickymsg").className==""){document.getElementById("stickymsg").className="maho_sembunyi";document.getElementById("sembunyikan").className="maho_tampil";document.getElementById("tampilkan").className=""}else{document.getElementById("stickymsg").className="";document.getElementById("sembunyikan").className="";document.getElementById("tampilkan").className="maho_tampil"}setCookie("maho_sembunyistickymsg",document.getElementById("stickymsg").className,1)}function setCookie(a,b,c){var d=new Date;d.setDate(d.getDate()+c);var e=escape(B)+(c==null?"":"; expires="+d.toUTCString());document.cookie=a+"="+e}function getCookie(a){var b,c,d,e=document.cookie.split(";");for(b=0;b<e.length;b++){c=e[b].substr(0,e[b].indexOf("="));d=e[b].substr(e[b].indexOf("=")+1);c=c.replace(/^\s+|\s+$/g,"");if(c==a){return unescape(d)}}}function checkCookie(){var a=getCookie("maho_sembunyistickymsg");if(a!=""){document.getElementById("stickymsg").className="maho_sembunyi";document.getElementById("sembunyikan").className="maho_tampil";document.getElementById("tampilkan").className=""}else{document.getElementById("stickymsg").className="";document.getElementById("sembunyikan").className="";document.getElementById("tampilkan").className="maho_tampil"}}window.onload=function(){checkCookie()}
</script>
<style type='text/css'>
.maho_sembunyi{min-width: 14px !important;}
.maho_sembunyi span{display:none !important;}
.maho_tampil{display:none !important;}
#stickymsg{position: fixed;
{$this->settings['vn_sticky_message_system_location']}: 10px;
line-height: 16px;
{$this->settings['vn_sticky_message_system_position']}: 10px;
z-index: 30000;
opacity: 0.8;
min-width: 260px;
height: auto;
background: #cf3737;
color: #fff;
text-shadow: rgba(0,0,0,0.3) 0px -1px 0px;
padding: 10px;
text-decoration: none;font-size: 11px;font-family: Tahoma;
border: 1px solid #771b1b;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #f66c6c 0px 1px 0px;
border-radius: 3px;}
#stickymsg a{color: #fff;
font-weight:bold;
text-decoration: none;}
#stickymsg:hover{ opacity: 1; }
#sembunyikan,
#tampilkan{position:absolute; cursor:pointer;}
#sembunyikan:before{content:"×";}
#sembunyikan{right:3px;top:-2px;}
#tampilkan:before{content:"Show";}
#tampilkan{top:1px;right:1px;}
</style>
<div align='center'>
<div id='stickymsg'><span>{$data['message']}</span>
<p onclick="sembunyikan()" id="sembunyikan"></p>
<p onclick="sembunyikan()" class="maho_tampil" id="tampilkan"></p>
</div>
[/code]

[b][color="#008000"]Rezultatul:[/color][/b]

vnstickymessage.png

  • Upvote 1

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

  • 8 months later...

  • 1 year later...
Posted

Merge si pe 3.4.7 ?

                                                                                    jocuri-468x60.png

                   

                                                                                                   Recomand cu incredere HZone Romania - Webhost Calitate Maxima 

  • Moderators
Posted

Daca merge hookul, ar trebui sa mearga si modificarea aia :)

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.