Jedi Slayer Junior Member
 
![[Avatar]](http://i216.photobucket.com/albums/cc297/rghrous/vader.jpg) Sith Lord Posts: 92 Status: Offline Joined:
pmwwwyahoo | Expand / Collapse Profile Options (21st Apr 09 at 10:17am EDT) Resolved | | | Since our site is RPG based we have alot of stats added into the mini profile, that makes each post really long due to all the information there. Is it possible to code so that it would collapsed and clickable to open if someone wanted to look at it. (or even a rollover) | |
|
Dreg[Bot] Moderator
    
![[Avatar]](http://r2.mrfrufru.com/dregondrahl/avvay.jpg) Broken Posts: 415 Status: Offline Gender: Male Age: 22 Joined:
Additional Groups: Coding Team
  
pmYesh im sneaky! | | Re: Expand / Collapse Profile Options (21st Apr 09 at 10:21am EDT) | | | got a forum link? are you using any custom template for the miniprofile ? | |
 Now obsession rules my mind This commotion makes me blind Searching out who ever runs Or has stolen away my life
But i've already said
Don't ever back down Don't ever turn around My end has come So now I come for you.... |
|
Jedi Slayer Junior Member
 
![[Avatar]](http://i216.photobucket.com/albums/cc297/rghrous/vader.jpg) Sith Lord Posts: 92 Status: Offline Joined:
pmwwwyahoo | | Re: Expand / Collapse Profile Options (21st Apr 09 at 10:36am EDT) | | Sorry about that http://swlounge.virtualforums.co.uk/ Not currently using any mini profile hacks, just using the additional profile options, the are curently 18 editable fields but only becasue I have not populated them all which cold end up being as many as 30-35 | |
|
Darkmage™ Very Senior Member
     I.. will never be a memory..
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/tux_thumb.png) Mess with the best... Die like the rest! Posts: 2,541 Status: Offline Gender: Male Location: vForums Age: 19 Joined:
pmwwwxfire vForum | | Re: Expand / Collapse Profile Options (21st Apr 09 at 1:06pm EDT) | | If you want it to stay closed then someone is going to have to edit my code:
 Code: - <script type="text/javascript">
-
- var rowVisible = true;
-
- function toggleDisplay(tbl) {
- var tblRows = tbl.rows;
- for (i = 0; i < tblRows.length; i++) {
- if (tblRows[i].className != "headerRow") {
- tblRows[i].style.display = (rowVisible) ? "none" : "";
- }
- }
- rowVisible = !rowVisible;
- }
-
- </script>
-
- <table id="theTable" align="center">
- <tr class="headerRow">
- <th class="title1" width=700></th>
- <tr>
- <td class=window2>
- -----CONTENT HERE-------
- </td>
- </tr>
- </table>
-
- <input type="button" value="Open/Close" onclick="toggleDisplay(document.getElementById('theTable'))" />
- </center>
-
I don't know much JS, but I do know this much. | |
 Have a PS3? Play Modern Warfare2? Add me Darkmage4. |
|
Jedi Slayer Junior Member
 
![[Avatar]](http://i216.photobucket.com/albums/cc297/rghrous/vader.jpg) Sith Lord Posts: 92 Status: Offline Joined:
pmwwwyahoo | | Re: Expand / Collapse Profile Options (21st Apr 09 at 6:00pm EDT) | | | does that go in my forum template area, how can i capture just the addtioanl profile options, I looked ofr that but did not see it. | |
|
Darkmage™ Very Senior Member
     I.. will never be a memory..
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/tux_thumb.png) Mess with the best... Die like the rest! Posts: 2,541 Status: Offline Gender: Male Location: vForums Age: 19 Joined:
pmwwwxfire vForum | | Re: Expand / Collapse Profile Options (23rd Apr 09 at 12:08am EDT) | | | Are you using the default template? | |
 Have a PS3? Play Modern Warfare2? Add me Darkmage4. |
|
Jedi Slayer Junior Member
 
![[Avatar]](http://i216.photobucket.com/albums/cc297/rghrous/vader.jpg) Sith Lord Posts: 92 Status: Offline Joined:
pmwwwyahoo | | Re: Expand / Collapse Profile Options (24th Apr 09 at 11:09am EDT) | | | I have not made any changes to it, I have my template set with my skin. | |
|
Darkmage™ Very Senior Member
     I.. will never be a memory..
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/tux_thumb.png) Mess with the best... Die like the rest! Posts: 2,541 Status: Offline Gender: Male Location: vForums Age: 19 Joined:
pmwwwxfire vForum | | Re: Expand / Collapse Profile Options (24th Apr 09 at 12:29pm EDT) | | | Alright, I can set it up for you. Just give me some time. | |
 Have a PS3? Play Modern Warfare2? Add me Darkmage4. |
|
Jedi Slayer Junior Member
 
![[Avatar]](http://i216.photobucket.com/albums/cc297/rghrous/vader.jpg) Sith Lord Posts: 92 Status: Offline Joined:
pmwwwyahoo | | Re: Expand / Collapse Profile Options (24th Apr 09 at 12:50pm EDT) | | | Your awesome thank you very much for your assistance! | |
|
Darkmage™ Very Senior Member
     I.. will never be a memory..
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/tux_thumb.png) Mess with the best... Die like the rest! Posts: 2,541 Status: Offline Gender: Male Location: vForums Age: 19 Joined:
pmwwwxfire vForum | | Re: Expand / Collapse Profile Options (24th Apr 09 at 12:51pm EDT) | | Your welcome. I have actually gotten it, but I am having a bit of trouble with it in FireFox 3.0.9 at the moment, not sure about IE yet. edit: I have tested it in IE7 and it does not work at all. I will have to get help on this.\ edit 2: If anyone want's to help me out with this, they are more than welcome to!
 Code: - <center>
- <script type="text/javascript">
- var rowVisible = false;
- function toggleDisplay(tbl) {
- var tblRows = tbl.rows;
- for (i = 0; i < tblRows.length; i++) {
- if (tblRows.className != "headerRow") {
- tblRows.style.display = (rowVisible) ? "none" : "table-row";
- }
- }
- alert(tblRows.length);
- rowVisible = !rowVisible;
- }
- </script>
- <style type="text/css">
- table#theTable tr {
- display:none;
- }
- table#theTable tr.headerRow {
- display:table-row;
- }
- </style>
- <table id="theTable" border=1>
- <tr class="headerRow">
- <tr>
- <td>----CONTENT HERE----</td>
- </tr>
- </table>
- <input type="button" value="Open/Close" onclick="toggleDisplay(document.getElementById('theTable'))" />
- </center>
Now the code works, but a pop up shows up when clicking the button and shows a number 2 on it. This:
And the code does not work in IE at all. | |
 Have a PS3? Play Modern Warfare2? Add me Darkmage4. |
|
Broken Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Dont%20removm/brokenavi.png) Lost Resolve Posts: 1,642 Status: Offline Gender: Male Age: 18 Joined:
pmmsnyahooaim | | Re: Expand / Collapse Profile Options (25th Apr 09 at 8:35pm EDT) | | if that one doesn't work then i have a perfectly working one you can use, but you have to edit the mini-profile template and add something to the global header of your forum to see it in action here: http://digimondynamics.vforums.co.uk/action/view_profile/user/admin you just need to click where it says Digimon Data to view the info | |
If you fall I’ll catch, if you love I’ll love, And so it goes, my dear, don’t be scared, you’ll be safe, This I swear. If you only love me back.
 |
|
Darkmage™ Very Senior Member
     I.. will never be a memory..
![[Avatar]](http://i185.photobucket.com/albums/x20/magedesigns/avatar/tux_thumb.png) Mess with the best... Die like the rest! Posts: 2,541 Status: Offline Gender: Male Location: vForums Age: 19 Joined:
pmwwwxfire vForum | | Re: Expand / Collapse Profile Options (26th Apr 09 at 12:12am EDT) | | Well you should have told me about that. >_> lol. I may know of a source that can help me with this. They helped me out before, with a code, and I am sure they can help me out with this. | |
 Have a PS3? Play Modern Warfare2? Add me Darkmage4. |
|
Broken Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Dont%20removm/brokenavi.png) Lost Resolve Posts: 1,642 Status: Offline Gender: Male Age: 18 Joined:
pmmsnyahooaim | | Re: Expand / Collapse Profile Options (26th Apr 09 at 12:59am EDT) | | dude you never asked i was just waiting for the right time to tell you i already have a drop down code, if you want we can talk more baout it in a Pm, mean while we don't need to high jack this thread | |
If you fall I’ll catch, if you love I’ll love, And so it goes, my dear, don’t be scared, you’ll be safe, This I swear. If you only love me back.
 |
|
Dreg[Bot] Moderator
    
![[Avatar]](http://r2.mrfrufru.com/dregondrahl/avvay.jpg) Broken Posts: 415 Status: Offline Gender: Male Age: 22 Joined:
Additional Groups: Coding Team
  
pmYesh im sneaky! | | Re: Expand / Collapse Profile Options (26th Apr 09 at 6:18am EDT) | | ermmm why not just replace
 Code: - {additional_info}
with
 Code: - <div style="height:15px;overflow-y:auto;" onclick="this.style.cssText=''"><a>View +</a><br/>{additional_info}</div>
im sure similar could be done using classnames for show/hide. | |
 Now obsession rules my mind This commotion makes me blind Searching out who ever runs Or has stolen away my life
But i've already said
Don't ever back down Don't ever turn around My end has come So now I come for you.... |
|
Jedi Slayer Junior Member
 
![[Avatar]](http://i216.photobucket.com/albums/cc297/rghrous/vader.jpg) Sith Lord Posts: 92 Status: Offline Joined:
pmwwwyahoo | | Re: Expand / Collapse Profile Options (26th Apr 09 at 6:30pm EDT) | | So what I want to do is what you have going on on the Digimon site there, since mine tends to be very long, so if one of the codes would work I would appreciate it. Thanks | |
|