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.

Slide user information

View previous topic View next topic Go down

Solved Slide user information

Post by DailyTeens on January 8th 2012, 1:43 pm

So I'm using PunBB, and I want to add a javascript code or something like that, with wich you can hide user information. By making a simple click on a button wich is placed by the username in topics. ( Something like the sign on the left of the forum. So just to let you know I'm using a customized viewtopic_body template.
Link to my forum : blink-design.forumotions.in

DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by !_NICK_! on January 10th 2012, 2:23 am

What you said seems to me like a Statement. Would you tell us your question?

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Slide user information

Post by Codyy on January 10th 2012, 2:27 am

I understand what you're trying to say, after reading it 5 times. Razz


This will help you: http://help.forumotion.com/t78898-show-hide-widgets-script

Codyy
Active Poster

Male Posts : 1030
Reputation : 16
Language : English
Location : F L o R i D A

http://forumansion.net

Back to top Go down

Solved Re: Slide user information

Post by DailyTeens on January 12th 2012, 10:06 pm

All I wanted to tell you is that I want to hide and show that information under your avatar.

DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by Codyy on January 13th 2012, 12:23 am

Okay, you need to be much more specific in your posts when asking for help. We have no clue what to help you with, any other way.

You'll need to wait for someone who knows the script to do that.

Codyy
Active Poster

Male Posts : 1030
Reputation : 16
Language : English
Location : F L o R i D A

http://forumansion.net

Back to top Go down

Solved Re: Slide user information

Post by DailyTeens on January 13th 2012, 9:02 pm

It works Smile thank you.
I just want to replace the button with ordinary text Smile)
But txn Very Happy

DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by APE on January 13th 2012, 9:23 pm

will this work for other forums aswell ?





APE
Manager
Manager

Male Posts : 8326
Reputation : 717
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Slide user information

Post by DailyTeens on January 13th 2012, 9:39 pm

Yes It will Smile
BTW If I choose to hide stats on the first post then I gotta show It from the first one too, on the button from the other members that posted there It just won't hide/show.

DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by APE on January 13th 2012, 9:47 pm

i added that code to my site and it dont work :Sad





APE
Manager
Manager

Male Posts : 8326
Reputation : 717
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Slide user information

Post by DailyTeens on January 14th 2012, 11:56 am

BTW If I choose to hide stats on the first post then I gotta show It from the first one too, on the button from the other members that posted there It just won't hide/show.

DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by LGforum on January 14th 2012, 3:10 pm

Rideem3 that would be a VERY long way and uneccessary way of doing that.

It can be done with a simple template edit.

So find this in your view_topic template:
Code:


      <div class="user-info">
         {postrow.displayed.ONLINE_IMG}
            <!-- BEGIN profile_field -->
               {postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
            <!-- END profile_field -->
               {postrow.displayed.POSTER_RPG}
      </div>

And right above it put this:
Code:

 <div>
    <div onclick="jQuery(this.parentNode.nextSibling).slideToggle();jQuery('.togglestats').toggle();" class="togglestats">Show Stats</div>
      <div onclick="jQuery(this.parentNode.nextSibling).slideToggle();jQuery('.togglestats').toggle();" class="togglestats"style="display:none">Hide Stats</div>
  </div>

And your done. This will toggle the information under each member individually.

Where it says 'Hide Stats' and 'Show Stats' you can replace with your images.

LGforum
Hyperactive

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

http://www.avacweb.com/

Back to top Go down

Solved Re: Slide user information

Post by xiaomah01 on January 14th 2012, 4:17 pm

@LGforum wrote:

And your done. This will toggle the information under each member individually.

Where it says 'Hide Stats' and 'Show Stats' you can replace with your images.

good job LG Very good

xiaomah01
Forumember

Male Posts : 206
Reputation : 7
Language : English|Chinese|malay
Location : malaysia

http://johor.forumn.org/

Back to top Go down

Solved Re: Slide user information

Post by DailyTeens on January 14th 2012, 8:53 pm

Thanks, you can lock this topic now Smile

DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by Nera. on January 14th 2012, 9:01 pm

Topic Solved & Locked

Nera.
Energetic

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

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