The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to put the badge under the avatar via Javascript?

2 posters

Go down

Solved How to put the badge under the avatar via Javascript?

Post by Alkimachos Wed 19 Sep - 14:37

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//

avatar
Alkimachos
Forumember

Posts : 35
Reputation : 1
Language : Greek

Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by Alkimachos Sun 23 Sep - 19:17

bump?
avatar
Alkimachos
Forumember

Posts : 35
Reputation : 1
Language : Greek

Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by Guest Sun 23 Sep - 22:15

Do you need it in JS? why not just use a postion system with CSS?
avatar
Guest
Guest


Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by Alkimachos Mon 24 Sep - 13:06

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?
avatar
Alkimachos
Forumember

Posts : 35
Reputation : 1
Language : Greek

Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by SLGray Mon 24 Sep - 21:47

Post the code that you used to move the username.


How to put the badge under the avatar via Javascript? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by Alkimachos Mon 24 Sep - 21:59

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]);
}
});
avatar
Alkimachos
Forumember

Posts : 35
Reputation : 1
Language : Greek

Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by Alkimachos Tue 25 Sep - 9:24

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.
avatar
Alkimachos
Forumember

Posts : 35
Reputation : 1
Language : Greek

Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by Alkimachos Thu 27 Sep - 11:09

Bump
avatar
Alkimachos
Forumember

Posts : 35
Reputation : 1
Language : Greek

Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by Alkimachos Mon 1 Oct - 0:56

Any help please?
avatar
Alkimachos
Forumember

Posts : 35
Reputation : 1
Language : Greek

Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by Alkimachos Thu 4 Oct - 0:47

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();
});
});
avatar
Alkimachos
Forumember

Posts : 35
Reputation : 1
Language : Greek

Back to top Go down

Solved Re: How to put the badge under the avatar via Javascript?

Post by SLGray Thu 4 Oct - 1:24

Topic Solved & Locked


How to put the badge under the avatar via Javascript? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum