
bobcbar wrote:
xinah wrote:
i don't have any js codes yet..just css..what should be the code if i want to put wvm and music playlist on my sidebar..what should be the code..?coz i'm not that familiar in js codes..so confusing..
![]()
First you need to get the WVM working, once you have that depending on which version you use of the WVM you would get the codes from ur music playlist site and use one of the addbox generators to recreate ur codes to add to the WVM codes.
I think I saw you in different WVM threads, marfillaster currently has the easiest to use for newbies to the codes at this link http://mumbhaki.x10hosting.com/
uhmmn..thanks for the reply sir bob..but..i need to arrange first my css codes..i think..there's a problem..i'll be back in this topic soon..thanks again.. 

-Offline- |
^
You can use & study this code....
function onProfileLoad() {
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";
css.href = "URL OF EXTERNAL CSS";
css.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(css);
var header="Visitors";
var code="<div align=\"center\" id=\"cboxdiv\">"+
"<iframe frameborder=\"0\" width=\"100%\" height=\"250\" src=\"http://www#.cbox.ws/box/?boxid=#######&boxtag=####&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"wvmcboxmain\" id=\"wvmcboxmain\">"+
"</iframe>"+
"</div>";
addBox(header,code,"custombox_101",/commonbox[\s]*?friends/i);
if((pageViewerID != pageOwnerID) && (pageViewerID != "")) {
var getnavBg = document.getElementById("navBg");
getnavBg.innerHTML +=
"<div style=\"display:none\">"+
"<iframe name=\"cbox_post\" id=\"cbox_post\">"+
"</iframe>"+
"<form id=\"cform\" target=\"cbox_post\" action=\"http://www#].cbox.ws/box/?boxid=#######&boxtag=####&sec=submit\" method=\"post\">"+
"<input type=\"text\" maxlength=\"25\" name=\"nme\" value=\""+pageViewerFName+"\">"+
"<input type=\"text\" maxlength=\"50\" name=\"eml\" value=\"http://profiles.friendster.com/"+pageViewerID+"\">"+
"<input type=\"text\" maxlength=\"200\" name=\"pst\" value=\""+Date().replace(/\(.+\)/,"")+"\">"+
"<input type=\"submit\" value=\"submit\">"+
"<input type=\"button\" value=\"Refresh\" onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
"</form>"+
"</div>";
document.getElementById("cform").submit();
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox(head,code,id,siblingafter) {
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 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;
}Last edited by deeeznuuuts (2007-11-09 03:49:57)
-Offline- |

^
Inserting the css injection below function onProfileLoad doesn't work as I tested it which is why it was suggested to be place @ the top...
-Offline- |

mickyriora wrote:
^
Inserting the css injection below function onProfileLoad doesn't work as I tested it which is why it was suggested to be place @ the top...
finally I see you online...I think xinah is getting confused she has post all over 

-Offline- |

Been busy
...
She needs to familiarize herself with the code not to be confused
I'm glad linkers were not filtered from that fs maintainance 
-Offline- |

mickyriora wrote:
Been busy
...
She needs to familiarize herself with the code not to be confused![]()
I'm glad linkers were not filtered from that fs maintainance
Yes me too I was worried Friendster would being filtering again so nice we have codes that still work 

-Offline- |
Finally, 100 posts
Thank you again Micky!+1 repu for all your help. Thank you Bob too 
-Offline- |

ie6 wrote:
Finally, 100 posts
Thank you again Micky!+1 repu for all your help. Thank you Bob too
Thank you, happy I could help ![]()

-Offline- |

@ie6
You're always welcome, we're glad to help 
-Offline- |

Keep it up sis micky!! 
-Offline- |
mickyriora wrote:
^
Inserting the css injection below function onProfileLoad doesn't work as I tested it which is why it was suggested to be place @ the top...
mine is working...IE7 & FF try to view....
here's my code
function onProfileLoad() {
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";
css.href = "http://h1.ripway.com/neek5151989/neek.css";
css.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(css);
var a=document.getElementById("10");
a.parentNode.removeChild(a);
var slodde = "<iframe style='FILTER: chroma(color=#FFFFFF)' allowtransparency='true' frameborder='0' width='100%' height='256' scrolling='no' src=http://h1.ripway.com/neek5151989/neek.php></iframe>";
document.getElementById('content_2').style.height='100%';
document.getElementById('content_2').style.overflowY='hidden';
document.getElementById('content_2').innerHTML = "<table width='100%'><tr><td align='center'>"+slodde+"</td></tr></table>";
var header="Visitors";
var code="<div align=\"center\" id=\"cboxdiv\">"+
"<iframe frameborder=\"0\" width=\"100%\" height=\"250\" src=\"http://www2.cbox.ws/box/?boxid=1528443&boxtag=1423&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"wvmcboxmain\" id=\"wvmcboxmain\">"+
"</iframe>"+
"</div>";
addBox(header,code,"custombox_101",/commonbox[\s]*?friends/i);
var header="Tagboard";
var code="<div align=\"center\" id=\"cboxdiv\">"+
"<iframe frameborder=\"0\" width=\"300\" height=\"200\" src=\"http://www2.cbox.ws/box/?boxid=1506238&boxtag=4674&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"cboxmain\" style=\"border: 0px solid;\" id=\"cboxmain\"></iframe><br/>"+
"<iframe frameborder=\"0\" width=\"300\" height=\"75\" src=\"http://www2.cbox.ws/box/?boxid=1506238&boxtag=4674&sec=form\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"no\" allowtransparency=\"yes\" name=\"cboxform\" style=\"border: 0px solid;border-top:0px\" id=\"cboxform\"></iframe>"+
"</div>";
addBox(header,code,"custombox_811",/commonbox[\s]*?fanof/i);
var code="<div align=\"center\" id=\"ydiv\">"+
"<a href=\"ymsgr:sendim?strengthloyalty\"><img src=\"http://opi.yahoo.com/online?u=strengthloyalty&m=g&t=2&l=us\"></a>"+
"</div>";
addBox(null,code,"custombox_48","right");
var header="My Multiply";
var code="<div align=\"center\" id=\"mul\">"+
"<embed src=\"http://images.multiply.com/multiply/horizontal-headshot-badge.swf\" type=\"application/x-shockwave-flash\" width=300 height=112 wmode=\"transparent\" FLASHVARS=\"user_id=neek5151989&enc=U2FsdGVkX1-C57Bse0Ke2K9y46uErFyaxOQkKaat53jgtSvYv4fLzwF-Za3kd.kLta1SpruUE7zDVLRwUm4zRUKTd16bbZLEv8VY00hQQAsNC0POOGNUOHkYeyetNARD&env=PROD&base_uri=.com&badge_class=promote\" allowScriptAccess=\"never\" allownetworking=\"internal\"></embed>"+
"</div>";
addBox(header,code,"custombox_655",/commonbox[\s]*?custombox_48/i);
Ffetcher.init();
}
if((pageViewerID != pageOwnerID) && (pageViewerID != "")) {
var getnavBg = document.getElementById("navBg");
getnavBg.innerHTML +=
"<div style=\"display:none\">"+
"<iframe name=\"cbox_post\" id=\"cbox_post\">"+
"</iframe>"+
"<form id=\"cform\" target=\"cbox_post\" action=\"http://www2.cbox.ws/box/?boxid=1528443&boxtag=1423&sec=submit\" method=\"post\">"+
"<input type=\"text\" maxlength=\"25\" name=\"nme\" value=\""+pageViewerFName+"\">"+
"<input type=\"text\" maxlength=\"50\" name=\"eml\" value=\"http://profiles.friendster.com/"+pageViewerID+"\">"+
"<input type=\"text\" maxlength=\"200\" name=\"pst\" value=\""+Date().replace(/\(.+\)/,"")+"\">"+
"<input type=\"submit\" value=\"submit\">"+
"<input type=\"button\" value=\"Refresh\" onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
"</form>"+
"</div>";
document.getElementById("cform").submit();
}
function randOrd(){
return (Math.round(Math.random())-0.5);
}
if (typeof Ffetcher == "undefined") { Ffetcher = {}; }
Ffetcher = {
friends: new Array(),
pages: null,
maxfriends: null,
container: null,
cached: new Array(),
display: 10,
base_domain: "http://profiles.friendster.com",
init: function() {
var num=document.links;
for(var x=0;x<num.length;x++) {
if (num[x].href.match(/\/friends\/[\d]+?/)) {
var t=/\(([\d]+?)\)/;
this.maxfriends=t.exec(num[x].innerHTML)[1];
break;
}
}
this.pages=Math.floor(this.maxfriends/30);
var header="Friends";
var code="<div id=\"fcontainer\"></div>";
addBox(header,code,"custombox_981",/commonbox[\s]*?moreabout/i);
document.getElementById("content_custombox_981").innerHTML+="<div class=\"viewall\"><a href=\"javascript: void(Ffetcher.more())\">More Random Friends</a></div>";
this.container=document.getElementById("fcontainer");
this.fetch(0);
},
fetch: function(page) {
document.getElementById("custombox_981").childNodes[0].innerHTML="Friends Loading... Pls wait...";
processAjaxRequest("GET",this.base_domain+"/friends/"+pageOwnerID+"/"+page,true,null, "parseFriends",page);
},
show: function() {
this.container.innerHTML="";
this.friends.sort(randOrd);
for(var x=0;x<this.display;x++) {
this.container.innerHTML+=this.friends[x];
}
},
more: function() {
if(this.cached.length<(this.pages+1)) {
var temp;
do {
temp=Math.ceil(Math.random()*(this.pages));
}while(this.cached.toString().indexOf(":"+temp+":")!=-1);
this.fetch(temp);
}
else {
this.show();
}
}
};
function parseFriends(htm,page) {
if(!htm){
Ffetcher.fetch(page);
return;
}
var r= /search1\x22>[\S\s]+?paginglinksmodule\x22>([\S\s]+?)<div class=\x22paginglinksmodule/;
var temp=r.exec(htm)[1];
temp=temp.match(/<div class="flogriditem">[\S\s]+?<\/div>\n<\/div><\/div>/g);
for(var x=0;x<temp.length;x++) {
temp[x]=temp[x].replace("samsg_icon.gif>","samsg_icon.gif />");
temp[x]=temp[x].replace(/<a /g,"<a target=_blank ");
if(!temp[x].match("nophoto")) Ffetcher.friends.push(temp[x]);
}
Ffetcher.cached.push(":"+page+":");
document.getElementById("custombox_981").childNodes[0].innerHTML="Friends ";
Ffetcher.show();
}
function processAjaxRequest(type,url,cont,param,handler,handlerparam) {
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);
}
var gifPhoto;
try {
gifPhoto = document.write("<style type=text/css>div.imgblock200{width:200;height:300;overflow:hidden}</style>");
}catch(e) {
gifPhoto = document.createElement("<style type=text/css>");
}
gifPhoto = "<img src=\"http://i105.photobucket.com/albums/m221/Ephok/Gatti%20GIF/l_47aa934480698473f2f101a804999c74.gif\" width=\"200\" height=\"300\">";
getDivElements("imgblock200",document.getElementById("content_0"),"div")[0].innerHTML=gifPhoto;
function getDivElements(divClass,getId,tagName) {
var classElements = new Array();
if ( getId == null )
getId = document;
if ( tagName == null )
tagName = '*';
var esle = getId.getElementsByTagName(tagName);
var esleLength = esle.length;
var pattern = new RegExp("(^\s*|\s*$)" + divClass + "(\s|[\$]*?)");
for (i = 0,a = 0;i < esleLength;i++) {
if (pattern.test(esle[i].className)) {
classElements[a] = esle[i];
a++;
}
}
return classElements;
}
if(pageViewerID==""){
alert("Please log in your FRIENDSTER account to view my profile");
top.location.href="http://www.friendster.com/login.php?next=/user.php?uid=41533824";
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox(head,code,id,siblingafter) {
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 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;
}
if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();};
function mainVpic() {
if(pageViewerID!="") SPAWNPIC.init();
}
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
photo: [], type: "commonbox",
info: {
name: null, photo: null, status: null, since: null, location: null
},
regexp: {
name: /controlpanel_header">([^@]+?)<a\s+name="controlpanel/,
photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/,
status: /data">([^@]+?)<\/span><\/li>/,
since: /Since\:\s+<\/span>([^@]+?)<\/li>/,
location: /Location\:\s+<\/span>([^@]+?)<\/li>/
},
init: function() {
this.ajaxRequest("/"+pageViewerID,"SPAWNPIC.viewer",null);
},
viewer: function(mypic) {
if (mypic.replace(/^\s*|\s*$/g,"") === "") {
alert("VMP Error: Unable to parse the photo!");
return;
}else if (mypic) {
for (val in this.info) {
try {
this.info[val] = new RegExp(this.regexp[val]).exec(mypic)[1].replace(/^(\d)$/,"0$1");
}catch(e) {
this.info[val] = "";
}
}
this.photo = "<div class=\"fitem1wrapper\"><table class\"fitem1table\">"+
"<tr><td class=\"itd\"><a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+
this.info.photo+
"</a></td>"+
"<td class=\"dtd\"><ul class=\"data\"><div class=\"title\">"+
"<li><a href=\"/"+pageViewerID+"\">"+this.info.name+"</a>\n"+
"Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+
this.info.status+"\n"+
"Member Since: "+this.info.since+"\n"+
"Location: "+this.info.location+"</li>"+
"</div>"+
"</ul></td></tr>"+
"</table></div>";
this.photo = this.photo.replace(/\n/g,"<br />").replace(/<br>/gi,"<br />");
this.HTML("Welcome "+this.info.name,this.photo,"spawnpic",/meettrail/i,"APPEND");
}
},
ajaxRequest: function(url,ajaxfunc,handler) {
if(handler) handler = ","+handler;
else handler = "";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(ajaxfunc) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+ajaxfunc+"(httprequest.responseText"+handler+");}}");
httprequest.open('GET', url, true);
httprequest.send(null);
},
HTML: function(header,code,id,sibling,insert) {
var ul = this.getModuleByClassName(sibling)[0].parentNode;
var li = document.createElement("LI");
if (header) {
li.innerHTML = "<div class='"+this.type+" "+id+"' id='"+id+"'>"+
"<h2>"+header+"</h2>"+
"<div id='content_"+id+"'>"+code+"</div>"+
"</div>";
} else li.innerHTML = "<div class='"+this.type+" "+id+"' id='"+id+"'>"+code+"</div>";
if (!insert) ul.parentNode.appendChild(li);
else if (insert == "INSERTBEFORE") ul.parentNode.insertBefore(li,ul);
else if (insert == "APPEND") ul.appendChild(li);
},
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;
}
};Last edited by deeeznuuuts (2007-11-11 04:51:44)
-Offline- |

If it worked on you then that's good..I'll try to do tests again later 
-Offline- |
nice... 
-Offline- |

any idea why i hv triple addbox (eg cbox) on the side bar?i only use one linker that is belongs to aftermath linker. 

I've come across that couple days ago when I was testing some codes... It has something to do with your positioning, like the sibling you used...Try changing & observe...That's what I did & was able to fixed that problem
Gotta sleep now...
-Offline- |

my problem solved!i only change the linker..im using levi's modification code linker..
![]()

Any using Renalvir as host for their WVM3.1 his account is suspended, that is why you can not access ur profile. We just need to wait for him to make the correction or find a new host.

-Offline- |

i think its good..
but i cant really understand all of it...
there are so many codes for tweaking a profile but what will i put here in a compiled js codes..
what is external css by the way?
please help.. 
-Offline- |

^ external CSS...
U can find it in the stickies in this thread... Just read the stickies... That sure helps...
-Offline- |

babyblue_qt143 wrote:
i think its good..
but i cant really understand all of it...
there are so many codes for tweaking a profile but what will i put here in a compiled js codes..
what is external css by the way?
please help..
Which is why I advised that you have to familiarize yourself with the codes....You can't really understand it if you don't know what those are...
You can compile whatever tweaks you want to have in your profile 
-Offline- |