2007-12-25 19:14:07

Chezter18
» Banned
FTalk Level: zero
237
0
1969-12-31

Re: [quote]I restructured much of wvm codebase and database, this will be 3.2.0 version, still in beta stage, just replace the old tracker linker wih the new one below[/quote] new tracker.php link [b]http

[quote=noedha][quote=marfillaster][quote]I restructured much of wvm codebase and database, this will be 3.2.0 version, still in beta stage, just replace the old tracker linker wih the new one below[/quote] new tracker.php link [b]http://mumbhaki.x10hosting.com/tracker/tracker.php[/b] register here [b]http://mumbhaki.x10hosting.com/tracker/[/b] Enable your tracker in 'Manage Tracker tab'[/quote] where is the tracker.js[/quote] diz the tracker js [quote]function onProfileLoad() { //onload handler //insert generater addboxes here addBox(pageOwnerFName+"'s Visitors",TRACKER.div.innerHTML,"tracker","right"); } /*TRACKER OBJECT*/ if (typeof TRACKER == "undefined") { TRACKER = {}; } TRACKER = { //iframe css style: { filter: "chroma(color='#FFFFFF')", width: '300px', height: '515px', border: '0px' }, //iframe attributes attributes: { frameborder: '0', allowtransparency: 'true' }, phplink: "[b]yOUR TRAcker php here[/b]", display: :10, /*do not edit below this line*/ /* WVMv3.1.1 by marfillaster, (c) 2007 www.friendster.com/mumbhaki credits: feruzz, friendstertalk.com, www.friendster.com licensed under GNU General Public License, version 2 http://www.gnu.org/licenses/gpl.html Disclaimer: NO GUARANTEE and WARRANTY provided! For educational purposes only. Author will not be liable of ANY damage through the use of this program */ base_domain: "http://"+location.hostname,div: null,param: null,timedetails: null,iframeid: "wvmtemp", details: { photo: null, gender: null, age: null, status: null, location: null, seek: null, since: null }, regexp: { photo: /imgblock200\x22><a[\S\s]*?img src="([\S\s]*?)"/i, gender: />([\S]*?male)/i, age: /male, ([\d]*?),/i, status: /male, [\d]*?, ([\S\s]*?)<\/span>/i, location: /Location\: <\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i, seek: /In\: <\/span>([\S\s]*?)<\/li>/i, since: /Since\: <\/span>([\S\s]*?)<\/li>/i }, init: function() { try{ getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" style=\"display:none\" src=\"about:blank\"></iframe>"; } catch(e) { this.error("Cannot insert inline iframe."); return; } var d= new Date(); var hr=invert(d.getTimezoneOffset()/60); this.timedetails="os="+hr; var ifsrc=this.phplink+"?"+this.timedetails+"&id="+pageViewerID+"&owner="+pageOwnerID+"&num="+this.display; var atr=""; var sty=""; for (val in this.attributes) { atr += val +"="+ this.attributes[val]+" "; } for (val in this.style) { sty += val +":"+ this.style[val]+";"; } try { this.div=document.createElement("<div>") } catch(e) { this.div=document.createElement("div") } //set sidebar frame appearance this.div.innerHTML="<iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe>"; if(pageViewerID!=pageOwnerID) if(pageViewerID!="") this.getDETAILS(); }, getDETAILS: function(){processAjaxRequest("GET",this.base_domain+"/user.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=controlpanel_1_1",true,null, this.parseDETAILS,null,this.error)}, parseDETAILS: function(htm) { if(htm.replace(/^\s*|\s*$/g,"")=="") {TRACKER.error("Empty xmlresponse! Unable to parse your details!");return;} else { for (val in TRACKER.details) { try{ var m=new RegExp(TRACKER.regexp[val]).exec(htm)[1]; TRACKER.details[val]=encodeURIComponent(m); } catch(e) { TRACKER.details[val]=""; } } if(!TRACKER.details.photo) {TRACKER.error("Unable to parse primary photo! Invalid xmlresponse or incorrect photo regexp.");return;} TRACKER.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&img="+TRACKER.details.photo+"&gen="+TRACKER.details.gender+"&age="+TRACKER.details.age+"&stat="+TRACKER.details.status+"&loc="+TRACKER.details.location+"&seek="+TRACKER.details.seek+"&since="+TRACKER.details.since; document.getElementById(TRACKER.iframeid).src=TRACKER.phplink+TRACKER.param; } }, error: function(e) { alert("WVM ERROR: "+e+" Tracker will not update."); } }; /*END TRACKER OBJECT*/ if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; TRACKER.init(); function invert(x) { if(x>0) return parseInt("-"+x); else if(x<0) { x=x+""; return parseInt(x.substr(1,x.length-1)); } return 0; } /*END TRACKER OBJECT*/ /*MISC FUNCTIONS*/ function urlencode(txt) { return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E"); } function addBox(head,code,id,siblingafter) { /* head: html string title null - no header bar code: html string content id: unique string css pointer siblingafter: regexp classname 'left' - mainbar column end 'right' - sidebar column end */ try { var li=document.createElement("li"); } catch(e) { var li=document.createElement("<li>"); } if(!head) head=""; else head="<h2>"+head+"</h2>"; li.innerHTML="<div id=\""+id+"\" class=\"commonbox "+id+"\">"+ head+ "<div id=\"content_"+id+"\">"+ code+ "</div>"+ "</div>"; if(siblingafter=="left") getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].parentNode.parentNode.appendChild(li); else if(siblingafter=="right") getElementsByClass(/commonbox[\s]*?friends/i,null,"DIV")[0].parentNode.parentNode.appendChild(li); else { var si=getElementsByClass(siblingafter,null,"DIV")[0]; si.parentNode.parentNode.insertBefore(li,si.parentNode); } } function processAjaxRequest(type,url,cont,param,handler,handlerparam,errorhandler) { //by marfillaster //type 'POST' | 'GET' //cont 'true' | 'false' //param string | null //handler function | null //handlerparam object |null //errorhandler function var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); httprequest.onreadystatechange=function(){ if(httprequest.readyState==4) { if(httprequest.status==200) { handler(httprequest.responseText,handlerparam); } else { if(errorhandler) errorhandler(httprequest.status); } } }; httprequest.open( type, url, cont); if(type=="POST") { httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); httprequest.setRequestHeader("Content-length", param.length); httprequest.setRequestHeader("Connection", "close"); } try{ httprequest.send(param); }catch(e) {if(errorhandler) errorhandler(e);} } function randOrd(){ return (Math.round(Math.random())-0.5); } /*END MISC FUNCTIONS*/ function getElementsByClass(searchClass,node,tag) { var classElements = new Array(); if ( node == null ) node = document; if ( tag == null ) tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp(searchClass); for (i = 0, j = 0; i < elsLen; i++) { if ( pattern.test(els[i].className) ) { classElements[j] = els[i]; j++; } } return classElements; } //other codes goes here[/quote] jez edit the bold text after that paste in your js!!

Board footer

© 2024 F Talk

Current time is 00:56

[ 12 queries - 0.070 second ]
Privacy Policy