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.

Slide user information

+3
Codyy
!_NICK_!
DailyTeens
7 posters

Go down

Solved Slide user information

Post by DailyTeens 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 Slide user information Arrow_rtl 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
avatar
DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

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

What you said seems to me like a Statement. Would you tell us your question?
!_NICK_!
!_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 January 10th 2012, 2:27 am

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


This will help you: https://help.forumotion.com/t78898-show-hide-widgets-script
Codyy
Codyy
Active Poster

Male Posts : 1032
Reputation : 16
Language : English
Location : Florida

http://leprym.com

Back to top Go down

Solved Re: Slide user information

Post by DailyTeens 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.
avatar
DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by Codyy 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
Codyy
Active Poster

Male Posts : 1032
Reputation : 16
Language : English
Location : Florida

http://leprym.com

Back to top Go down

Solved Re: Slide user information

Post by DailyTeens 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
avatar
DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by Ape January 13th 2012, 9:23 pm

will this work for other forums aswell ?


Slide user information Left1212Slide user information Center11Slide user information Right112
Slide user information Ape_b110
Slide user information Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19084
Reputation : 1988
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Solved Re: Slide user information

Post by DailyTeens 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.
avatar
DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by Ape January 13th 2012, 9:47 pm

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


Slide user information Left1212Slide user information Center11Slide user information Right112
Slide user information Ape_b110
Slide user information Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19084
Reputation : 1988
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Solved Re: Slide user information

Post by DailyTeens 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.
avatar
DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Slide user information

Post by xiaomah01 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
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 January 14th 2012, 8:53 pm

Thanks, you can lock this topic now Smile
avatar
DailyTeens
New Member

Posts : 22
Reputation : 1
Language : Bosnian, Englsih

Back to top Go down

Solved Re: Slide user information

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

Topic Solved & Locked
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Back to top


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