vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Expand / Collapse Profile Options - View Topic (Page 2 of 2)Page: 1 2
Topic Rating: *****
Printable View
dog199200
Guest
Re: Expand / Collapse Profile Options (26th Apr 09 at 11:06pm UTC)
Dregond Rahl's might work, but I'm not for sure, but here is my code:

Mini-Profile Template Fragment:
Code:
 
  1. <table width=130  id="border" class="border" cellpadding="1" cellspacing="1" border=0>
  2. <tbody>
  3. <tr>
  4. <th onclick="moo(this);" align="center" class="title1">*DATE AREA'S NAME HERE*</th>
  5. </tr>
  6. <tr class='mp_hide'>
  7. <td class="window1">
  8. {additional_info}   
  9. </td>
  10. </tr>
  11. </tbody>
  12. </table>
  13.  
 


With the part above, just find where it says "{additional_info}" in your Mini-Profile Template and replace it with the code above.


Global Footer Code Fragment:
Code:
 
  1. <style>
  2. .mp_hide {
  3. display:none;
  4. }
  5. </style>
  6. <script>
  7. function moo(s){
  8. if(s.parentNode.nextSibling.className == 'mp_show'){  
  9. s.parentNode.nextSibling.className = 'mp_hide' } else {  s.parentNode.nextSibling.className = 'mp_show';
  10. }
  11. }
  12. </script>
 


And then to add the toggle effect, just copy the javascript fragment right above this and paste it anywhere within your global footer.
Jedi Slayer
Junior Member
**

[Avatar]
Sith Lord

Posts: 92
Status: Offline
Joined:  
Reputation: 0%  


pmwwwyahoo
Re: Expand / Collapse Profile Options (27th Apr 09 at 5:01pm UTC)
so I do not know if i did this right because it does not seem to be working, I put the code in my footer as is, deleted the additional profile option and added the code.  T


This is what my mini profile looks like now

Edit:  I thought I might have misunderstood and was suppose to delete everything after additional profile options, but that did not work either.

Code:
 
  1. <font size="2">
  2. <center>
  3. {display_name}
  4. <br />
  5. {rank}
  6. {if:warning}<br />{warning}{/if:warning}
  7. {if:custom_title}<br />{custom_title}<br />{/if:custom_title}
  8. </center>
  9. {if:avatar}<center><br />{avatar}</center>{/if:avatar}
  10. {if:personal_text}<center><br />{personal_text}</center>{/if:personal_text}
  11. <br />
  12. Posts: {posts}
  13. <br />
  14. {if:online}
  15. Status: <b>Online</b>
  16. {/if:online}
  17. {ifnot:online}
  18. Status: Offline
  19. {/ifnot:online}
  20. {if:gender}<br />Gender: {gender}{/if:gender}
  21. {if:location}<br />Location: {location}{/if:location}
  22. <br />
  23. Joined: {joined}
  24. <br />
  25. {if:contact}
  26. <br /><center>{contact}</center>
  27. {/if:contact}
  28. <table width=130  id="border" class="border" cellpadding="1" cellspacing="1" border=0>  
  29. <tbody>  
  30. <tr>  
  31. <th onclick="moo(this);" align="center" class="title1">My Character Stats</th>  
  32. </tr>  
  33. <tr class='mp_hide'>  
  34. <td class="window1">  
  35. {additional_info}    
  36. </td>  
  37. </tr>  
  38. </tbody>  
  39. </table>  
  40. <br />
  41. <table cellpadding="0" cellspacing="0">
  42. <tr>
  43. <td colspan="2"><font size="2">Reputation: {reputation}  </font></td>
  44. </tr>
  45. <tr>
  46. <td rowspan="2">
  47. <div style="clear: both;">
  48. {foreach:reputation}
  49. <div style="height: 8px; width: 8px; background-color: #009900; float: left; margin: 3px;"></div>
  50. {/foreach:reputation}
  51. {foreach:negative_reputation}
  52. <div style="height: 8px; width: 8px; background-color: #CC0000; float: left; margin: 3px;"></div>
  53. {/foreach:negative_reputation}
  54. <br style="clear: both;">
  55. </div>
  56. </td>
  57. <td align="center"><font size="1">{reputation_give}</font></td>
  58. </tr>
  59. <tr>
  60. <td align="center"><font size="1">{reputation_take}</font></td>
  61. </tr>
  62. </table>
  63. </font>
  64.  
 



http://swlounge.virtualforums.co.uk/action/view_profile/user/admin
dog199200
Guest
Re: Expand / Collapse Profile Options (28th Apr 09 at 1:58am UTC)
well it seems to be working to me, but i also dont got a clue what it looke dliek before, but the dropdown works, just click the rpg stats image and it works
 Printable View
Page: 1 2

All times are GMT+0 :: The current time is 2:19pm
Page generated in 0.287 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums