NEWS TITLE GOES HERE |
||||
News & Discussion |
![]() |
Announcements & News
Find the latest information about the board here.
|
No Posts in Forum | ||
| 0 viewers | Topics: 0 | Replies: 0 | ||
![]() |
General Discussion
Talk about whatever you like!
|
No Posts in Forum | ||
| 0 viewers | Topics: 0 | Replies: 0 | ||
Board Statistics |
| 1 user online in the past 15 minutes (0 Members · 1 Guest · 0 Anonymous) | |
|---|---|
| Board Statistics | |
![]() |
Total Forum Posts: 0 Total Members: 1 (The newest member is Lexi Mountbatten) Jul 19 2011, 01:16 PM, a record 1 users were online. |
| Administration and Moderator List · Replies to Your Topics · Active Topics · Top 10 Posters Today · Top 10 Overall Posters | |
| Theme: Zeta Original |
8:44 PM May 26
|
'+user) : $("#removeFault").append('
'+user); pm.errors++; } pm.checkNext(users,type); }); } }, checkNext : function(users,type){ if(users.length > 1){ users.reverse();users.pop();users.reverse(); pm.checkExists(users,type); } else if(pm.errors > 0) { type == "add" ? alert("At least one of the users you added to the mailing list does not exist.\nThe PM has not been sent.") : alert("At least one of the users you removed from the mailing list does not exist.\nThe PM has not been sent."); $("button[accesskey=s]").attr("disabled",false); } else if(type == "add") { pm.checkRemove(); } else if((pm.add.length + pm.remove.length == 0) && $("select[name=groups] option:first").attr("selected")===true) { alert("You must choose someone to send the PM to.\nThe PM has not been sent."); $("button[accesskey=s]").attr("disabled",false); } else { pm.formList(); } }, formList : function(){ $("select[name=groups] option").each(function(){ if($(this).attr("selected") === true){ if($(this).attr("value") != 0){ pm.groups[pm.groups.length] = $(this).attr("value"); } } }); if(pm.groups.length > 0){ pm.roamGroup(1); } else { pm.addToList(); } }, roamGroup : function(page){ var group = pm.groups[0]; $.get(main_url+'members/'+page+'/?name=&search_type=start&group='+group+'&order=a&sort=name&joinable=0',function(d){ var cp = $("ul.cat-pages",d).size(); var pages = cp > 0 ? $("ul.cat-pages li:last a",d).text() : 1; var generic = $("td.generic",d).size(); if(generic <= 0){ $("#member_list_full tr[class*=row]",d).each(function(){ member = $(this).find("td:first a"); pm.list[pm.list.length] = [member.text(),parseInt(member.attr("href").split("profile/")[1])]; }); } if(page < pages){ pm.roamGroup((page+1)); } else if(pm.groups.length > 1) { pm.groups.reverse();pm.groups.pop();pm.groups.reverse(); pm.roamGroup(1); } else { pm.addToList(); } }); }, addToList : function(){ var l = pm.add.length; pm.add.reverse(); while(l--){ var id = pm.add[l][1]; var uL = pm.list.length; var there = 0; while(uL--){ if(pm.list[uL][1] == id){ there = 1; } } if(there == 0){ pm.list[pm.list.length] = pm.add[l]; } } pm.removeFromList(); }, removeFromList : function(){ var l = pm.remove.length; pm.remove.reverse(); while(l--){ var id = pm.remove[l][1]; var uL = pm.list.length; while(uL--){ if(pm.list[uL][1] == id){ pm.list.splice(uL,1); continue; } } } if(pm.list.length > 0){ pm.startSending(); } else { alert("No one will receive this PM.\nThe PM has not been sent."); $("button[accesskey=s]").attr("disabled",false); } }, startSending : function(){ alert("The PMs will be sent now. Your browser may temporarily freeze to prevent any user interaction which may stop the PM process. You will get another alert when the PMs have all been sent.\nThis process may take a few seconds to a few minutes depending on how many users you are sending the PM to."); $.get(main_url+"msg/?c=2",function(f){ var secure = $("input[name=secure]",f).val(); var xc = $("input[name=xc]",f).val(); pm.snail(secure,xc); }); }, snail : function(secure,xc){ var id = pm.list[0][1]; var title = $("input[name=title]").val(); var content = $("#c_post-text").val(); $.post(main_url+"msg/?c=3&sd=1",{convo:0,draft_edit:0,fwd:0,mid:id,post:content,secure:secure,submit:"",title:title,xc:xc},function(){ $("form[action*='c=20&send=1']").submit(); if(pm.list.length > 1){ pm.list.reverse();pm.list.pop();pm.list.reverse(); pm.snail(secure,xc); } else { alert("All the PMs have been sent!"); location.reload(); } }); } } $.get($("#top_info a:first").attr("href"),function(d){ var myGroup = $.trim($("dl.user_info dt:contains('Group:')",d).next().text().toLowerCase()); var allowed = true, uL = pm.disallowed.length; while(uL--){ if($.trim(pm.disallowed[uL].toLowerCase())==myGroup){ allowed = false; } } if(allowed === true){ $("#pm_compose td.c_desc").next().attr("colspan",2); $("#emot_wrap").parent().next().attr("colspan",2); $("#pm_compose thead tr th,#c_post,#pm_compose tbody tr:last td,#pm_compose th[colspan=2]").attr("colspan",3) $("#pm_compose td.c_desc:first").text("Username").parent().addClass("single").after('').before('
Hosted for free by ZetaBoards · Privacy Policy


NEWS TITLE GOES HERE

8:44 PM May 26