The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

User icon shows wrong and How do i change the Profile background

View previous topic View next topic Go down

In progress User icon shows wrong and How do i change the Profile background

Post by CallMeMatt on February 25th 2013, 5:28 pm

I've used the "Icon before username" code for Invision,
And it shows right on the home page and chatbox,
but in the post, it just shows the same for everyone i added one to.
And no icon shows on Portal.


Also, how would i do to add a background on the Profile information in posts like this

But the background is only going to be for me, and threw the whole post (wide)

Glad for every answer, thanks.

CallMeMatt
New Member

Posts : 8
Reputation : 1
Language : Swedish

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by CallMeMatt on February 25th 2013, 7:54 pm

Could i please get some help?

CallMeMatt
New Member

Posts : 8
Reputation : 1
Language : Swedish

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by SLGray on February 25th 2013, 7:58 pm

Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!


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


SLGray
Administrator
Administrator

Male Posts : 36663
Reputation : 2444
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by CallMeMatt on February 26th 2013, 10:19 pm

Bump.
Nobody knows this..?

CallMeMatt
New Member

Posts : 8
Reputation : 1
Language : Swedish

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by Cassius Dio on February 27th 2013, 6:04 am

Hi! Very Happy

For first problem, did you selected "All pages" to field "Placement"?

For second one, add to JavaScript codes management:
Code:
$(document).ready(function(){
$('.post .postprofile').has('a[href="/u1"]').addClass('adminpost');
});

And then to CSS Stylesheet:
Code:
.adminpost .postprofile{
background: #00CCEE !important;
}
You can replace #00CCEE by another color. Wink

Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by CallMeMatt on February 27th 2013, 2:57 pm

Yes, i've ticked All pages.
And the profile background you put, did not work at all.

Any other ways?

CallMeMatt
New Member

Posts : 8
Reputation : 1
Language : Swedish

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by CallMeMatt on March 1st 2013, 2:37 pm

Bump.

CallMeMatt
New Member

Posts : 8
Reputation : 1
Language : Swedish

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by Cassius Dio on March 1st 2013, 2:40 pm

Sorry, replace the CSS code with:
Code:
.adminpost{
background: #00CCEE !important;
}

The JavaScript code is the same.

Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by CallMeMatt on March 1st 2013, 3:21 pm

Thanks, now i just need help with the Icons before the username.

CallMeMatt
New Member

Posts : 8
Reputation : 1
Language : Swedish

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by Cassius Dio on March 1st 2013, 3:24 pm

Can you post here all the codes you've used for adding an icon before username? Thanks. Very Happy

Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by CallMeMatt on March 1st 2013, 7:00 pm

I actually got it to work (kind of),
but there's a couple issues with it.

Instead of the CSS i first used i switched to JS instead,
Code:
$(function() {
if($('a[href="/u1"] span strong')){
            $('a[href="/u1"] span strong').before('<img src="https://dl.dropbox.com/u/35320740/20091122095739%21Jmod_crown.png" border="0" />');
    }
});

But the issue with that is,
1. The icon does not show before the username (above the avatar) as it did before.


2. The icons doesn't show at all for offline users?

3. The icons doesn't show in the chatbox?

CallMeMatt
New Member

Posts : 8
Reputation : 1
Language : Swedish

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by Cassius Dio on March 1st 2013, 8:45 pm

Try replacing it by:
Code:
$(function() {
if($('a[href="/u1"]')){
            $('a[href="/u1"]').before('<img src="https://dl.dropbox.com/u/35320740/20091122095739%21Jmod_crown.png" border="0" />');
    }
});

Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

In progress Re: User icon shows wrong and How do i change the Profile background

Post by CallMeMatt on March 1st 2013, 10:28 pm

It did not work, it's still the same.

CallMeMatt
New Member

Posts : 8
Reputation : 1
Language : Swedish

Back to top Go down

View previous topic View next topic Back to top


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