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.
The options will probably have to seperated by a comma (when entering them!). But other than that, should be fine! ^_^
ok np, but for the description of the field you might want to add that in![]()
bump
I know of this. Been very busy with my new camera. So please, bare with me and wait for once in a while!![]()
i am waiting...and i understand, i just bump in case someone else wants to take a crack at it
Try this. It's a hell of a long code!!!
Code:
- <script>
- /*Profile Spoiler Area in Signature
- Created By Wrighty
- support.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
its not showing up in mine
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>
i'm... i cant find where taht is
add that code , then remove it...
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)
bump
bump
bump
Could I get a link to the user's sig where the problem is occurring?![]()
here is the thread:
http://deluxeanimeforum.vforums.co.uk/board/Introductions/to pic/5/action/view_topic/hello- all.---//page/2/#reply-56
here is her profile:
http://deluxeanimeforum.vforums.co.uk/action/view_profile/us er/melody/
Try this:![]()
<script>
/*Profile Spoiler Area in Signature
Created By Wrighty
support.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 num = 0;
var x = get('tr','tag');
for(re=0;re<x.length;re++){
if(x[re].innerHTML.match(/hidden_vars/) && x[re].innerHTML.match(/w_spoil er/)){
var s = x[re].getElementsByTagName('span');
for(ui=0;ui<s.length;ui++){
if(s[ui].id.match(/hidden_vars/)){
d = s[ui];
}
}
for(z=0;z<x[re].getElementsByTagName('td').length;z++){
if(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[re].getElementsByTagName('td')[z].className.match(/signatur e/) && num != 0){
x[re].getElementsByTagName('td')[z].insertBefore(d_ub, x[re].getElementsByTagName('td')[z].getElementsByTagName('font')[0]);
break;
}else if(x[re].getElementsByTagName('td')[z].getElementsByTagName('div')[0] && x[re].getElementsByTagName('td')[z].getElementsByTagName('div')[0].id.match(/signature/)){
x[re].getElementsByTagName('td')[z].getElementsByTagName('div')[0].insertBefore(d_ub, x[re].getElementsByTagName('td')[z].getElementsByTagName('div')[0].firstChild);
break;
}
}
}
num++;
}
}
}
</script>
Replace the last one with that.
ok the input box for it is still in the modify profile area, but the spolier box doesn't show up anywhere.
You have no signature. This is needed for the code to work.
ok now it only shows when viewing the persons profile...
put it at the top of GLOBAL FOOTER?![]()
ok taht works ty so much