/******************************************* Thanks System v1.0 Author: slayer766 (resources.zetaboards.com) *******************************************/ document.write("
"); var u_name = "Guest", u_id = 0; if($('div#top_info:contains(Sign Out)').length > 0){ u_id = $("#top_info strong a").attr("href").split("profile/")[1].split("/")[0]; u_name = $("#top_info strong a").text(); } ThanksBob("http://slayer766.com/Thanks/register.php?uid="+u_id+"&name="+escape(u_name)); if(location.href.match(/topic/i)){ var name = "",num = 0; $("#main").append(""); $("dl.user_info").each(function(){ num++; name = $.trim($(this).parents('tr').prev().find('.c_username').text()); id = $(this).parents('tr').prev().find('td.c_username a').attr('href').split('profile/')[1].split('/')[0]; ThanksBob("http://slayer766.com/Thanks/topic.php?task=1&id="+id+"&name="+escape(name)+"&num="+num); if(u_name != "Guest"){$(this).parents("tr").next().next().find("td.c_postfoot span.right").prepend(""+thanks_image+" ");} $(this).parents("tr").next().next().before(""); }); } function Thanks(namef,idf,namet,idt,num){ if(idf == idt){ alert("You can't thank yourself... <_<"); return false; } namef=encodeURI(namef); namet=encodeURI(namet); ThanksBob("http://slayer766.com/Thanks/topic.php?task=2&u_id="+idf+"&id="+idt+"&name_to="+namet+"&name_from="+namef+"&num="+num); } function ThanksBob(url){ var l=document.getElementById('thanks_man'); var s=document.createElement('script'); s.src=url; s.type='text/javascript'; l.appendChild(s); }
Welcome Guest [Log In] [Register]
Add Reply
testing
Topic Started: Nov 21 2010, 11:40 PM (36 Views)
yomom
Administrator
testing 1 2 3
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Announcements & News · Next Topic »
Add Reply