Current date/time is August 25th 2019, 8:30 pm

Search found 3 matches for JavaScript

FM Themes

August 8 - 22, 2016

#punBB #themes - 1,000 points
#phpBB2 themes - 1,250 points
#Invision themes - 1, 500 points
#phpBB3 themes - 2,000 points

#rank sets - 1,000 points
topic icon sets - 1,250 points
contact button sets - 1,500 points
#avatar sets - 2,000 points

#CSS #tutorials - 1,000 points
#HTML tutorials - 1,250 points
#JavaScript tutorials - 1,500 points
holiday tutorials - 2,000 points
by SLGray
on August 9th 2016, 4:59 am
 
Search in: Garbage
Topic: FM Themes
Replies: 259
Views: 10893

Certain Text Change

@Ace 1 did you try with the censor function before? Wink

anyway, if you prefer #javascript this code should work:
Code:
$(document).ready(function() {
  var c = document.getElementsByClassName('content clearfix');
    for (i=0; i<c.length; i++) {   
      c[i].innerHTML = c[i].innerHTML.replace(/twitter/g,'<b><font color="#00a5cd">twitter</font></b>');    }});


for example this code replace the word twitter with twitter Wink
Exclamation the only limitation is that the first element (here: twitter) must be replace with the exact word or sentence you want to replace. This way, twitter will be replace, but not Twitter

by Niko
on June 14th 2015, 4:03 pm
 
Search in: Garbage
Topic: Certain Text Change
Replies: 8
Views: 649

Notification widget in all pages

Hello @Lady loki,

the line
Code:
if (_pathName == '/portal' || _pathName == '/forum' || _pathName == '/') {


tells you that the script code can be executed only if the variable pathName (the page you are in) is /portal or /forum or /.. I'd suggest to replace:
Code:
_pathName == '/portal' || _pathName == '/forum' || _pathName == '/'


with:
Code:
_pathName == _pathName


Idea this way the condition will always be true and the #javascript code should be always executed Wink

Give a try :rose:
by Niko
on June 12th 2015, 12:34 pm
 
Search in: Scripts Problems Archives
Topic: Notification widget in all pages
Replies: 13
Views: 762

Back to top

Jump to: