vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Pesonal text in profile options - View Topic
Topic Rating: *****
Printable View
Graystorm
New Member
*

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


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. {Smile}
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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! {Smile}
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Pesonal text in profile options (15th Jan 08 at 7:41pm UTC)
Code:
 
  1. <script>
  2. /*Personal Message
  3. Created By Wrighty
  4. support.virtualforums.co.uk*/
  5.  
  6. function load(){
  7.     f.psm.value=(f.hidden.value.match(/{psm:(.+?)}/))?RegExp.$1:'';
  8.     f.hidden.value = f.hidden.value.replace(/{psm:(.+?)}/g,'');
  9. }
  10. function save(){
  11.     f.hidden.value = "{psm:"+f.psm.value+"}" + f.hidden.value;
  12. }
  13.  
  14. if(document.profile_form && document.profile_form.signature){
  15.     var f=document.profile_form;
  16.     var insert_after=f.location.parentNode.parentNode.parentNode;
  17.     var insert=insert_after.cloneNode(true);
  18.     insert.childNodes[0].firstChild.innerHTML='Personal Message:';
  19.     insert.childNodes[1].innerHTML='<input type="text" name="psm" size="25" maxlength="1000" value="" />';
  20.     insert.childNodes[2].firstChild.innerHTML='This is your own personal message that will appear in your Mini Profile.';
  21.     insert_after.parentNode.insertBefore(insert, insert_after.nextSibling);
  22.     load();
  23.     if(document.addEventListener){
  24.         f.addEventListener('submit', save,false);
  25.     }else{
  26.         f.attachEvent('onsubmit', save);
  27.     }
  28. }
  29.  
  30. if(location.href.match(/\/view/i)){
  31.     psm = (document.getElementById('hidden_vars').innerHTML.match(/{psm:(.+?)}/))?RegExp.$1:'';
  32.     var d = document.getElementsByTagName('td');
  33.     for(i=0; i<d.length;i++){
  34.         if(d[i].className.match(/window(1|2)/) &&             d[i].innerHTML.match(/posts/i) && !d[i].innerHTML.match(/Date Registered/) && psm!=''){
  35.             d[i].getElementsByTagName('font')[0].innerHTML+= '<br><center>'+psm+'</center>';
  36.         }
  37.     }
  38. }
  39. </script>
 



Happy Present day! {Tongue Out}
Global Footer
BizzD
Full Member
***

Posts: 306
Status: Offline
Gender: Male
Location: Washington
Joined:  
Reputation: 0%  


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]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Pesonal text in profile options (16th Jan 08 at 12:00am UTC)
meh I haven't submitted it to the database! {Tongue Out}

I posted it here cause he requested it! {Tongue Out}
BizzD
Full Member
***

Posts: 306
Status: Offline
Gender: Male
Location: Washington
Joined:  
Reputation: 0%  


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. {Shocked}
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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! {Tongue Out}
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
***


Reputation: 40%  


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! {Tongue Out}
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. {Smile}

rroll.to— Shorten a link, rickroll your friends.
 Printable View

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