Warning for Locked Topics
3 posters
Page 1 of 1
Warning for Locked Topics
Hello dear user,
I have followed this tutorial.
My forum don't show the warning for locked topics.
Javascript:
CSS:
My forum link is: -delete by Joost-
You have a account needed to login on this forum, i can send you a pb with the login codes as you will.
Many thanks for your time and help !
Regards, Joost
I have followed this tutorial.
My forum don't show the warning for locked topics.
Javascript:
- Code:
$(function(){
$('.bodyline #page-body:has(#i_reply[alt*="locked"]), #main-content:has(.i_reply[alt*="locked"])').prepend('<div class="topic-warning-block" align="center">We\'re sorry but this topic is locked.</div>');
});
CSS:
- Code:
.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;
}
My forum link is: -delete by Joost-
You have a account needed to login on this forum, i can send you a pb with the login codes as you will.
Many thanks for your time and help !
Regards, Joost
Last edited by Joost on January 8th 2018, 8:53 pm; edited 2 times in total
Re: Warning for Locked Topics
Your current viewtopic_body template must be contain 2 things to make it work :
- An image with alt=locked
- An image with alt=locked
- Code:
#main-content:has(.i_reply[alt*="locked"])
Re: Warning for Locked Topics
I need a test account. And if you don't mind, could you please provide your current template here with a tag code?
Re: Warning for Locked Topics
SarkZKalie wrote:I need a test account. And if you don't mind, could you please provide your current template here with a tag code?
I have send you a Pb with the codes for my testing account and the template.
Thanks for your time and help.
Re: Warning for Locked Topics
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Warning for locked topics
» the Script Warning for Locked Topics is not working for some reason
» Replace folder image with a text (folder image = image od topics, new topics, and locked topics of the categories and forums)
» Locked topics
» Deletion of locked topics
» the Script Warning for Locked Topics is not working for some reason
» Replace folder image with a text (folder image = image od topics, new topics, and locked topics of the categories and forums)
» Locked topics
» Deletion of locked topics
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum