The user has wrote more than 100 posts and comments
Post lover
You have liked more than 50 posts!
Merry Christmas 2022
Thanks for having been with us during Christmas season!
Passioned user
You have participated in 50+ different topics, a true fan!
Forum Writer
You have opened more than 20 topics on the forum
Members Guru
You have received more than 50 likes on your posts. Our members really what you have to say!
Posts : 556 Points : 22220
The issue is I don't have any info if the topic is locked or not. No indicator to tell me if the topic is locked or not. That's why I can't change the image you want.
Go to the bottom of the same template and paste this:
Code:
<script type="text/javascript"> var tableRows = $(".topicList tr").length;
for (i = 0; i < tableRows; i++) {
var image = $(".topicList tr td img")[i]; var imageAtr = image.getAttribute("title"); var imageSrc = image.getAttribute("src");
if (imageSrc == "https://i.servimg.com/u/f22/20/20/54/15/th/i_fold16.gif" && imageAtr == "Dit onderwerp is gesloten. Het plaatsen of bewerken van berichten is niet mogelijk.") { image.setAttribute("src", "https://i.servimg.com/u/f44/11/48/74/42/priori10.gif"); }
The user has wrote more than 100 posts and comments
Post lover
You have liked more than 50 posts!
Merry Christmas 2022
Thanks for having been with us during Christmas season!
Passioned user
You have participated in 50+ different topics, a true fan!
Forum Writer
You have opened more than 20 topics on the forum
Members Guru
You have received more than 50 likes on your posts. Our members really what you have to say!
Posts : 556 Points : 22220
Did you go to the template I told you to? Change the table by adding a class and finally, scroll all the way down in the template and add the script I gave you (including script tags)? If yes, show me your template.
The user has wrote more than 100 posts and comments
Post lover
You have liked more than 50 posts!
Merry Christmas 2022
Thanks for having been with us during Christmas season!
Passioned user
You have participated in 50+ different topics, a true fan!
Forum Writer
You have opened more than 20 topics on the forum
Members Guru
You have received more than 50 likes on your posts. Our members really what you have to say!
Posts : 556 Points : 22220
Writen script doesn't depend on who is viewing the forum. It works for all users. I applied same thing on my test forum and I can see as Admin. It's probably some script that makes problem (some other script). I can't know which one. But, more scripts you have, greater chances something will go wrong.
The user has wrote more than 100 posts and comments
Post lover
You have liked more than 50 posts!
Merry Christmas 2022
Thanks for having been with us during Christmas season!
Passioned user
You have participated in 50+ different topics, a true fan!
Forum Writer
You have opened more than 20 topics on the forum
Members Guru
You have received more than 50 likes on your posts. Our members really what you have to say!
Posts : 556 Points : 22220
Let's try this but it looks very stupid to do it anyway. Edit script like this:
Code:
<script type="text/javascript"> var tableRows = $(".topicList tr").length; var username = _userdata["username"];
for (i = 0; i < tableRows; i++) {
var image = $(".topicList tr td img")[i]; var imageAtr = image.getAttribute("title"); var imageSrc = image.getAttribute("src");
if (imageSrc == "https://i.servimg.com/u/f22/20/20/54/15/th/i_fold16.gif" && imageAtr == "Dit onderwerp is gesloten. Het plaatsen of bewerken van berichten is niet mogelijk.") { image.setAttribute("src", "https://i.servimg.com/u/f44/11/48/74/42/priori10.gif"); } if (imageSrc == "https://i.servimg.com/u/f22/20/20/54/15/th/i_fold16.gif" && imageAtr == "Dit onderwerp is gesloten. Het plaatsen of bewerken van berichten is niet mogelijk." && username == "Admin") { image.setAttribute("src", "https://i.servimg.com/u/f44/11/48/74/42/priori10.gif"); }