Icons Problem
5 posters
Page 1 of 1
Icons Problem
Hi,
I got a new forum, and I have a new problem.. Before I already asked for help, but this time, that problem is solved, and there is a new one. I added my own crowns before my username, but the crowns also seen before the forum statics under the forum.
Someone can help me to remove this both icon before the 'Registered Users:' and 'The Newest Registered User Is'
Thanks in advance!
I got a new forum, and I have a new problem.. Before I already asked for help, but this time, that problem is solved, and there is a new one. I added my own crowns before my username, but the crowns also seen before the forum statics under the forum.
Someone can help me to remove this both icon before the 'Registered Users:' and 'The Newest Registered User Is'
Thanks in advance!
Last edited by opp on February 2nd 2013, 1:05 pm; edited 1 time in total
Re: Icons Problem
Akkii wrote:Check this out.
https://help.forumotion.com/t90311-how-to-add-an-icon-before-username
This doesn't help.. I used that to put the icons, and there is not solve for my problem.
Re: Icons Problem
Akkii wrote:And when you remove your CSS code , does that images stay?
Well, when I tried to fix, yes, I removed the codes, but the icons are stay. Now when I removed them no, but I used my old forum's code, which almost perfect as you seen.. two icons are correctly in the good place, but the other two is not.
This is the ONE code what I currently use. (Javascript) And I think this code is the problem..
- Code:
var escapeRegExp;(function(){var a=RegExp("[-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");escapeRegExp=function(d){return d.replace(a,"\\$&")}})(); var icons={before:function(a,d){a=escapeRegExp(a);a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c=document.createElement("img");c.src=d;c.setAttribute("style","float: left");b[i].insertBefore(c,b[i].firstChild)}})},after:function(a,d){a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c= document.createElement("img");c.src=d;c.setAttribute("style","float: none");b[i].insertBefore(c,b[i].firstChild.nextSibling)}})}};
icons.before('Pręmønitiøn, user1', 'http://i1341.photobucket.com/albums/o757/CartTheRiftwalker/Crown1_zpsfd833b74.png');
Re: Icons Problem
Register one more user on your forum. That image would vanish then.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Icons Problem
Try using one that i gaved you link from.opp wrote:Akkii wrote:And when you remove your CSS code , does that images stay?
Well, when I tried to fix, yes, I removed the codes, but the icons are stay. Now when I removed them no, but I used my old forum's code, which almost perfect as you seen.. two icons are correctly in the good place, but the other two is not.
This is the ONE code what I currently use. (Javascript) And I think this code is the problem..
- Code:
var escapeRegExp;(function(){var a=RegExp("[-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");escapeRegExp=function(d){return d.replace(a,"\\$&")}})(); var icons={before:function(a,d){a=escapeRegExp(a);a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c=document.createElement("img");c.src=d;c.setAttribute("style","float: left");b[i].insertBefore(c,b[i].firstChild)}})},after:function(a,d){a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c= document.createElement("img");c.src=d;c.setAttribute("style","float: none");b[i].insertBefore(c,b[i].firstChild.nextSibling)}})}};
icons.before('Pręmønitiøn, user1', 'http://i1341.photobucket.com/albums/o757/CartTheRiftwalker/Crown1_zpsfd833b74.png');
Re: Icons Problem
Sanket wrote:Register one more user on your forum. That image would vanish then.
One icon gone, but still seen one before the 'Registered Members'.. Need another one?
EDIT: Ah, it doesn't works.. Still got an icon before the 'Registered Members'..
Re: Icons Problem
Delete your codes , and use codes from here.
https://help.forumotion.com/t90311-how-to-add-an-icon-before-username
https://help.forumotion.com/t90311-how-to-add-an-icon-before-username
Re: Icons Problem
Akkii wrote:Delete your codes , and use codes from here.
https://help.forumotion.com/t90311-how-to-add-an-icon-before-username
Do you know any other thread where I can find these codes? I don't think so.. then what do you think, where I got the currently codes? I'll help you! From this thread. *-*
Re: Icons Problem
Akkii wrote:Then for what are you using that code above that u posted? o.o
I using that code, what I posted above, and I still got an icon which is not go to correct place.. I can use anything, it's don't work.
Re: Icons Problem
Akkii wrote:Delete all the codes u added for icon , and then add one from link.
Why, if I already used them before you said? I started with that codes, what are you talking about, and DON'T WORK. I re-added them many times, and DON'T WORK. It will never works, need to re-write these codes, because doesn't work perfectly, and this is not my job.
Re: Icons Problem
The codes work fine as they should. Did you register one more user?
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Icons Problem
Sanket wrote:The codes work fine as they should. Did you register one more user?
After I registered one, one crown gone. After I registered another to remove the other one, it's stay. lol I can't remove the last one from 'Registered Members', so I don't know what to do now..
Re: Icons Problem
You are using this code for icons?
- Code:
var escapeRegExp;(function(){var a=RegExp("[-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");escapeRegExp=function(d){return d.replace(a,"\\$&")}})(); var icons={before:function(a,d){a=escapeRegExp(a);a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c=document.createElement("img");c.src=d;c.setAttribute("style","float: left");b[i].insertBefore(c,b[i].firstChild)}})},after:function(a,d){a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c= document.createElement("img");c.src=d;c.setAttribute("style","float: none");b[i].insertBefore(c,b[i].firstChild.nextSibling)}})}};
icons.before('Pręmønitiøn, user1', 'http://i1341.photobucket.com/albums/o757/CartTheRiftwalker/Crown1_zpsfd833b74.png');
Re: Icons Problem
Akkii wrote:You are using this code for icons?
- Code:
var escapeRegExp;(function(){var a=RegExp("[-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");escapeRegExp=function(d){return d.replace(a,"\\$&")}})(); var icons={before:function(a,d){a=escapeRegExp(a);a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c=document.createElement("img");c.src=d;c.setAttribute("style","float: left");b[i].insertBefore(c,b[i].firstChild)}})},after:function(a,d){a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c= document.createElement("img");c.src=d;c.setAttribute("style","float: none");b[i].insertBefore(c,b[i].firstChild.nextSibling)}})}};
icons.before('Pręmønitiøn, user1', 'http://i1341.photobucket.com/albums/o757/CartTheRiftwalker/Crown1_zpsfd833b74.png');
Yea. I put this to Javascript Management, and I found more incorrectly placed icons at posts...
Re: Icons Problem
Akkii wrote:Well i think you can't use css and js for icons at same time.
I'll using only one code atm.
Re: Icons Problem
Maybe someone can tell me whats wrong, or create a correct code which will works, or something else...
Re: Icons Problem
Is more simple with that code .
- Code:
a[href="/user-link"]{
padding-right: 21px;
background: transparent url('Link imagge') no-repeat center right;}
Re: Icons Problem
RicYiu wrote:Is more simple with that code .
- Code:
a[href="/user-link"]{
padding-right: 21px;
background: transparent url('Link imagge') no-repeat center right;}
Thanks, I'll try it now.
EDIT: It doesn't work.. Don't see any icon.
Re: Icons Problem
- Code:
var escapeRegExp;(function(){var a=RegExp("[-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");escapeRegExp=function(d){return d.replace(a,"\\$&")}})();var icons={before:function(a,d){a=escapeRegExp(a);a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c=document.createElement("img");c.src=d;c.setAttribute("style","float: none");b[i].insertBefore(c,b[i].firstChild)}})},after:function(a,d){a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c=document.createElement("img");c.src=d;c.setAttribute("style","float: none");b[i].insertBefore(c,b[i].firstChild.nextSibling)}})}};icons.before('Pręmønitiøn, user1','http://i1341.photobucket.com/albums/o757/CartTheRiftwalker/Crown1_zpsfd833b74.png');
Fixed with that
Re: Icons Problem
RicYiu wrote:
- Code:
var escapeRegExp;(function(){var a=RegExp("[-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");escapeRegExp=function(d){return d.replace(a,"\\$&")}})();var icons={before:function(a,d){a=escapeRegExp(a);a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c=document.createElement("img");c.src=d;c.setAttribute("style","float: none");b[i].insertBefore(c,b[i].firstChild)}})},after:function(a,d){a=a.replace(/\s?,\s?/g,"|");$(function(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(RegExp("^"+a+"$","g").test($(b[i]).text())){var c=document.createElement("img");c.src=d;c.setAttribute("style","float: none");b[i].insertBefore(c,b[i].firstChild.nextSibling)}})}};icons.before('Pręmønitiøn, user1','http://i1341.photobucket.com/albums/o757/CartTheRiftwalker/Crown1_zpsfd833b74.png');
Fixed with that
This works! Woo, finally! Thanks!
Re: Icons Problem
Topic Solved & Locked |
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Problem with icons...
» Problem on profiles with big icons
» Rank icons problem
» Icons for Topics - text problem
» Quick reply problem - Lost all icons
» Problem on profiles with big icons
» Rank icons problem
» Icons for Topics - text problem
» Quick reply problem - Lost all icons
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum