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.

Ask Post Profile CSS / JS

View previous topic View next topic Go down

Solved Ask Post Profile CSS / JS

Post by triadiprabowo on Thu 3 May - 3:17

Hi,

I have some question regarding this posting profile layout.

1.) I want to make the profile can show / hide the profile info, so the default content only show for avatar & username

2.) Is it possible to adding image before username?

Thanks.

Best,
MrFixy


Last edited by triadiprabowo on Thu 3 May - 15:00; edited 1 time in total

triadiprabowo
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by NikkoBryan14 on Thu 3 May - 3:41

You mean?

NikkoBryan14
Forumember

Male Posts : 274
Reputation : 8
Language : English
Location : Philippines

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by triadiprabowo on Thu 3 May - 4:09


triadiprabowo
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by Nera. on Thu 3 May - 5:39

Hi, add this to AP > Modules > JS managment and mark all pages.

Code:
/* Kruna ispred nicka administratora. By BubbleDreams 2011 -
AdminCentar.net . Nemoj uklanjati copyright! Don't remove copyright! */

$(function() {
if($('a[href="/u1"] span strong')){
            $('a[href="/u1"] span strong').before('<img src="http://cdn2.iconfinder.com/data/icons/ledicons/crown.png" border="0" />');
    }
});

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by triadiprabowo on Thu 3 May - 6:59

Thanks and do you know how to make Show / Hide profile?

triadiprabowo
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by LGforum on Thu 3 May - 10:41

Everytime I see that code I have to point out... the copyright isn't even a valid copyright Rolling Eyes

For the toggling put this is in a JS code and tick 'in the topics' only:
Code:

$('.postprofile dd').hide();
$('.postprofile dt').after('<span onclick="$(\'dd\',this.parentNode).toggle()">Toggle Profile</span>');
(it will need to go inside a $(function(){}); block, if you have one.)

It will need sprucing up a little.


Last edited by LGforum on Thu 3 May - 10:52; edited 1 time in total

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by Nera. on Thu 3 May - 10:45

And I told you at what address to point it at lol!

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by sivastar on Thu 3 May - 11:40

Code:
$(function(){
$('.postprofile dd').hide();
$('.postprofile dt').after('<span onclick="$(\'dd\',this.parentNode).toggle()">Toggle Profile</span>');
});

working in phpbb3. Thanks for the code LG.

sivastar
Forumember

Male Posts : 116
Reputation : 14
Language : Tamil
Location : Malaysia

http://www.eegarai.net

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by triadiprabowo on Thu 3 May - 14:59

Solved. Thank you all Nera and LG also sivastar Smile

triadiprabowo
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by SLGray on Thu 3 May - 15:02

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

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