Graystorm New Member

Posts: 20 Status: Offline Joined:
pm | [F] Pesonal text in profile options (15th Jan 08 at 4:43am UTC) | | There is no place to put personal text and I would like a code that enables that. | |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Pesonal text in profile options (15th Jan 08 at 7:44am UTC) | | I could write a code to allow something similar to this tonight! | |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Pesonal text in profile options (15th Jan 08 at 7:41pm UTC) | |  Code: - <script>
- /*Personal Message
- Created By Wrighty
- support.virtualforums.co.uk*/
-
- function load(){
- f.psm.value=(f.hidden.value.match(/{psm:(.+?)}/))?RegExp.$1:'';
- f.hidden.value = f.hidden.value.replace(/{psm:(.+?)}/g,'');
- }
- function save(){
- f.hidden.value = "{psm:"+f.psm.value+"}" + f.hidden.value;
- }
-
- if(document.profile_form && document.profile_form.signature){
- var f=document.profile_form;
- var insert_after=f.location.parentNode.parentNode.parentNode;
- var insert=insert_after.cloneNode(true);
- insert.childNodes[0].firstChild.innerHTML='Personal Message:';
- insert.childNodes[1].innerHTML='<input type="text" name="psm" size="25" maxlength="1000" value="" />';
- insert.childNodes[2].firstChild.innerHTML='This is your own personal message that will appear in your Mini Profile.';
- insert_after.parentNode.insertBefore(insert, insert_after.nextSibling);
- load();
- if(document.addEventListener){
- f.addEventListener('submit', save,false);
- }else{
- f.attachEvent('onsubmit', save);
- }
- }
-
- if(location.href.match(/\/view/i)){
- psm = (document.getElementById('hidden_vars').innerHTML.match(/{psm:(.+?)}/))?RegExp.$1:'';
- var d = document.getElementsByTagName('td');
- for(i=0; i<d.length;i++){
- if(d[i].className.match(/window(1|2)/) && d[i].innerHTML.match(/posts/i) && !d[i].innerHTML.match(/Date Registered/) && psm!=''){
- d[i].getElementsByTagName('font')[0].innerHTML+= '<br><center>'+psm+'</center>';
- }
- }
- }
- </script>
Happy Present day! Global Footer
| |
|
BizzD Full Member
  
Posts: 306 Status: Offline Gender: Male Location: Washington Joined:
pm | Re: Pesonal text in profile options (15th Jan 08 at 11:56pm UTC) | | Should that be in the database? Or am i mistaken. | |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Pesonal text in profile options (16th Jan 08 at 12:00am UTC) | | meh I haven't submitted it to the database!
I posted it here cause he requested it! | |
|
BizzD Full Member
  
Posts: 306 Status: Offline Gender: Male Location: Washington Joined:
pm | Re: Pesonal text in profile options (16th Jan 08 at 12:02am UTC) | | I still don't fully get the code index. I thought any code made is 'BAM' in there. | |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Pesonal text in profile options (16th Jan 08 at 12:11am UTC) | | no... not always... I will add this one soon... but until then it's not added! Cr0w's working on something anyway, so I'm not going to add many/any codes until he's sorted that. | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Pesonal text in profile options (16th Jan 08 at 2:49am UTC) | | no... not always... I will add this one soon... but until then it's not added! Cr0w's working on something anyway, so I'm not going to add many/any codes until he's sorted that.
Should hopefully be done by the end of next week. | |
rroll.to— Shorten a link, rickroll your friends. |
|