How to put the badge under the avatar via Javascript?
2 posters
Page 1 of 1
How to put the badge under the avatar via Javascript?
Hi guys!
We have an issue on how to put the member's badges and rank below the avatar but with Javascript.. Do some of you know that?
Thanks in advance...
//phpBB 3.0//
We have an issue on how to put the member's badges and rank below the avatar but with Javascript.. Do some of you know that?
Thanks in advance...
//phpBB 3.0//
Alkimachos- Forumember
- Posts : 35
Reputation : 1
Language : Greek
Alkimachos- Forumember
- Posts : 35
Reputation : 1
Language : Greek
Re: How to put the badge under the avatar via Javascript?
Do you need it in JS? why not just use a postion system with CSS?
Guest- Guest
Re: How to put the badge under the avatar via Javascript?
Rideem3 wrote:In phpBB3, the rank should already be below the avatar. Are you sure you're using phpBB3?
Yes, through java we putted the name above the avatar (because phpBB3 had it below), from our mistake though, we moved also the badge and the rank too. Now, we need a javascript where we could move the badge and the rank title below the avatar.
Any help please?
Alkimachos- Forumember
- Posts : 35
Reputation : 1
Language : Greek
Re: How to put the badge under the avatar via Javascript?
Post the code that you used to move the username.
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.
Re: How to put the badge under the avatar via Javascript?
slg wrote:Post the code that you used to move the username.
Ι think is this:
$(function(){
var post = $('.postprofile');
for(var i = 0, l = post.length; i<l; i++) {
var av = post[i].getElementsByTagName('a')[0];
var dd = document.createElement('dd').appendChild(av);
post[i].getElementsByTagName('dl')[0].insertBefore(dd,post[i].getElementsByTagName('dd')[1]);
}
});
Alkimachos- Forumember
- Posts : 35
Reputation : 1
Language : Greek
Re: How to put the badge under the avatar via Javascript?
Rideem3 wrote:Are you sure that you have phpBB3, and not phpBB2? phpBB3 has the username under the username by default. phpBB2 doesn't.
Yeah, i know but we changed that with a javascript. But accidentally we putted the badge and the rank above the avatar when we tried to move only the username. We need the javascript to move only the rank and the badge below the avatar.
Alkimachos- Forumember
- Posts : 35
Reputation : 1
Language : Greek
Alkimachos- Forumember
- Posts : 35
Reputation : 1
Language : Greek
Re: How to put the badge under the avatar via Javascript?
Any help please?
Alkimachos- Forumember
- Posts : 35
Reputation : 1
Language : Greek
Re: How to put the badge under the avatar via Javascript?
SOLVED with this:
$(function(){
$('.postprofile dl').each(function(){
var theBox = $(this).children('dt:first');
var uNameX = theBox.children('strong').html()+'<br>';
theBox.children('a').before(uNameX);
theBox.children('strong').hide();
});
});
Alkimachos- Forumember
- Posts : 35
Reputation : 1
Language : Greek
Re: How to put the badge under the avatar via Javascript?
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
» Adding A badge On The Bottom-Right Corner of The Avatar For Members of A Specific Usergroup?
» badge box
» T-Mod badge
» Badge Request!
» Badge Request
» badge box
» T-Mod badge
» Badge Request!
» Badge Request
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum