|
Post by rhondairv on Jun 16, 2010 0:49:03 GMT -8
The dates are now showing but not in mini profile. I shortened the names to first letters. Other than that the code is just as in my forum.
<script type="text/javascript"> <!-- /* change member join dates */
var td = document.getElementsByTagName('td'); if(location.href.match(/ion=(display|(pm)?(calendar)?view|(user)?recent|search2)/)) { function joinDate(user, sDate, lDate) { var re = new RegExp('viewprofile&(amp;)?user='+user+'(")?', 'i'); for(i=0; i<td.length; i++) { if(td.item(i).width == '20%' && td.item(i).innerHTML.match(re)) { td.item(i).innerHTML = td.item(i).innerHTML.replace(/(Joined: ).+?(<br>)/gi,'$1'+sDate+'$2'); } if((location.href.match(re) || (location.href.match(/ion=viewprofile$/) && pb_username == user)) ){ if(td.item(i).width == '25%' && td.item(i).firstChild.innerHTML == 'Date Registered:') { td.item(i+1).firstChild.innerHTML = lDate; } } } }
joinDate('a', 'July 2007', 'July 12, 2007, 3.33pm'); joinDate('a', 'April 2007', 'April 23, 2007, 9.55pm'); joinDate('c', 'April 2007', 'April 27, 2007, 11:16pm'); joinDate('', 'December 2007', 'December 27, 2007, 08:25pm'); joinDate('R', 'July 2007', 'July 12, 2007, 3.33pm'); joinDate('s', 'Feb 2008', 'Feb 04, 2008, 09.13am'); joinDate('t', 'July 2007', 'July 14, 2007, 01:57am');
} //--> </script>
|
|
|
Post by Wormopolis on Jun 16, 2010 17:46:51 GMT -8
ok after playing with it... I think it actually IS replacing the date in the miniprofile, but what you told it to replace with is the same as it already has.
see how the function call has 2 dates? a short one and a long one? it puts the short one in the MP and the long one in the regular profile. try changing the short one to the word "pickle" and see what happens.
|
|
|
Post by rhondairv on Jun 17, 2010 12:38:55 GMT -8
Ahhhhh, ok. It's all fixed now. Duhhhhh me lol
|
|