Technical Details
Forum version : phpBB3Position : Founder
Concerned browser(s) : Mozilla Firefox
Who the problem concerns : Yourself
When the problem appeared : When comparing forum versions PHPBB3 and PHPBB2
Forum link : http://drvenibrodovi.forumotion.eu/
Description of problem
I noticed that JavaScript working fine on PHPBB 2 does not work on PHPBB 3. What is the reason of this incompatibility?The code in question is:
- Code:
$(function(){
$('.bodyline #page-body:has(#i_reply[alt*="zaključan"]), #main-content:has(.i_reply[alt*="zaključan"])').prepend('<div class="topic-warning-block" align="center">Tema je zaključana, ne može se više mjenjati.</div>');
});
It is applied to denote locked topic. Word "zaključan" means "locked" in my native language.
There is CSS code with this JavaScript code:
- Code:
/* Locked topic */
.topic-warning-block {
border: 1px solid;
margin: 10px 0px;
padding: 15px 10px 15px 50px;
background-repeat: no-repeat;
background-position: 10px center;
background-image: url(http://1.bp.blogspot.com/_5rlxf3T9Z9U/SsIXuytpYfI/AAAAAAAADcI/I4Tm0W5gDQk/lock_32.png);
color: #750000 !important;
background-color: #D26067;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
text-align: center;
font-weight: bold;
font-size: 18px;
text-shadow: 1px 1px 1px #AAA;
}
Why is necessary to introduce this kind of incompatibility in so fraternal forum versions?
Last edited by HrvojeP on February 23rd 2015, 12:01 am; edited 1 time in total