The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Warning for Locked Topics

Go down

Solved Warning for Locked Topics

Post by Joost on December 30th 2017, 3:47 pm

Hello dear user,


I have followed this tutorial.
My forum don't show the warning for locked topics. Shocked

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. Smile
Many thanks for your time and help ! Very Happy

Regards, Joost


Last edited by Joost on January 8th 2018, 8:53 pm; edited 2 times in total
avatar
Joost
Forumember

Male Posts : 760
Reputation : 8
Language : Dutch
Location : The Netherlands

http://ondersteun.actieforum.com/u119

Back to top Go down

Solved Re: Warning for Locked Topics

Post by SarkZKalie on December 31st 2017, 8:12 pm

Your current viewtopic_body template must be contain 2 things to make it work :
- An image with alt=locked
Code:
#main-content:has(.i_reply[alt*="locked"])
- A topic already locked
avatar
SarkZKalie
Forumember

Male Posts : 680
Reputation : 101
Language : English

http://rotavn.nstars.org/

Back to top Go down

Solved Re: Warning for Locked Topics

Post by Joost on January 1st 2018, 12:13 pm

@SarkZKalie , how can i install this in the viewtopic_body template ?
avatar
Joost
Forumember

Male Posts : 760
Reputation : 8
Language : Dutch
Location : The Netherlands

http://ondersteun.actieforum.com/u119

Back to top Go down

Solved Re: Warning for Locked Topics

Post by SarkZKalie on January 2nd 2018, 10:33 am

I need a test account. And if you don't mind, could you please provide your current template here with a tag code?
avatar
SarkZKalie
Forumember

Male Posts : 680
Reputation : 101
Language : English

http://rotavn.nstars.org/

Back to top Go down

Solved Re: Warning for Locked Topics

Post by Joost on January 2nd 2018, 10:49 am

@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. Smile
Thanks for your time and help. Mr. Green
avatar
Joost
Forumember

Male Posts : 760
Reputation : 8
Language : Dutch
Location : The Netherlands

http://ondersteun.actieforum.com/u119

Back to top Go down

Solved Re: Warning for Locked Topics

Post by Joost on January 8th 2018, 8:53 pm

These support question is solved! Thank you @SarkZKalie Very Happy
avatar
Joost
Forumember

Male Posts : 760
Reputation : 8
Language : Dutch
Location : The Netherlands

http://ondersteun.actieforum.com/u119

Back to top Go down

Solved Re: Warning for Locked Topics

Post by SLGray on January 8th 2018, 8:58 pm

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 42685
Reputation : 3003
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum