inherit
208636
0
Sept 7, 2020 9:37:44 GMT -8
s54smg2
72
April 2014
s54smg2
|
Post by s54smg2 on Jan 22, 2015 8:21:13 GMT -8
Ok, So i noticed that this "swap" script does not follow through to the mobile version. On my Mobile device the original text of "oops" still shows. Is there a solution for this code? I figured the "swap" solution would push the thread back like it has with no solution. . . NOT A FAN OF THE SWAP SOLUTION
|
|
inherit
(??_?)
181912
RIP RIP RIP Almost RIP - Why does this social section still exist?
0
1
Jul 6, 2015 20:35:17 GMT -8
CheatAreZee
56,804
March 2005
zyvoloski
Ricky's Mini-Profile
|
Post by CheatAreZee on Jan 22, 2015 9:56:58 GMT -8
I'm afraid that's not an issue with the swap-it code itself, rather, codes and plugins currently do not load on the mobile pages. It's not currently possible to change that message on the mobile view at this time. The swap-it code is the only method I know that works at this time on the desktop view, so that is indeed the only solution I can offer. If you do not like the switch-it code you can request a plugin here. (though again, plugins will not work on the mobile view)
|
|
inherit
208636
0
Sept 7, 2020 9:37:44 GMT -8
s54smg2
72
April 2014
s54smg2
|
Post by s54smg2 on Jan 22, 2015 10:07:45 GMT -8
Still happy for all your help.
Im new at all this, I'll start searching better before I post.
|
|
inherit
(??_?)
181912
RIP RIP RIP Almost RIP - Why does this social section still exist?
0
1
Jul 6, 2015 20:35:17 GMT -8
CheatAreZee
56,804
March 2005
zyvoloski
Ricky's Mini-Profile
|
Post by CheatAreZee on Jan 22, 2015 10:10:05 GMT -8
It's not a problem at all, s54smg2. Feel free to let us know if you need anything else!
|
|
inherit
222996
0
Jul 12, 2015 10:21:23 GMT -8
merakii
13
July 2015
merakii
|
Post by merakii on Jul 10, 2015 6:20:22 GMT -8
s54smg2, I tested, and works great for me. This is what I added to my Global Footer: <script>
var swap = (function(){ return { it: function(a, b){ if(document.createTreeWalker){ var walker = document.createTreeWalker($("#content")[0], NodeFilter.SHOW_TEXT, function(n){ return n.data.match(new RegExp(a, "gi"))? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; }, false);
while(walker.nextNode()){ walker.currentNode.data = walker.currentNode.data.replace(new RegExp(a, "gi"), b); } } else if(document.body.createTextRange){ var r = document.body.createTextRange(); r.collapse(true);
while(r.findText(a)){ r.text = b; r.collapse(false); } } } }; })();
</script>
<script>
swap.it("Oops, there was an error!", "Unable to comply..."); swap.it("You do not have permission to access this board.", "Unauthorized Access to this section is prohibited.");
</script> Yes, I know... The lines I changed to, show it's for my Star Trek site.....LOL Thank you!!! The is the solution that works.
|
|