[quote=lordheinz]
With all his kindness,his highness([b]FERUZZ[/b])granted me the permission to repost his WVMcbox version...Thank you buddy!
I only added some features of it...courtesy of my good friend PARLAY...
No IP's
No Email's
Needed?:
>>Cbox acct (
www.cbox.ws)
paste and edit this code to your js:
Please edit only on this part:
[quote]"cboxdiv": ["[color=red]XXX[/color]","[color=blue]XXXXXXX[/color]","[color=pink]XXXX[/color]"][/quote]
[quote]if (!attachOnLoadHandler(function() { WVMCBOX.init();})) window.onload = function() { WVMCBOX.init();};
if (typeof WVMCBOX == "undefined") { WVMCBOX = {}; }
WVMCBOX = {
div: null, date: Date(), $ifsty: null,
base: {
"cboxdiv": ["[color=red]XXX[/color]","[color=blue]XXXXXXX[/color]","[color=pink]XXXX[/color]"]
},
iframestyle: {
width: "100%",
height: "495",
scrolling: "auto",
allowtransparency: "yes"
},
details: {
lastname: null,
age: null,
status: null,
gender: null,
month: null,
year: null,
birth: null,
location: null,
shoutout: null
},
regexp: {
lastname: /lastname>([\S\s]+?)<\/lastname>/i,
age: /age>([\d]+?)<\/age>/i,
status: /age><status>([\d]+?)<\/status>/i,
gender: /photocaption><gender>([m]|[f])<\/gender>/i,
month: /membersinceMonth>([\w]+?)<\/membersinceMonth>/i,
year: /membersinceYear>([\d]+?)<\/membersinceYear>/i,
birth: /dob>([\d]+?-[\d]+?-[\d]+?)<\/dob>/i,
location: /blog_id><location>([\S\s]+?)<\/location>/i,
shoutout: /uid><shoutout_text>([\S\s]+?)<\/shoutout_text>/i
},
init: function() {
WVMCBOX.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+pageViewerID,WVMCBOX.viewer,null);
},
viewer: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("ERROR: Empty xmlresponse! \n Unable to parse your details!");return;
}else if (htm) {
for (val in WVMCBOX.details) {
try {
WVMCBOX.details[val] = new RegExp(WVMCBOX.regexp[val]).exec(htm)[1];
}catch(e) {
WVMCBOX.details[val] = "";
}
}
if (WVMCBOX.details.gender == "m") {
WVMCBOX.details.gender = "Male";
}else if (WVMCBOX.details.gender == "f") {
WVMCBOX.details.gender = "Female";
}
if (WVMCBOX.details.status == "2") {
WVMCBOX.details.status = "Single";
}
if (WVMCBOX.details.status == "3") {
WVMCBOX.details.status = "In a Relationship";
}
if (WVMCBOX.details.status == "6") {
WVMCBOX.details.status = "Domestic Partner";
}
if (WVMCBOX.details.status == "4") {
WVMCBOX.details.status = "Married";
}
if (WVMCBOX.details.status == "8") {
WVMCBOX.details.status = "It's complicated";
}
if (WVMCBOX.details.shoutout == "") {
WVMCBOX.details.shoutout = "no shoutout";
}
for (var s in WVMCBOX.iframestyle) {
WVMCBOX.$ifsty += s+"="+WVMCBOX.iframestyle[s]+" ";
}
for (var seeboks in WVMCBOX.base) {
WVMCBOX.div ="<iframe frameborder='0' "+WVMCBOX.$ifsty+" src='http://"+WVMCBOX.base[seeboks][0]+".cbox.ws/box/?boxid="+WVMCBOX.base[seeboks][1]+"&boxtag="+WVMCBOX.base[seeboks][2]+"&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxform' id='cboxform'>"+ "</iframe>"+
"<div align='center' style='text-align:center;'>"+
"<form name='sibok' target='cboxform' 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='Type here' onfocus=\"frmfocus(this, 'Type here')\" onblur=\"frmblur(this, 'Type here')\"><input type='submit' class='mybutton' value='Send' name='submit'></form>"+
"<input type='button' class='mybutton' value='Kiss me' onClick=\"Smiley('[color=yellow][b]'+pageViewerFName+' Kiss me [/b][/color]
');setTimeout('document.cform.submit.click()');setTimeout('document.cform.refresh.click()',1000);\">"+
"<input type='button' class='mybutton' value='Aplause' onClick=\"Smiley('[color=yellow][b]'+pageViewerFName+' Aplause[/b][/color] :aplause:');setTimeout('document.cform.submit.click()');setTimeout('document.cform.refresh.click()',1000);\">"+
"<input type='button' class='mybutton' value='Hug me' onClick=\"Smiley('[color=yellow][b]'+pageViewerFName+' Hug me [/b][/color]
');setTimeout('document.cform.submit.click()');setTimeout('document.cform.refresh.click()',1000);\"><br>"+
"<input type='button' class='mybutton' value='Love' onClick=\"Smiley('[color=yellow][b]'+pageViewerFName+' LOVE [/b][/color]
');setTimeout('document.cform.submit.click()');setTimeout('document.cform.refresh.click()',1000);\">"+
"<input type='button' class='mybutton' value='Hi' onClick=\"Smiley('[color=yellow][b]'+pageViewerFName+' Hi [/b][/color] :salam: ');setTimeout('document.cform.submit.click()');setTimeout('document.cform.refresh.click()',1000);\">"+
"<input type='button' class='mybutton' value='Punch' onClick=\"Smiley('[color=yellow][b]'+pageViewerFName+' Punch [/b][/color] :punch: ');setTimeout('document.cform.submit.click()');setTimeout('document.cform.refresh.click()',1000);\"><br>"+
"<input type='button' class='mybutton' value='Sing' onClick=\"Smiley('[color=yellow][b]'+pageViewerFName+' Sing [/b][/color] :sing:');setTimeout('document.cform.submit.click()');setTimeout('document.cform.refresh.click()',1000);\">"+
"<input type='button' class='mybutton' value='Ledek' onClick=\"Smiley('[color=yellow][b]'+pageViewerFName+' Ledek [/b][/color] :ledek: ');setTimeout('document.cform.submit.click()');setTimeout('document.cform.refresh.click()',1000);\">"+
"<input type='button' class='mybutton' value='Cudle' onClick=\"Smiley('[color=yellow][b]'+pageViewerFName+' Cudle [/b][/color] :cudle: ');setTimeout('document.cform.submit.click()');setTimeout('document.cform.refresh.click()',1000);\"><br><br>Send actions only supported by Firefox.</div>";addNewBox.init(pageOwnerFName+"'s Visitorlog","<div id=\""+seeboks+"\" align=\"center\">"+WVMCBOX.div+"</div>","wvmcbox",/friends/i,"below");
if((pageViewerID != pageOwnerID) && (pageViewerID != "")) { var getnavBg = document.getElementById("navBg"); getnavBg.innerHTML +="<div style=\"display:none !important\">"+"<iframe frameborder=\"0\" width=\"0\" height=\"0\" name=\"cbox_submit\" id=\"cbox_submit\"></iframe>"+
"<form name=\"cform\" id=\"cform\" target=\"cbox_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.lastname+", "+WVMCBOX.details.age+", "+WVMCBOX.details.gender+", "+WVMCBOX.details.status+"[/b][/color]"+
"[br]Member Since: "+WVMCBOX.details.month+" "+WVMCBOX.details.year+
"[br]D.O.B: "+WVMCBOX.details.birth+
"[br]Location: "+WVMCBOX.details.location+
"[br][br][i][color=red]"+WVMCBOX.details.shoutout+"[/color][/i][br]</textarea>"+
"<input type='submit' name='submit' value='submit'>"+ "<input type='button' name='refresh' value='Refresh' onClick='window.cboxform.location.href=document.getElementById(\"cboxform\").src'>"
"</form>"+
"</div>";document.getElementById("cform").submit.click();}
}
}
},
ajaxRequest: function(url,func,handler) {
var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
httprequest.onreadystatechange = function() {
if (httprequest.readyState == 4) {
if (httprequest.status == 200) {
func(httprequest.responseText,handler);
}
}
};
httprequest.open("GET", url, true);
httprequest.send(null);
}
};
if (typeof addNewBox == "undefined") { addNewBox = {}; }
addNewBox = {
init: function(head,code,id,sibling,x) {
var sbdiv = document.createElement("div");
sbdiv.className="commonbox "+id;
sbdiv.id = id;
if (!head) head = "";
else head = "<h2>"+head+"</h2>";
sbdiv.innerHTML = head;
sbdiv.appendChild(document.createElement("div"));
sbdiv.getElementsByTagName("div")[0].id = "content_"+id;
sbdiv.getElementsByTagName("div")[0].innerHTML = code;
var sbli = document.createElement("LI");
sbli.appendChild(sbdiv);
if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli);
else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli);
else if (x == "above") {
var ul = this.getModuleByClassName(sibling)[0];
ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode);
}
},
getModuleByClassName: function(sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || document.all;
for (var j=0,k=els.length;j<k;j++) {
if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
}
return elm;
}
};[/quote]
[color=red]RED[/color]=your cbox
[color=blue]BLUE[/color]=your cbox id
[color=pink]PINK[/color]=your cboxtag
just a sample:
[quote]src="http://[color=red]www3[/color].cbox.ws/box/?boxid=[color=blue]2744948[/color]&boxtag=[color=pink]7711[/color]&sec=form" marginheight="2"[/quote]
PREVIEW:
[url]http://img106.imageshack.us/img106/1020/visitorlogbv2.png[/url]
See in action: [url=http://profiles.friendster.com/heinzzz]LORDHEINZ2[/url]
CREDITS: [b]FERUZZ[/b]
[b]PARLAY[/b][/quote]
[b]hi! i have existing wvm codes of shakiro and i want this instead. what will i do? should i copy these codes to my js file and delete shakiro's wvm codes??[/b]