We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Remove "Last Activity Date" from Member List page
Topic Started: Aug 6 2010, 06:55 AM (595 Views)
arrow180-ZNR
Member
[ * ]
Board Address: 'Private'
Board Software: ZetaBoards
Description: I'd like to be able to remove the "Last Activity Date" column and the sort by "Last Activity Date" option from the Member List page please. It doesn't matter if it turns the "Last Activity Date" off in members' profiles or other places as well.
I want members to be able to sign in without people being able to track them ;)
I've got a code installed already that hides "Last Activity Date" in members' profile but that's only java and easily avoided. I've change the "On PM" and "Off PM" images in topics to a "PM" image.
Edited by arrow180-ZNR, Aug 8 2010, 01:32 PM.
Offline Profile Goto Top
 
Holysavior-ZNR
Member Avatar
Member
[ *  *  *  *  * ]
unfortunately the only way to do it is through javascript. unless brandon someone hard codes it into ZB. but thats completely up to him.
Offline Profile Goto Top
 
arrow180-ZNR
Member
[ * ]
Thanks for the info Holysavior, I thought that may be the case. Still, a javascript code would be better than no code if it is achievable :yes:
Offline Profile Goto Top
 
RedBldSandman
Member Avatar
Asante sana Squash banana
[ *  *  *  * ]
Code:
 
<script type="text/javascript">
var loc = location.href;
if (loc.href.match("/members")) {
if (loc.match("sort=recent_activity")) {
window.location = loc.replace("sort=recent_activity","sort=name");
}
var mem_par = document.getElementById("member_list_full");
var mem_rows = mem_par.getElementsByTagName("tbody")[0].getElementsByTagName("tr"),mem_row;
for (var i=0,mem_l=mem_rows.length;mem_row=mem_rows[i],i<mem_l-1;i++) {
if (i==0) {
mem_row.removeChild(mem_row.getElementsByTagName("th")[2]);
continue;
}
if (i==1) {
mem_row.getElementsByTagName("td")[0].colSpan = "5";
continue;
}
mem_row.removeChild(mem_row.getElementsByTagName("td")[2]);
}
var mem_foot = mem_rows[mem_l-1].getElementsByTagName("td")[0];
mem_foot.colSpan = "5";
var mem_sort = mem_foot.getElementsByTagName("select")[1];
mem_sort.remove(mem_sort.length-1);
}
</script>
Try that in the Below the Board section of your Board Template. I'm afraid I haven't been able to test it at all (I'm unable to test any codes atm!) so if there are any problems just let me know :)
Offline Profile Goto Top
 
arrow180-ZNR
Member
[ * ]
Thank you RedBldSandman. I tried it but it doesn't seem to have any effect. The Last Activity Date column and the Last Activity Date selector remain on my forum. I have got other codes installed though.
Would it help if I PMed my forum address to you?
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Try this (there was a small typo)
Code:
 
<script type="text/javascript">
var loc = location.href;
if (loc.match("/members")) {
if (loc.match("sort=recent_activity")) {
window.location = loc.replace("sort=recent_activity","sort=name");
}
var mem_par = document.getElementById("member_list_full");
var mem_rows = mem_par.getElementsByTagName("tbody")[0].getElementsByTagName("tr"),mem_row;
for (var i=0,mem_l=mem_rows.length;mem_row=mem_rows[i],i<mem_l-1;i++) {
if (i==0) {
mem_row.removeChild(mem_row.getElementsByTagName("th")[2]);
continue;
}
if (i==1) {
mem_row.getElementsByTagName("td")[0].colSpan = "5";
continue;
}
mem_row.removeChild(mem_row.getElementsByTagName("td")[2]);
}
var mem_foot = mem_rows[mem_l-1].getElementsByTagName("td")[0];
mem_foot.colSpan = "5";
var mem_sort = mem_foot.getElementsByTagName("select")[1];
mem_sort.remove(mem_sort.length-1);
}
</script>
Offline Profile Goto Top
 
RedBldSandman
Member Avatar
Asante sana Squash banana
[ *  *  *  * ]
Argh, I went back and decided to store the location.href in a variable and then forgot to change the if statement. I hate it when I do things like that XD Thanks Vitality :)
Offline Profile Goto Top
 
arrow180-ZNR
Member
[ * ]
That's fixed it. Thank you both very much.
I've tested in Internet Explorer 8 and Firefox 3.6.8.
:)
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic