Current date/time is May 7th 2024, 7:34 pm

Search found 1 match for aa6709

"New" icon code problem

Hello, i used the below code but it is not working at all. I cannot find the error indeed. Here you see


To add this you must go to HTML & JAVASCRIPT -> Javascript codes management Create a new javascript and add this script

Placement: In all the pages
Code:
$(function() {
  $('.forabg dl[style*="https://i.servimg.com/u/f88/20/00/67/44/forum_11.gif"]').find('a.forumtitle').append('<span class="new-post">NEW</span>');
});


Then we must style it with css code

Code:
.new-post {
  background: #84c754;
  font-size: 12px;
  margin-left: 10px;
  border-radius: 3px;
  color: #fff;
  padding: 1px 5px;
}


Remember to replace your Forum - New icons with yours this part <span style="color: #aa6709;background: #fff4e5;border: 1px solid #f9c479;padding: 0px .35em;border-radius: 2px;">[style*="https://i.servimg.com/u/f88/20/00/67/44/forum_11.gif"]</span>


Link to the post of problem below
https://forumservice.forumotion.com/t118-new-post-indicator
by Dipener
on February 16th 2023, 3:02 pm
 
Search in: Scripts Problems Archives
Topic: "New" icon code problem
Replies: 19
Views: 575

Back to top

Jump to: