Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | [F]Profile Spoiler Area (18th Apr 08 at 5:14pm) | | OK this shouldn't be hard, but i need a code that will add an edit area to the modify profile called E-Stuff, and then when they put something in here is calls a spoiler drop down at the top of the sig.
Basically if this help, i need s system that adds an area in the modify profile area that when you add stuff to it it will add to a drop down at the top of the sig, but also if possible (not required) can you make it so taht is they dont have anything in the area then the drop down doesn't show. | | Back to Top - Link to Post - Last edit: 17th May 08 at 3:11am by Dwight |
 |
|
Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,264 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Profile Spoiler Area (18th Apr 08 at 5:52pm) | | | The options will probably have to seperated by a comma (when entering them!). But other than that, should be fine! ^_^ | | Back to Top - Link to Post - Last edit: 18th Apr 08 at 5:52pm by Wrighty |
 |
|
Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | Re: Profile Spoiler Area (18th Apr 08 at 6:03pm) | | ok np, but for the description of the field you might want to add that in  | | Back to Top - Link to Post - Last edit: 18th Apr 08 at 6:03pm by Dwight |
 |
|
Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| |
Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,264 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Profile Spoiler Area (21st Apr 08 at 10:48pm) | | I know of this. Been very busy with my new camera. So please, bare with me and wait for once in a while!  | | Back to Top - Link to Post |
 |
|
Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | Re: Profile Spoiler Area (22nd Apr 08 at 2:18am) | | | i am waiting...and i understand, i just bump in case someone else wants to take a crack at it | | Back to Top - Link to Post |
 |
|
Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,264 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Profile Spoiler Area (25th Apr 08 at 5:48pm) | | Try this. It's a hell of a long code!!!
| Code:Select All | <script>/*Profile Spoiler Area in SignatureCreated By Wrightysupport.virtualforums.co.uk*/ var d;function save(){ if(!f.vf_mp.value == "" ){ f.hidden.value = '{w_spoiler:'+f.vf_mp.value+'}' + f.hidden.value; }}if(document.profile_form && document.profile_form.hidden){ var f = document.profile_form; r = f.avatar_height.parentNode.parentNode.parentNode.parentNode.insertRow(8); r.insertCell(0).innerHTML = '<font size=2>Personal Spoiler:</font>'; r.insertCell(1).innerHTML = '<input type="text" size="25" name="vf_mp">'; r.insertCell(2).innerHTML = '<font size=1>Seperate each item by a comma.</font>'; f.vf_mp.value=(f.hidden.value.match(/{w_spoiler:(.+?)}/))?RegExp.$1:''; f.hidden.value = f.hidden.value.replace(/{w_spoiler:(.+?)}/,''); if(document.addEventListener){ f.addEventListener('submit', save,false); }else{ f.attachEvent('onsubmit', save); }}if(location.href.match(/view/)) { var x=document.getElementsByTagName('tr'); for(i=0;i<x.length;i++){ if(x[i].innerHTML.match(/hidden_vars/)){ var s = x[i].getElementsByTagName('span'); for(ui=0;ui<s.length;ui++){ if(s[ui].id.match(/hidden_vars/)){ d = s[ui]; } } for(z=0;z<x[i].getElementsByTagName('td').length;z++){ if((x[i].getElementsByTagName('td')[z].className.match(/signature/) || x[i].getElementsByTagName('td')[z].getElementsByTagName('div')[0] && x[i].getElementsByTagName('td')[z].getElementsByTagName('div')[0].id.match(/signature/)) && d.innerHTML.match(/{w_spoiler:(.+?)}/) && RegExp.$1 != ''){ var d_ub = document.createElement('SELECT'); var w_ub = []; w_ub = RegExp.$1.split(/,/); for (ar=0;ar<w_ub.length;ar++) { d_ub.options[d_ub.options.length] = new Option(w_ub[ar]); } if(x[i].getElementsByTagName('td')[z].getElementsByTagName('div')[0]){ x[i].getElementsByTagName('td')[z].getElementsByTagName('div')[0].insertBefore(d_ub, x[i].getElementsByTagName('td')[z].getElementsByTagName('div')[0].firstChild); }else{ x[i].getElementsByTagName('td')[z].insertBefore(d_ub, x[i].getElementsByTagName('td')[z].getElementsByTagName('font')[0]); } } } break; } }}</script>
|
Global Footer
I'm 99% sure that's what you want... But if not, we can go from it at least | | Back to Top - Link to Post - Last edit: 25th Apr 08 at 5:50pm by Wrighty |
 |
|
Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| |
Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,264 Status: Offline Gender: Male Joined: 16th Dec 2007
| | Re: Profile Spoiler Area (28th Apr 08 at 10:11pm) | | ok use this code, edit your profile, don't enter any information into any EXTRA boxes (if it's already there, delete it!)
and then save. Then remove this code!
<script> get('hidden','name')[0].value = ''; </script> | | Back to Top - Link to Post - Last edit: 28th Apr 08 at 10:11pm by Wrighty |
 |
|
Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| |
Wrighty Very Senior Member
    
![[Avatar]](http://av.wrighty.info/av.png) Posts: 3,264 Status: Offline Gender: Male Joined: 16th Dec 2007
| |
Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| | Re: Profile Spoiler Area (29th Apr 08 at 8:40pm) | | ah ok
Edit:
ok use this code
<script> get('hidden','name')[0].value = ''; </script>
and place it in the global footers, then edit my profile and remove any text in the spoiler box, then save and the remove this cide
<script> get('hidden','name')[0].value = ''; </script>
right? if so that doesn't work, the spoiler tag still only shows in melody's sig... (Thats when i go back and re add the text) | | Back to Top - Link to Post - Last edit: 29th Apr 08 at 8:58pm by Dwight |
 |
|
Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| |
Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| |
Dwight Senior Member
   
![[Avatar]](http://i25.photobucket.com/albums/c51/dog199200/Naruto/RockLeeAvi.gif) I'm an evil turkey!!! Posts: 805 Status: Offline Gender: Male Location: Behind You Age: 16 Joined: 21st Jan 2008
| |