d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Java And Css Help
Add Reply New Topic New Poll
Banned
Posts: 2,459
Joined: Mar 15 2014
Gold: Locked
Jun 13 2014 12:10pm
Making topic prefixes for my forum

Java:
Code
jQuery(document).ready(function(){jQuery(".borderwrap, .topiclist, .main-title, .statused").each(function(){jQuery(this).html(jQuery(this).html().replace(/✔/g,'<span id=\'perfix\'>EXAMPLE</span>'))})});


CSS:
Code
#perfix {
background: none repeat scroll 0px 0px rgb(123, 166, 13);
border-radius: 4px 4px 4px 4px;
color: rgb(255, 255, 255);
display: inline-block;
font-size: 9px;
font-weight: 700;
height: 15px;
line-height: 15px;
padding: 0px 5px;
text-transform: uppercase;
vertical-align: middle;
}


Got it to work:


But when ever i click on the links it displays this page:


The javascript seems to do this for every thread i try opening, takes me straight to this. The URL tells me im on the thread, but it appears as an unloaded profile. Can anyone help?
Paying FG to first person to fix the problem

I'm using Invision boards

This post was edited by JiggyTM on Jun 13 2014 12:11pm
Member
Posts: 24,488
Joined: Jul 11 2011
Gold: 1,272.50
Jun 17 2014 04:28pm
That jquery code is irrelevant to that page. It's replacing html with span tags via a regex function. That page is a new link.

Right click - > Inspect element on that 'New Update' text and post it.

This post was edited by HighschoolTurd on Jun 17 2014 04:31pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll