The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Warning for Locked Topics

3 posters

Go down

Solved Warning for Locked Topics

Post by Joost 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
Joost
Joost
Active Poster

Male Posts : 1411
Reputation : 194
Language : Dutch, English
Location : The Netherlands

https://ondersteun.actieforum.com/

Back to top Go down

Solved Re: Warning for Locked Topics

Post by SarkZKalie 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


Warning for Locked Topics Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1447
Reputation : 220
Language : English

https://rotavn.forumotion.com/

Back to top Go down

Solved Re: Warning for Locked Topics

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

@SarkZKalie , how can i install this in the viewtopic_body template ? Warning for Locked Topics 1f600
Joost
Joost
Active Poster

Male Posts : 1411
Reputation : 194
Language : Dutch, English
Location : The Netherlands

https://ondersteun.actieforum.com/

Back to top Go down

Solved Re: Warning for Locked Topics

Post by SarkZKalie 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?


Warning for Locked Topics Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1447
Reputation : 220
Language : English

https://rotavn.forumotion.com/

Back to top Go down

Solved Re: Warning for Locked Topics

Post by Joost 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
Joost
Joost
Active Poster

Male Posts : 1411
Reputation : 194
Language : Dutch, English
Location : The Netherlands

https://ondersteun.actieforum.com/

Back to top Go down

Solved Re: Warning for Locked Topics

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

These support question is solved! Thank you @SarkZKalie Very Happy
Joost
Joost
Active Poster

Male Posts : 1411
Reputation : 194
Language : Dutch, English
Location : The Netherlands

https://ondersteun.actieforum.com/

Back to top Go down

Solved Re: Warning for Locked Topics

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

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


Warning for Locked Topics Slgray10

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

Male Posts : 51570
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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