 |
 |
 |
 |
#115717 - 01/25/04 06:34 PM
Re: Fsum Status
|
Master Hacker
Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
|
ok, at my other boards (GR) we have stars denoting rank in the titles. Using this mod, the status prints out as html. ie. Special
<img src="http://www.alforadmin.com/special.gif" alt="-" /> whereas in posts,etc it would show as Special <stars> So is there anyway to remove
<img src="http://www.alforadmin.com/special.gif" alt="-" /> so that it'll just show "Special"?
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#115719 - 02/06/04 05:31 PM
Re: Fsum Status
|
Master Hacker
Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
|
unsupported update for those who want formatted dates, etc... change... <script language="Javascript" type="text/javascript">document.writeln("You last visited: <b>", unescape(session_dt), "</b>");</script>
to... <script language="Javascript" type="text/javascript">
<!--
var tippy = unescape(session_dt);
var tippy_array = tippy.split("-");
var month = parseInt(tippy_array[0]) - 1;
var day = parseInt(tippy_array[1]) + 0;
if(tippy_array[2] != null && tippy_array[2] != '') {
var new_array_tippy = tippy_array[2].split(" ");
var year = parseInt(new_array_tippy[0]);
var newer_array_tippy = new_array_tippy[1].split(':');
hour = parseFloat(newer_array_tippy[0]);
if(new_array_tippy[2] == 'PM'){ hour += 12; }
var minutes = parseInt(newer_array_tippy[1]);
document.write('You last visited: <b>');
document.write(timestamp(new Date(year,month,day,hour,minutes,0), dfrm, null, 0, 0, 0, 0), "</b>");
document.write(timestamp(new Date(year,month,day,hour,minutes,0), null, tfrm, 0, 0, 0, 0), '
');
}
//-->
</script>
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#115728 - 05/24/04 01:55 AM
Re: Fsum Status
|
Member
Registered: 09/11/01
Posts: 667
Loc: MI
|
Originally posted by Ian Spence: unsupported update for those who want formatted dates, etc... change... <script language="Javascript" type="text/javascript">document.writeln("You last visited: <b>", unescape(session_dt), "</b>");</script>
to... <script language="Javascript" type="text/javascript">
<!--
var tippy = unescape(session_dt);
var tippy_array = tippy.split("-");
var month = parseInt(tippy_array[0]) - 1;
var day = parseInt(tippy_array[1]) + 0;
if(tippy_array[2] != null && tippy_array[2] != '') {
var new_array_tippy = tippy_array[2].split(" ");
var year = parseInt(new_array_tippy[0]);
var newer_array_tippy = new_array_tippy[1].split(':');
hour = parseFloat(newer_array_tippy[0]);
if(new_array_tippy[2] == 'PM'){ hour += 12; }
var minutes = parseInt(newer_array_tippy[1]);
document.write('You last visited: <b>');
document.write(timestamp(new Date(year,month,day,hour,minutes,0), dfrm, null, 0, 0, 0, 0), "</b>");
document.write(timestamp(new Date(year,month,day,hour,minutes,0), null, tfrm, 0, 0, 0, 0), '
');
}
//-->
</script> IanIf I dont have the timestamp function in my source code, is there still a way I can switch 5-23-2004 to say May 23 2004? Cuz this code isnt working for me, for obvious reasons. Wondering if theres a way around it or not... 
_________________________
-Jon I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know Where I continue to hack, even though it's a state of mind
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#115731 - 05/24/04 12:05 PM
Re: Fsum Status
|
Member
Registered: 09/11/01
Posts: 667
Loc: MI
|
hmmm, not working with this code: <script src="datelib.js" language="Javascript1.3" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
<!--
var tippy = unescape(session_dt);
var tippy_array = tippy.split("-");
var month = parseInt(tippy_array[0]) - 1;
var day = parseInt(tippy_array[1]) + 0;
if(tippy_array[2] != null && tippy_array[2] != '') {
var new_array_tippy = tippy_array[2].split(" ");
var year = parseInt(new_array_tippy[0]);
var newer_array_tippy = new_array_tippy[1].split(':');
hour = parseFloat(newer_array_tippy[0]);
if(new_array_tippy[2] == 'PM'){ hour += 12; }
var minutes = parseInt(newer_array_tippy[1]);
document.write(timestamp(new Date(year,month,day,hour,minutes,0), dfrm, null, 0, 0, 0, 0));
document.write(timestamp(new Date(year,month,day,hour,minutes,0), null, tfrm, 0, 0, 0, 0));
}
//-->
</script>
_________________________
-Jon I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know Where I continue to hack, even though it's a state of mind
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|