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 May 3rd 2012, 9:17 am

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 May 3rd 2012, 9:00 pm; 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 May 3rd 2012, 9:41 am

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 May 3rd 2012, 10:09 am


triadiprabowo
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by Nera. on May 3rd 2012, 11:39 am

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 May 3rd 2012, 12:59 pm

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 May 3rd 2012, 4:41 pm

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 May 3rd 2012, 4:52 pm; edited 1 time in total

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Ask Post Profile CSS / JS

Post by Nera. on May 3rd 2012, 4:45 pm

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 May 3rd 2012, 5:40 pm

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 May 3rd 2012, 8:59 pm

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 May 3rd 2012, 9:02 pm

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 : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.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